Index: Source/modules/webgl/WebGLLoseContext.cpp |
diff --git a/Source/modules/webgl/WebGLLoseContext.cpp b/Source/modules/webgl/WebGLLoseContext.cpp |
index 95829a77d6ad1cafc8ed084bb0f9b6415872e818..4dca937272ce7537c130bb10bdb87c2c077d4d85 100644 |
--- a/Source/modules/webgl/WebGLLoseContext.cpp |
+++ b/Source/modules/webgl/WebGLLoseContext.cpp |
@@ -51,16 +51,17 @@ WebGLExtensionName WebGLLoseContext::name() const |
return WebGLLoseContextName; |
} |
-PassRefPtrWillBeRawPtr<WebGLLoseContext> WebGLLoseContext::create(WebGLRenderingContextBase* context) |
+WebGLLoseContext* WebGLLoseContext::create(WebGLRenderingContextBase* context) |
{ |
- return adoptRefWillBeNoop(new WebGLLoseContext(context)); |
+ return new WebGLLoseContext(context); |
} |
void WebGLLoseContext::loseContext() |
{ |
WebGLExtensionScopedContext scoped(this); |
- if (!scoped.isLost()) |
+ if (!scoped.isLost()) { |
scoped.context()->forceLostContext(WebGLRenderingContextBase::WebGLLoseContextLostContext, WebGLRenderingContextBase::Manual); |
+ } |
} |
void WebGLLoseContext::restoreContext() |