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

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

Issue 1281953003: Revert of [Oilpan] Migrate classes under module/webgl onto oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/OESVertexArrayObject.h ('k') | Source/modules/webgl/OESVertexArrayObject.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webgl/OESVertexArrayObject.cpp
diff --git a/Source/modules/webgl/OESVertexArrayObject.cpp b/Source/modules/webgl/OESVertexArrayObject.cpp
index a61945b395180d74c4dc6affa4eb517e294514eb..72e66d1b7c12e99d90a0f70ad06dad6297e3bc30 100644
--- a/Source/modules/webgl/OESVertexArrayObject.cpp
+++ b/Source/modules/webgl/OESVertexArrayObject.cpp
@@ -48,20 +48,20 @@
return OESVertexArrayObjectName;
}
-OESVertexArrayObject* OESVertexArrayObject::create(WebGLRenderingContextBase* context)
+PassRefPtrWillBeRawPtr<OESVertexArrayObject> OESVertexArrayObject::create(WebGLRenderingContextBase* context)
{
- return new OESVertexArrayObject(context);
+ return adoptRefWillBeNoop(new OESVertexArrayObject(context));
}
-WebGLVertexArrayObjectOES* OESVertexArrayObject::createVertexArrayOES()
+PassRefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> OESVertexArrayObject::createVertexArrayOES()
{
WebGLExtensionScopedContext scoped(this);
if (scoped.isLost())
return nullptr;
- WebGLVertexArrayObjectOES* o = WebGLVertexArrayObjectOES::create(scoped.context(), WebGLVertexArrayObjectOES::VaoTypeUser);
- scoped.context()->addContextObject(o);
- return o;
+ RefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> o = WebGLVertexArrayObjectOES::create(scoped.context(), WebGLVertexArrayObjectOES::VaoTypeUser);
+ scoped.context()->addContextObject(o.get());
+ return o.release();
}
void OESVertexArrayObject::deleteVertexArrayOES(WebGLVertexArrayObjectOES* arrayObject)
« no previous file with comments | « Source/modules/webgl/OESVertexArrayObject.h ('k') | Source/modules/webgl/OESVertexArrayObject.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698