canvas: Don't panic if webrender isn't reachable.

This commit is contained in:
Josh Matthews 2020-06-10 10:39:52 -04:00
parent 04fae2fdca
commit 55fee1fb35
3 changed files with 7 additions and 4 deletions

View file

@ -26,7 +26,7 @@ pub enum ImageUpdate {
}
pub trait WebrenderApi {
fn generate_key(&self) -> webrender_api::ImageKey;
fn generate_key(&self) -> Result<webrender_api::ImageKey, ()>;
fn update_images(&self, updates: Vec<ImageUpdate>);
fn clone(&self) -> Box<dyn WebrenderApi>;
}