Bug 1771822 - Remove the layers.low-precision-{buffer,resolution} prefs. r=tnikkel

These are no longer used.

Depends on D151796

Differential Revision: https://phabricator.services.mozilla.com/D151797
This commit is contained in:
Botond Ballo 2022-07-14 18:39:33 +00:00
parent 10724a7eb3
commit 5a6eae75b5
6 changed files with 2 additions and 26 deletions

View File

@ -29,7 +29,6 @@
var no_multiplier_prefs = [
...zoom_and_pan_prefs,
["layers.low-precision-buffer", false],
["apz.x_skate_size_multiplier", "0.0"],
["apz.y_skate_size_multiplier", "0.0"],
["apz.x_stationary_size_multiplier", "0.0"],

View File

@ -481,10 +481,7 @@ static bool GetDisplayPortImpl(nsIContent* aContent, nsRect* aResult,
bool DisplayPortUtils::GetDisplayPort(nsIContent* aContent, nsRect* aResult,
const DisplayPortOptions& aOptions) {
float multiplier = StaticPrefs::layers_low_precision_buffer()
? 1.0f / StaticPrefs::layers_low_precision_resolution()
: 1.0f;
return GetDisplayPortImpl(aContent, aResult, multiplier, aOptions);
return GetDisplayPortImpl(aContent, aResult, 1.0f, aOptions);
}
bool DisplayPortUtils::HasDisplayPort(nsIContent* aContent) {

View File

@ -398,7 +398,7 @@ load 836990-1.html
load 840480.html
load 842114.html
load 847242.html
skip-if(ThreadSanitizer) pref(layers.low-precision-buffer,false) load 852293.html
skip-if(ThreadSanitizer) load 852293.html
pref(layers.force-active,true) load 859526-1.html
pref(layers.force-active,true) load 859630-1.html
load 860579-1.html

View File

@ -77,16 +77,10 @@ fuzzy-if(Android,3-3,1-470) fuzzy-if(Android&&swgl&&isDebugBuild&&/^aarch64-gcc3
fuzzy-if(Android,12-13,4-31) fuzzy-if(gtkWidget,16-27,14-32) fuzzy-if(cocoaWidget,13-16,20-44) skip-if(!asyncPan) == position-sticky-in-transformed-scrollframe-1.html position-sticky-in-transformed-scrollframe-ref.html # Bug 1604338
fuzzy-if(Android,12-13,4-31) fuzzy-if(gtkWidget,16-27,14-32) fuzzy-if(cocoaWidget,13-16,20-44) skip-if(!asyncPan) == position-sticky-in-transformed-scrollframe-2.html position-sticky-in-transformed-scrollframe-ref.html # Bug 1604338
# for the following tests, we want to disable the low-precision buffer
# as it will expand the displayport beyond what the test specifies in
# its reftest-displayport attributes, and interfere with where we expect
# checkerboarding to occur
defaults pref(layers.low-precision-buffer,false)
skip-if(!asyncPan) == checkerboard-1.html checkerboard-1-ref.html
skip-if(!asyncPan) == checkerboard-2.html checkerboard-2-ref.html
skip-if(!asyncPan) == checkerboard-3.html checkerboard-3-ref.html
skip-if(!asyncPan) == position-sticky-in-checkerboard-land-1.html position-sticky-in-checkerboard-land-1-ref.html
defaults
skip-if(!Android) pref(apz.allow_zooming,true) == position-fixed-async-zoom-1.html position-fixed-async-zoom-1-ref.html
skip-if(!Android) pref(apz.allow_zooming,true) == position-fixed-async-zoom-2.html position-fixed-async-zoom-2-ref.html

View File

@ -173,11 +173,7 @@ noautofuzz fails fuzzy-if(false,0-2,0-1) == fuzzy.html fuzzy-ref.html
skip-if(!asyncPan||!browserIsRemote) == async-scroll-1a.html async-scroll-1-ref.html
# Disable low-res painting for this test as it will cause more to
# be drawn than we want.
defaults pref(layers.low-precision-buffer,false)
skip-if(!asyncPan||!browserIsRemote) != async-scroll-1b.html async-scroll-1-ref.html
defaults
skip-if(!asyncPan||!browserIsRemote) == async-scroll-1c.html async-scroll-1-ref.html

View File

@ -7251,16 +7251,6 @@
value: false
mirror: always
- name: layers.low-precision-buffer
type: RelaxedAtomicBool
value: false
mirror: always
- name: layers.low-precision-resolution
type: AtomicFloat
value: 0.25f
mirror: always
# Whether to animate simple opacity and transforms on the compositor.
- name: layers.offmainthreadcomposition.async-animations
type: bool