mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1719898 - Ignore WidgetTypeSupportsAcceleration() if webrender.unaccelerated-widget.force is enabled, r=aosmond,gfx-reviewers
Right now whenever `WidgetTypeSupportsAcceleration()` returns `false` and `webrender.unaccelerated-widget.force` is enabled, things will simply fail and the widget will just not get rendered (only since Basic layers got removed?). Thus ignore `WidgetTypeSupportsAcceleration()` in this case, that's what the option is for. Differential Revision: https://phabricator.services.mozilla.com/D127006
This commit is contained in:
parent
bee999e8cd
commit
6f0be45605
@ -891,7 +891,8 @@ bool nsBaseWidget::IsSmallPopup() const {
|
||||
|
||||
bool nsBaseWidget::ComputeShouldAccelerate() {
|
||||
return gfx::gfxConfig::IsEnabled(gfx::Feature::HW_COMPOSITING) &&
|
||||
WidgetTypeSupportsAcceleration();
|
||||
(WidgetTypeSupportsAcceleration() ||
|
||||
StaticPrefs::gfx_webrender_unaccelerated_widget_force());
|
||||
}
|
||||
|
||||
bool nsBaseWidget::UseAPZ() {
|
||||
|
Loading…
Reference in New Issue
Block a user