Bug 1448006 - Disable mipmaps in WR. r?mstange draft
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 22 Mar 2018 12:14:15 -0400
changeset 771156 dc2b4e20467bd2f63c5b83329a8d3dfb298899e9
parent 771136 a70f9abffdf78f3b0c5c73bf69a638c3b95d0210
push id103587
push userkgupta@mozilla.com
push dateThu, 22 Mar 2018 16:17:15 +0000
reviewersmstange
bugs1448006
milestone61.0a1
Bug 1448006 - Disable mipmaps in WR. r?mstange MozReview-Commit-ID: HlUzStD16Pa
dom/html/reftests/reftest.list
gfx/webrender_bindings/src/bindings.rs
layout/reftests/backgrounds/vector/reftest.list
testing/web-platform/meta/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height-viewbox.html.ini
testing/web-platform/meta/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height.html.ini
--- a/dom/html/reftests/reftest.list
+++ b/dom/html/reftests/reftest.list
@@ -39,17 +39,17 @@ skip-if(Android) == 649134-2.html 649134
 == image-load-shortcircuit-1.html image-load-shortcircuit-ref.html
 == image-load-shortcircuit-2.html image-load-shortcircuit-ref.html
 
 # Test that image documents taken into account CSS properties like
 # image-orientation when determining the size of the image.
 # (Fuzzy necessary due to pixel-wise comparison of different JPEGs.
 # The vast majority of the fuzziness comes from Linux and WinXP.)
 fuzzy(1,149) == bug917595-iframe-1.html    bug917595-1-ref.html
-fuzzy(3,640) fuzzy-if(skiaContent,3,7544) fuzzy-if(webrender,10-10,10916-10916) == bug917595-exif-rotated.jpg bug917595-pixel-rotated.jpg # bug 1060869
+fuzzy(3,640) fuzzy-if(skiaContent,3,7544) fuzzy-if(webrender,3-3,7544-7544) == bug917595-exif-rotated.jpg bug917595-pixel-rotated.jpg # bug 1060869
 
 # Test support for SVG-as-image in <picture> elements.
 == bug1106522-1.html bug1106522-ref.html
 == bug1106522-2.html bug1106522-ref.html
 
 == href-attr-change-restyles.html href-attr-change-restyles-ref.html
 == figure.html figure-ref.html
 == pre-1.html pre-1-ref.html
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -262,17 +262,17 @@ impl<'a> Into<ImageDescriptor> for &'a W
             stride: if self.stride != 0 {
                 Some(self.stride)
             } else {
                 None
             },
             format: self.format,
             is_opaque: self.is_opaque,
             offset: 0,
-            allow_mipmaps: true,
+            allow_mipmaps: false,
         }
     }
 }
 
 /// cbindgen:field-names=[mHandle]
 #[repr(C)]
 #[derive(Copy, Clone)]
 pub struct WrExternalImageId(pub u64);
--- a/layout/reftests/backgrounds/vector/reftest.list
+++ b/layout/reftests/backgrounds/vector/reftest.list
@@ -176,18 +176,18 @@ include empty/reftest.list
 == wide--contain--omitted-width-percent-height-viewbox.html ref-wide-lime16x128-aqua16x128.html
 == wide--contain--percent-width-nonpercent-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--contain--percent-width-nonpercent-height-viewbox.html ref-wide-lime16x128-aqua16x128.html
 == wide--contain--percent-width-omitted-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--contain--percent-width-omitted-height-viewbox.html ref-wide-lime16x128-aqua16x128.html
 == wide--contain--percent-width-percent-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--contain--percent-width-percent-height-viewbox.html ref-wide-lime16x128-aqua16x128.html
 
-fuzzy-if(webrender,127-127,768-768) == wide--cover--nonpercent-width-nonpercent-height.html ref-wide-lime768x256.html
-fuzzy-if(webrender,127-127,768-768) == wide--cover--nonpercent-width-nonpercent-height-viewbox.html ref-wide-lime768x256.html
+== wide--cover--nonpercent-width-nonpercent-height.html ref-wide-lime768x256.html
+== wide--cover--nonpercent-width-nonpercent-height-viewbox.html ref-wide-lime768x256.html
 == wide--cover--nonpercent-width-omitted-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--cover--nonpercent-width-omitted-height-viewbox.html ref-wide-lime768x256.html
 == wide--cover--nonpercent-width-percent-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--cover--nonpercent-width-percent-height-viewbox.html ref-wide-lime768x256.html
 == wide--cover--omitted-width-nonpercent-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--cover--omitted-width-nonpercent-height-viewbox.html ref-wide-lime768x256.html
 == wide--cover--omitted-width-omitted-height.html ref-wide-lime768x128-aqua768x128.html
 == wide--cover--omitted-width-omitted-height-viewbox.html ref-wide-lime768x256.html
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height-viewbox.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[wide--cover--nonpercent-width-nonpercent-height-viewbox.html]
-  expected:
-    if webrender: FAIL
deleted file mode 100644
--- a/testing/web-platform/meta/css/css-backgrounds/background-size/vector/wide--cover--nonpercent-width-nonpercent-height.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[wide--cover--nonpercent-width-nonpercent-height.html]
-  expected:
-    if webrender: FAIL