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/WebGLQuery.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/WebGLQuery.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp b/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp
index 89cd092d32da430ac68567c03bfdd8e750e8800e..6cb8e79819f5bb2618555dccdf711612973649a1 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp
@@ -15,11 +15,6 @@ WebGLQuery* WebGLQuery::create(WebGL2RenderingContextBase* ctx) {
return new WebGLQuery(ctx);
}
-WebGLQuery::~WebGLQuery() {
- // See the comment in WebGLObject::detachAndDeleteObject().
- detachAndDeleteObject();
-}
-
WebGLQuery::WebGLQuery(WebGL2RenderingContextBase* ctx)
: WebGLSharedPlatform3DObject(ctx),
m_target(0),
@@ -34,6 +29,10 @@ WebGLQuery::WebGLQuery(WebGL2RenderingContextBase* ctx)
setObject(query);
}
+WebGLQuery::~WebGLQuery() {
+ runDestructor();
+}
+
void WebGLQuery::setTarget(GLenum target) {
ASSERT(object());
ASSERT(!m_target);

Powered by Google App Engine
This is Rietveld 408576698