Bug 1454659. Remove remaining assert for empty blob images.
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 17 Apr 2018 20:37:07 -0400
changeset 414209 7b816219f70814c65453533c81b2d48e8abcd8bd
parent 414208 e9beb8f20e0a1708093034e8740fa9506ec1e2d7
child 414210 34322841fae5072a02b15ae3f0cddb2c39c20a69
push id33861
push userccoroiu@mozilla.com
push dateWed, 18 Apr 2018 10:50:38 +0000
treeherdermozilla-central@4af4ae0aee55 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1454659, 1451458
milestone61.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 1454659. Remove remaining assert for empty blob images. When we removed the empty blob image assert in bug 1451458. We ended up just moving it to this assert. We'll drop this one as well.
gfx/webrender_bindings/src/moz2d_renderer.rs
--- a/gfx/webrender_bindings/src/moz2d_renderer.rs
+++ b/gfx/webrender_bindings/src/moz2d_renderer.rs
@@ -416,17 +416,16 @@ impl BlobImageRenderer for Moz2dImageRen
                         process_native_font_handle(key, handle);
                     }
                 }
                 resources.get_font_data(key);
             }
         }
         {
             let mut index = BlobReader::new(&commands);
-            assert!(index.reader.pos < index.reader.buf.len());
             while index.reader.pos < index.reader.buf.len() {
                 let e  = index.read_entry();
                 process_fonts(BufReader::new(&commands[e.end..e.extra_end]), resources);
             }
         }
 
         self.workers.spawn(move || {
             let buf_size = (descriptor.width