WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188072
Match GraphicsContext3D with correct virtual screen using registryID
https://bugs.webkit.org/show_bug.cgi?id=188072
Summary
Match GraphicsContext3D with correct virtual screen using registryID
Justin Fan
Reported
2018-07-26 12:50:13 PDT
Match GraphicsContext3D with correct virtual screen using registryID
Attachments
Patch
(12.57 KB, patch)
2018-07-26 13:26 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(15.51 KB, patch)
2018-07-26 14:58 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(15.50 KB, patch)
2018-07-26 15:14 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews205 for win-future
(12.88 MB, application/zip)
2018-07-26 18:27 PDT
,
EWS Watchlist
no flags
Details
Patch
(15.81 KB, patch)
2018-07-27 12:16 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(16.02 KB, patch)
2018-07-27 12:42 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(18.64 KB, patch)
2018-07-27 14:56 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(16.02 KB, patch)
2018-07-27 15:53 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(15.88 KB, patch)
2018-07-27 18:12 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-07-26 13:02:15 PDT
<
rdar://problem/42634940
>
Justin Fan
Comment 2
2018-07-26 13:26:39 PDT
Created
attachment 345861
[details]
Patch
Justin Fan
Comment 3
2018-07-26 14:44:40 PDT
Going to add in Per Arne's original displayMask-matching path for versions of macOS older than 10.13 that cannot use kCGLRegistryID.
Justin Fan
Comment 4
2018-07-26 14:58:59 PDT
Created
attachment 345874
[details]
Patch
Justin Fan
Comment 5
2018-07-26 15:14:12 PDT
Created
attachment 345879
[details]
Patch
EWS Watchlist
Comment 6
2018-07-26 18:27:02 PDT
Comment on
attachment 345879
[details]
Patch
Attachment 345879
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/8667685
New failing tests: http/tests/security/canvas-remote-read-remote-video-blocked-no-crossorigin.html
EWS Watchlist
Comment 7
2018-07-26 18:27:14 PDT
Created
attachment 345892
[details]
Archive of layout-test-results from ews205 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews205 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Simon Fraser (smfr)
Comment 8
2018-07-26 18:27:18 PDT
Comment on
attachment 345879
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345879&action=review
> Source/WebCore/platform/PlatformScreen.h:107 > +int64_t primaryRegistryID(); > +int64_t registryIDForDisplay(PlatformDisplayID); > +int64_t registryIDForDisplayMask(uint32_t);
Can we use a typedef for the registryID? We have way too many bare int64_t things.
Justin Fan
Comment 9
2018-07-27 12:16:47 PDT
Created
attachment 345933
[details]
Patch
Dean Jackson
Comment 10
2018-07-27 12:21:53 PDT
Comment on
attachment 345933
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345933&action=review
> Source/WebCore/platform/ScreenProperties.h:49 > + int64_t registryID { 0 };
Shouldn't this use the PlatformRegistryID typedef?
> Source/WebCore/platform/graphics/cocoa/GraphicsContext3DCocoa.mm:216 > + // When the WebProcess does not have access to the WindowServer, there is no way for OpenGL to tell which GPU is connected to a display. > + // See code example at
https://developer.apple.com/library/content/technotes/tn2229/_index.html#//apple_ref/doc/uid/DTS40008924-CH1-SUBSECTION7
Do we have access to the window server on 10.12?
Justin Fan
Comment 11
2018-07-27 12:40:49 PDT
(In reply to Dean Jackson from
comment #10
)
> Comment on
attachment 345933
[details]
> Patch > > Shouldn't this use the PlatformRegistryID typedef?
Updated!
> Do we have access to the window server on 10.12?
Looked into it and we have access to window server before 10.14. I've added a comment for now and will ask Per Arne if he would do anything differently in that case.
Justin Fan
Comment 12
2018-07-27 12:42:23 PDT
Created
attachment 345939
[details]
Patch
Simon Fraser (smfr)
Comment 13
2018-07-27 13:17:44 PDT
Comment on
attachment 345933
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345933&action=review
> Source/WebCore/platform/PlatformScreen.h:61 > +using PlatformRegistryID = int64_t;
What is a platform registry? A registry of platforms? I think this needs a comment saying what it represents.
Justin Fan
Comment 14
2018-07-27 14:56:57 PDT
Created
attachment 345958
[details]
Patch
Justin Fan
Comment 15
2018-07-27 15:49:24 PDT
Looks like I had a git mix-up. That test wasn't supposed to be in this patch :X
Justin Fan
Comment 16
2018-07-27 15:53:58 PDT
Created
attachment 345963
[details]
Patch
Simon Fraser (smfr)
Comment 17
2018-07-27 16:33:48 PDT
Comment on
attachment 345963
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345963&action=review
> Source/WebCore/platform/PlatformScreen.h:61 > +using GPURegistryID = int64_t; // A global identifier for a GPU used by CGL and Metal.
Can we call this a GPUIdentifier? We don't have to follow the bad naming choices for other frameworks.
Justin Fan
Comment 18
2018-07-27 18:12:55 PDT
Created
attachment 345982
[details]
Patch
WebKit Commit Bot
Comment 19
2018-07-30 12:52:57 PDT
Comment on
attachment 345982
[details]
Patch Clearing flags on attachment: 345982 Committed
r234377
: <
https://trac.webkit.org/changeset/234377
>
WebKit Commit Bot
Comment 20
2018-07-30 12:52:59 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug