Skip to content

Commit 4031f23

Browse files
committed
Bug 1650801 - Panic instead of failing gracefully if FreeType failed to initialize. r=gw
Bug 1650662 makes us RELEASE_ASSERT on FreeType initialization earlier so I think it's unlikely that we ever hit this case in the future. Differential Revision: https://phabricator.services.mozilla.com/D82390
1 parent 18cfe83 commit 4031f23

File tree

1 file changed

+3
-3
lines changed
  • gfx/wr/webrender/src/platform/unix

1 file changed

+3
-3
lines changed

gfx/wr/webrender/src/platform/unix/font.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ impl FontContext {
335335
})
336336
} else {
337337
// TODO(gw): Provide detailed error values.
338-
Err(ResourceCacheError::new(
339-
format!("Failed to initialize FreeType - {}", result)
340-
))
338+
// Once this panic has been here for a while with no issues we should get rid of
339+
// ResourceCacheError as this was the only place that could fail previously.
340+
panic!("Failed to initialize FreeType - {}", result)
341341
}
342342
}
343343

0 commit comments

Comments
 (0)