WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
218549
[GPU Process] Move the internal GPU rendering flags from WebPage to WebProcess
https://bugs.webkit.org/show_bug.cgi?id=218549
Summary
[GPU Process] Move the internal GPU rendering flags from WebPage to WebProcess
Said Abou-Hallawa
Reported
2020-11-03 18:29:45 PST
Because not all the clients have access to a WebPage such as a worker based ImageBitmap.
Attachments
Patch
(15.92 KB, patch)
2020-11-03 18:52 PST
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(12.67 KB, patch)
2020-11-03 22:49 PST
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(22.52 KB, patch)
2020-11-04 10:45 PST
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2020-11-03 18:52:01 PST
Created
attachment 413133
[details]
Patch
Tim Horton
Comment 2
2020-11-03 21:11:29 PST
Comment on
attachment 413133
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=413133&action=review
> Source/WebKit/ChangeLog:8 > + -- Setting UseGPUProcessForMedia is already in WebProcess.
This is wrong, not something to be emulated
> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:-697 > - webcoreBinding: none
This is a layering violation.
> Source/WebKitLegacy/mac/WebView/WebPreferences.mm:3266 > +- (BOOL)useGPUProcessForCanvasRenderingEnabled
Clearly not.
Said Abou-Hallawa
Comment 3
2020-11-03 22:49:54 PST
Created
attachment 413141
[details]
Patch
Said Abou-Hallawa
Comment 4
2020-11-03 22:52:36 PST
Comment on
attachment 413133
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=413133&action=review
>> Source/WebKit/ChangeLog:8 >> + -- Setting UseGPUProcessForMedia is already in WebProcess. > > This is wrong, not something to be emulated
I tried to fix it but RemoteMediaPlayerManager::updatePreferences() uses settings.useGPUProcessForMediaEnabled(). So I kept it as is.
>> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:-697 >> - webcoreBinding: none > > This is a layering violation.
Change was reverted back.
>> Source/WebKitLegacy/mac/WebView/WebPreferences.mm:3266 >> +- (BOOL)useGPUProcessForCanvasRenderingEnabled > > Clearly not.
Deleted.
Simon Fraser (smfr)
Comment 5
2020-11-04 08:41:28 PST
So should we fix the media flag?
Said Abou-Hallawa
Comment 6
2020-11-04 09:40:26 PST
(In reply to Simon Fraser (smfr) from
comment #5
)
> So should we fix the media flag?
I'll try to fix it.
Said Abou-Hallawa
Comment 7
2020-11-04 10:45:44 PST
Created
attachment 413178
[details]
Patch
Tim Horton
Comment 8
2020-11-04 11:34:28 PST
I wonder if we need to fail harder if something tries to make two WebPages with different GPUP settings coexist in the same WebProcess?
Tim Horton
Comment 9
2020-11-04 12:27:32 PST
Comment on
attachment 413178
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=413178&action=review
> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:719 > + webcoreBinding: none
Nice!
Sam Weinig
Comment 10
2020-11-04 12:33:43 PST
If this is no longer per-page, WebPreferences is not the right API to use to surface this, as that is a per-page concept.
Said Abou-Hallawa
Comment 11
2020-11-04 21:39:09 PST
(In reply to Sam Weinig from
comment #10
)
> If this is no longer per-page, WebPreferences is not the right API to use to > surface this, as that is a per-page concept.
I filed
bug 218600
to track this issue.
EWS
Comment 12
2020-11-04 21:59:23 PST
Committed
r269416
: <
https://trac.webkit.org/changeset/269416
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 413178
[details]
.
Radar WebKit Bug Importer
Comment 13
2020-11-04 22:00:34 PST
<
rdar://problem/71065314
>
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