Chromium Code Reviews| Index: Source/core/html/canvas/WebGLTexture.cpp |
| diff --git a/Source/core/html/canvas/WebGLTexture.cpp b/Source/core/html/canvas/WebGLTexture.cpp |
| index 292974230ea6f5744821e6c55e2dc18bb7dd5691..baec102512c65db12c9d3614772c442206a2ebad 100644 |
| --- a/Source/core/html/canvas/WebGLTexture.cpp |
| +++ b/Source/core/html/canvas/WebGLTexture.cpp |
| @@ -31,9 +31,9 @@ |
| namespace WebCore { |
| -PassRefPtr<WebGLTexture> WebGLTexture::create(WebGLRenderingContextBase* ctx) |
| +PassRefPtrWillBeRawPtr<WebGLTexture> WebGLTexture::create(WebGLRenderingContextBase* ctx) |
| { |
| - return adoptRef(new WebGLTexture(ctx)); |
| + return adoptRefWillBeNoop(new WebGLTexture(ctx)); |
| } |
| WebGLTexture::WebGLTexture(WebGLRenderingContextBase* ctx) |
| @@ -56,7 +56,7 @@ WebGLTexture::WebGLTexture(WebGLRenderingContextBase* ctx) |
| WebGLTexture::~WebGLTexture() |
| { |
| - deleteObject(0); |
| + detachAndDeleteObject(); |
|
Ken Russell (switch to Gerrit)
2014/07/19 00:27:16
Same here.
sof
2014/07/19 19:55:57
Added; I also added a comment to WebGLObject::deta
|
| } |
| void WebGLTexture::setTarget(GLenum target, GLint maxLevel) |