Bug 1624640 - Grow the alpha8 texture array four layers at a time. r=jrmuizel
authorNicolas Silva <nsilva@mozilla.com>
Tue, 24 Mar 2020 22:53:21 +0000
changeset 520304 167562affb96a1777609f6c6bb6f0a1dab520309
parent 520303 61582f6d817a401e12c32340873d3d781e6cfaf2
child 520305 e2f021fe0c3e0f3c0653d153ba1448627471edf7
push id37246
push useropoprus@mozilla.com
push dateWed, 25 Mar 2020 03:40:33 +0000
treeherdermozilla-central@14b59d4adc95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1624640
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1624640 - Grow the alpha8 texture array four layers at a time. r=jrmuizel The texture array is currently grown layer by layer and we typically get to 3 or 4 layers over several frames by the time we are done loading a simple wikipedia page. Differential Revision: https://phabricator.services.mozilla.com/D68056
gfx/wr/webrender/src/texture_cache.rs
--- a/gfx/wr/webrender/src/texture_cache.rs
+++ b/gfx/wr/webrender/src/texture_cache.rs
@@ -275,17 +275,17 @@ impl SharedTextures {
     fn new(color_formats: TextureFormatPair<ImageFormat>) -> Self {
         Self {
             // Used primarily for cached shadow masks. There can be lots of
             // these on some pages like francine, but most pages don't use it
             // much.
             array_alpha8_linear: TextureArray::new(
                 TextureFormatPair::from(ImageFormat::R8),
                 TextureFilter::Linear,
-                1,
+                4,
             ),
             // Used for experimental hdr yuv texture support, but not used in
             // production Firefox.
             array_alpha16_linear: TextureArray::new(
                 TextureFormatPair::from(ImageFormat::R16),
                 TextureFilter::Linear,
                 1,
             ),