Auto merge of #6812 - ecoal95:webgl-fail, r=jdm

webgl: Make context creation fallible. Fixes #6806



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6812)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-29 15:29:58 -06:00
commit b90fd5931d
3 changed files with 24 additions and 16 deletions

View file

@ -268,7 +268,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)]