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

Unified Diff: Source/modules/webgl/OESVertexArrayObject.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/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 72e66d1b7c12e99d90a0f70ad06dad6297e3bc30..a61945b395180d74c4dc6affa4eb517e294514eb 100644
--- a/Source/modules/webgl/OESVertexArrayObject.cpp
+++ b/Source/modules/webgl/OESVertexArrayObject.cpp
@@ -48,20 +48,20 @@ WebGLExtensionName OESVertexArrayObject::name() const
return OESVertexArrayObjectName;
}
-PassRefPtrWillBeRawPtr<OESVertexArrayObject> OESVertexArrayObject::create(WebGLRenderingContextBase* context)
+OESVertexArrayObject* OESVertexArrayObject::create(WebGLRenderingContextBase* context)
{
- return adoptRefWillBeNoop(new OESVertexArrayObject(context));
+ return new OESVertexArrayObject(context);
}
-PassRefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> OESVertexArrayObject::createVertexArrayOES()
+WebGLVertexArrayObjectOES* OESVertexArrayObject::createVertexArrayOES()
{
WebGLExtensionScopedContext scoped(this);
if (scoped.isLost())
return nullptr;
- RefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> o = WebGLVertexArrayObjectOES::create(scoped.context(), WebGLVertexArrayObjectOES::VaoTypeUser);
- scoped.context()->addContextObject(o.get());
- return o.release();
+ WebGLVertexArrayObjectOES* o = WebGLVertexArrayObjectOES::create(scoped.context(), WebGLVertexArrayObjectOES::VaoTypeUser);
+ scoped.context()->addContextObject(o);
+ return o;
}
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