Bug 1395237 - Fix for change in WR cset da0b2138. r=jrmuizel
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 31 Aug 2017 14:09:26 -0400
changeset 378126 14fcefb89e4fe5b6101549ed32f7ab25d6d73fd5
parent 378125 0363b34d637c714b452baeea0d3fbb860e9951eb
child 378127 a47911a010ff4d9757d6edec1aaf78e78f9dc443
push id32422
push userarchaeopteryx@coole-files.de
push dateFri, 01 Sep 2017 08:39:53 +0000
treeherdermozilla-central@a3585c77e2b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1395237
milestone57.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 1395237 - Fix for change in WR cset da0b2138. r=jrmuizel MozReview-Commit-ID: LC6rp1Vysdp
gfx/webrender_bindings/src/moz2d_renderer.rs
--- a/gfx/webrender_bindings/src/moz2d_renderer.rs
+++ b/gfx/webrender_bindings/src/moz2d_renderer.rs
@@ -59,17 +59,17 @@ impl BlobImageRenderer for Moz2dImageRen
         let blob = &self.blob_commands[&request.key];
         let tile_size = blob.1;
         let commands = Arc::clone(&blob.0);
 
 
         self.workers.spawn(move || {
             let buf_size = (descriptor.width
                 * descriptor.height
-                * descriptor.format.bytes_per_pixel().unwrap()) as usize;
+                * descriptor.format.bytes_per_pixel()) as usize;
             let mut output = vec![255u8; buf_size];
 
             let result = unsafe {
                 if wr_moz2d_render_cb(
                     ByteSlice::new(&commands[..]),
                     descriptor.width,
                     descriptor.height,
                     descriptor.format,