Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Unified Diff: Source/core/html/canvas/WebGLTexture.cpp

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make WebGLObjects keep a blink::WebGraphicsContext3D for finalization. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..3affd7aac301abcb8ea297ac23057ed478bcef51 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,6 +56,7 @@ WebGLTexture::WebGLTexture(WebGLRenderingContextBase* ctx)
WebGLTexture::~WebGLTexture()
{
+ detach();
deleteObject(0);
}

Powered by Google App Engine
This is Rietveld 408576698