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

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

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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: third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp b/third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp
index f3fe4606788c03093c6a496c17795e2c4c686776..e15281d1fc9389c193ddc0c21e29049712974ac0 100644
--- a/third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp
+++ b/third_party/WebKit/Source/modules/webgl/OESVertexArrayObject.cpp
@@ -38,8 +38,6 @@ OESVertexArrayObject::OESVertexArrayObject(WebGLRenderingContextBase* context)
"GL_OES_vertex_array_object");
}
-OESVertexArrayObject::~OESVertexArrayObject() {}
-
WebGLExtensionName OESVertexArrayObject::name() const {
return OESVertexArrayObjectName;
}
@@ -54,10 +52,8 @@ WebGLVertexArrayObjectOES* OESVertexArrayObject::createVertexArrayOES() {
if (scoped.isLost())
return nullptr;
- WebGLVertexArrayObjectOES* o = WebGLVertexArrayObjectOES::create(
+ return WebGLVertexArrayObjectOES::create(
scoped.context(), WebGLVertexArrayObjectOES::VaoTypeUser);
- scoped.context()->addContextObject(o);
- return o;
}
void OESVertexArrayObject::deleteVertexArrayOES(

Powered by Google App Engine
This is Rietveld 408576698