Bug 1892678. Rename pref image.decode-sync.enabled to image.testing.decode-sync.enabled. r=gfx-reviewers,nical
The reason I want to rename this so that it is clear that it is intended for tests only is for bug 1866411. If we see that this pref is set then we can assume that it isn't being flipped during the loading of images, and therefore we can avoid the extra invalidates that sync decode paints would normally incur. Differential Revision: https://phabricator.services.mozilla.com/D208111
This commit is contained in:
@@ -6566,7 +6566,7 @@ void PresShell::PaintInternal(nsView* aViewToPaint, PaintInternalFlags aFlags) {
|
||||
// We also force sync-decoding via pref for reftests.
|
||||
if (aFlags & PaintInternalFlags::PaintSyncDecodeImages ||
|
||||
mDocument->IsStaticDocument() ||
|
||||
StaticPrefs::image_decode_sync_enabled()) {
|
||||
StaticPrefs::image_testing_decode_sync_enabled()) {
|
||||
flags |= PaintFrameFlags::SyncDecodeImages;
|
||||
}
|
||||
if (renderer->GetBackendType() == layers::LayersBackend::LAYERS_WR) {
|
||||
|
||||
Reference in New Issue
Block a user