Index: Source/core/html/canvas/WebGLShader.cpp |
diff --git a/Source/core/html/canvas/WebGLShader.cpp b/Source/core/html/canvas/WebGLShader.cpp |
index 203041e85cf66c225b4cb8e2693f455b89f450e8..461169fab33fe0c3aacda03e5c3de0d4741cdef5 100644 |
--- a/Source/core/html/canvas/WebGLShader.cpp |
+++ b/Source/core/html/canvas/WebGLShader.cpp |
@@ -31,9 +31,9 @@ |
namespace WebCore { |
-PassRefPtr<WebGLShader> WebGLShader::create(WebGLRenderingContextBase* ctx, GLenum type) |
+PassRefPtrWillBeRawPtr<WebGLShader> WebGLShader::create(WebGLRenderingContextBase* ctx, GLenum type) |
{ |
- return adoptRef(new WebGLShader(ctx, type)); |
+ return adoptRefWillBeNoop(new WebGLShader(ctx, type)); |
} |
WebGLShader::WebGLShader(WebGLRenderingContextBase* ctx, GLenum type) |
@@ -47,7 +47,7 @@ WebGLShader::WebGLShader(WebGLRenderingContextBase* ctx, GLenum type) |
WebGLShader::~WebGLShader() |
{ |
- deleteObject(0); |
+ detachAndDeleteObject(); |
Ken Russell (switch to Gerrit)
2014/07/19 00:27:16
Please add a comment about the need to manually ca
sof
2014/07/19 19:55:57
Thanks, added.
|
} |
void WebGLShader::deleteObjectImpl(blink::WebGraphicsContext3D* context3d, Platform3DObject object) |