Bug 1454659. Remove remaining assert for empty blob images.
☠☠ backed out by 393b0712839a ☠ ☠
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 17 Apr 2018 10:35:18 -0400
changeset 467689 51fdcc41076f7b3f555af5a9a2b8cc35ead7650e
parent 467688 135f00f029379c44fb738b371df450622ca57aa2
child 467690 3ab522801015f2ff098f9a7958f8348a862955bf
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [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