Bug 1607697 - Remove leading zeros in dither matrix litterals. r=Gankro
☠☠ backed out by c2dd65b196d3 ☠ ☠
authorNicolas Silva <nsilva@mozilla.com>
Wed, 08 Jan 2020 15:44:49 +0000
changeset 509363 6c1778a36720e182351c6f24666f04e5a481f98b
parent 509362 9e830c9157aebe7303a59f4604889b79352bb709
child 509364 8490fa04e0eec09cbbd6c7b3301af05592d6fd6f
push id36995
push userapavel@mozilla.com
push dateWed, 08 Jan 2020 21:56:06 +0000
treeherdermozilla-central@374a48ce8690 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGankro
bugs1607697
milestone74.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 1607697 - Remove leading zeros in dither matrix litterals. r=Gankro Addresses a clippy lint. Differential Revision: https://phabricator.services.mozilla.com/D59112
gfx/wr/webrender/src/renderer.rs
--- a/gfx/wr/webrender/src/renderer.rs
+++ b/gfx/wr/webrender/src/renderer.rs
@@ -2022,71 +2022,71 @@ impl Renderer {
             Some(shaders) => Rc::clone(&shaders.shaders),
             None => Rc::new(RefCell::new(Shaders::new(&mut device, gl_type, &options)?)),
         };
 
         let backend_profile_counters = BackendProfileCounters::new();
 
         let dither_matrix_texture = if options.enable_dithering {
             let dither_matrix: [u8; 64] = [
-                00,
+                0,
                 48,
                 12,
                 60,
-                03,
+                3,
                 51,
                 15,
                 63,
                 32,
                 16,
                 44,
                 28,
                 35,
                 19,
                 47,
                 31,
-                08,
+                8,
                 56,
-                04,
+                4,
                 52,
                 11,
                 59,
-                07,
+                7,
                 55,
                 40,
                 24,
                 36,
                 20,
                 43,
                 27,
                 39,
                 23,
-                02,
+                2,
                 50,
                 14,
                 62,
-                01,
+                1,
                 49,
                 13,
                 61,
                 34,
                 18,
                 46,
                 30,
                 33,
                 17,
                 45,
                 29,
                 10,
                 58,
-                06,
+                6,
                 54,
-                09,
+                9,
                 57,
-                05,
+                5,
                 53,
                 42,
                 26,
                 38,
                 22,
                 41,
                 25,
                 37,