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

Unified Diff: Source/modules/webgl/WebGLTransformFeedback.cpp

Issue 1234883002: [Oilpan] Migrate classes under module/webgl onto oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 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
« no previous file with comments | « Source/modules/webgl/WebGLTransformFeedback.h ('k') | Source/modules/webgl/WebGLTransformFeedback.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webgl/WebGLTransformFeedback.cpp
diff --git a/Source/modules/webgl/WebGLTransformFeedback.cpp b/Source/modules/webgl/WebGLTransformFeedback.cpp
index fe69008fa0213e00f90bcc4c73b5d924b7035ebf..ccb74c6afedba4f94797584c12d12f6445e09a40 100644
--- a/Source/modules/webgl/WebGLTransformFeedback.cpp
+++ b/Source/modules/webgl/WebGLTransformFeedback.cpp
@@ -10,20 +10,14 @@
namespace blink {
-PassRefPtrWillBeRawPtr<WebGLTransformFeedback> WebGLTransformFeedback::create(WebGL2RenderingContextBase* ctx)
+WebGLTransformFeedback* WebGLTransformFeedback::create(WebGL2RenderingContextBase* ctx)
{
- return adoptRefWillBeNoop(new WebGLTransformFeedback(ctx));
+ return new WebGLTransformFeedback(ctx);
}
WebGLTransformFeedback::~WebGLTransformFeedback()
{
- // Always call detach here to ensure that platform object deletion
- // happens with Oilpan enabled. It keeps the code regular to do it
- // with or without Oilpan enabled.
- //
- // See comment in WebGLBuffer's destructor for additional
- // information on why this is done for WebGLSharedObject-derived
- // objects.
+ // See the comment in WebGLObject::detachAndDeleteObject().
detachAndDeleteObject();
}
« no previous file with comments | « Source/modules/webgl/WebGLTransformFeedback.h ('k') | Source/modules/webgl/WebGLTransformFeedback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698