WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
194166
Force settings.acceleratedCompositingEnabled() to true for WebKit
https://bugs.webkit.org/show_bug.cgi?id=194166
Summary
Force settings.acceleratedCompositingEnabled() to true for WebKit
Simon Fraser (smfr)
Reported
2019-02-01 10:59:10 PST
Force settings.acceleratedCompositingEnabled() to true for WebKit
Attachments
Patch
(2.15 KB, patch)
2019-02-01 11:03 PST
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2019-02-01 11:03:43 PST
Created
attachment 360873
[details]
Patch
Simon Fraser (smfr)
Comment 2
2019-02-01 11:03:45 PST
<
rdar://problem/47694328
>
WebKit Commit Bot
Comment 3
2019-02-01 12:20:32 PST
Comment on
attachment 360873
[details]
Patch Clearing flags on attachment: 360873 Committed
r240862
: <
https://trac.webkit.org/changeset/240862
>
WebKit Commit Bot
Comment 4
2019-02-01 12:20:33 PST
All reviewed patches have been landed. Closing bug.
Michael Catanzaro
Comment 5
2019-02-02 09:00:20 PST
Can this be moved to platform-specific code, e.g. WebPageCocoa.mm? GTK requires the ability to turn it off. References:
https://gitlab.gnome.org/GNOME/epiphany/commit/1618a34e7b66947a4cbcda39870a6fa525dc3a92
https://gitlab.gnome.org/GNOME/epiphany/commit/f0ccff59b66f411a2183a5d716549d14f7f71c81
Simon Fraser (smfr)
Comment 6
2019-02-02 11:34:57 PST
Is that the same thing? The "Accelerated compositing" setting is about whether RenderLayerCompositor makes RenderLayerBackings for things. Those may still be backed by non-GPU-rendered buffers. How does Epiphany do rendering with WebKit2?
Michael Catanzaro
Comment 7
2019-02-02 13:32:48 PST
(In reply to Simon Fraser (smfr) from
comment #6
)
> Is that the same thing?
Yes, you can verify that our public API webkit_settings_get_hardware_acceleration_policy/webkit_settings_set_hardware_acceleration_policy is implemented by toggling this acceleratedCompositingEnabled setting (as well as the forceCompositingMode setting).
> The "Accelerated compositing" setting is about > whether RenderLayerCompositor makes RenderLayerBackings for things. Those > may still be backed by non-GPU-rendered buffers. > > How does Epiphany do rendering with WebKit2?
I don't know anything about this.
Simon Fraser (smfr)
Comment 8
2019-02-03 21:33:17 PST
(In reply to Michael Catanzaro from
comment #7
)
> I don't know anything about this.
Who does?
Michael Catanzaro
Comment 9
2019-02-04 06:54:05 PST
Zan or Miguel, both are CCed. Anyway, I'll just add #if PLATFORM(COCOA) guards for now.
Michael Catanzaro
Comment 10
2019-02-04 07:36:18 PST
Committed
r240920
: <
https://trac.webkit.org/changeset/240920
>
Zan Dobersek
Comment 11
2019-02-04 09:12:33 PST
(In reply to Michael Catanzaro from
comment #9
)
> Zan or Miguel, both are CCed. >
DrawingAreaImpl::display(), it draws through FrameView::paint() into a shareable bitmap that's then used in the UIProcess to draw content.
> Anyway, I'll just add #if PLATFORM(COCOA) guards for now.
Since all this is only the case for the GTK+ port, #if !PLATFORM(GTK) guards would be more fitting.
Michael Catanzaro
Comment 12
2019-02-04 12:49:41 PST
Committed
r240937
: <
https://trac.webkit.org/changeset/240937
>
Simon Fraser (smfr)
Comment 13
2019-02-04 12:57:17 PST
Thanks for fixing.
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