Bug 1367734 - Tone down webrender's memory usage to avoid OOMing during media mochitests. r=kvark
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 01 Jun 2017 08:57:32 -0400
changeset 361812 082c1ba38bd310fcabe90a31155298899120b7c2
parent 361811 90199d13a72cbe1bab0a4a58bec2404b5cf8e248
child 361813 85e598624e0ffb8ed7532e2f1495dcf3e591e918
push id31944
push userryanvm@gmail.com
push dateThu, 01 Jun 2017 16:44:22 +0000
treeherdermozilla-central@0e9853e31da9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskvark
bugs1367734
milestone55.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 1367734 - Tone down webrender's memory usage to avoid OOMing during media mochitests. r=kvark MozReview-Commit-ID: 9RIR37ZOSFR
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -876,16 +876,17 @@ pub extern "C" fn wr_window_new(window_i
     println!("WebRender - OpenGL version new {}", version);
 
     let opts = RendererOptions {
         enable_aa: true,
         enable_subpixel_aa: true,
         enable_profiler: enable_profiler,
         recorder: recorder,
         blob_image_renderer: Some(Box::new(Moz2dImageRenderer::new())),
+        cache_expiry_frames: 60, // see https://github.com/servo/webrender/pull/1294#issuecomment-304318800
         ..Default::default()
     };
 
     let window_size = DeviceUintSize::new(window_width, window_height);
     let (renderer, sender) = match WrRenderer::new(gl, opts, window_size) {
         Ok((renderer, sender)) => (renderer, sender),
         Err(e) => {
             println!(" Failed to create a WrRenderer: {:?}", e);