webgl: Make context creation fallible. Fixes #6806

This commit is contained in:
ecoal95 2015-07-28 16:58:53 +02:00
parent e0bd80f807
commit bc908458ff
3 changed files with 24 additions and 16 deletions

View file

@ -266,7 +266,7 @@ pub enum Msg {
/// WebGL uses the GPU and we don't want to give untrusted content access to the GPU.)
CreateWebGLPaintTask(Size2D<i32>,
GLContextAttributes,
IpcSender<(IpcSender<CanvasMsg>, usize)>),
IpcSender<Result<(IpcSender<CanvasMsg>, usize), String>>),
}
#[derive(Clone, Eq, PartialEq, Deserialize, Serialize)]