Index: Source/modules/webgl/WebGLLoseContext.cpp |
diff --git a/Source/modules/webgl/WebGLLoseContext.cpp b/Source/modules/webgl/WebGLLoseContext.cpp |
index 4dca937272ce7537c130bb10bdb87c2c077d4d85..95829a77d6ad1cafc8ed084bb0f9b6415872e818 100644 |
--- a/Source/modules/webgl/WebGLLoseContext.cpp |
+++ b/Source/modules/webgl/WebGLLoseContext.cpp |
@@ -51,17 +51,16 @@ |
return WebGLLoseContextName; |
} |
-WebGLLoseContext* WebGLLoseContext::create(WebGLRenderingContextBase* context) |
+PassRefPtrWillBeRawPtr<WebGLLoseContext> WebGLLoseContext::create(WebGLRenderingContextBase* context) |
{ |
- return new WebGLLoseContext(context); |
+ return adoptRefWillBeNoop(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() |