Bug 1454187 - Don't let webrender try to request blob images larger than Moz2D's max texture size. r=nical
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 14 Jun 2018 10:13:40 -0400
changeset 476806 efeb9170c20175cd350c1d545e726bdd37197b09
parent 476805 1768cef6a099ce0e0e841f65c6a623d926b24607
child 476807 24bfb36d26e86f8c8a2b8e03a82081f4041c57f2
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1454187
milestone62.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 1454187 - Don't let webrender try to request blob images larger than Moz2D's max texture size. r=nical MozReview-Commit-ID: FhAXhrx1km5
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -926,16 +926,17 @@ pub extern "C" fn wr_window_new(window_i
                     _ => None
                 }
             }
         },
         renderer_id: Some(window_id.0),
         upload_method,
         scene_builder_hooks: Some(Box::new(APZCallbacks::new(window_id))),
         sampler: Some(Box::new(SamplerCallback::new(window_id))),
+        max_texture_size: Some(8192), // Moz2D doesn't like textures bigger than this
         ..Default::default()
     };
 
     let notifier = Box::new(CppNotifier {
         window_id: window_id,
     });
     let (renderer, sender) = match Renderer::new(gl, notifier, opts) {
         Ok((renderer, sender)) => (renderer, sender),