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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.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/WebGLTimerQueryEXT.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp
index b81eb01ae5b5420e6f8980d3a54cd8c302153419..ff10415909e5db3c6a2c9a07c83307df5bf7ffd2 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp
@@ -15,11 +15,6 @@ WebGLTimerQueryEXT* WebGLTimerQueryEXT::create(WebGLRenderingContextBase* ctx) {
return new WebGLTimerQueryEXT(ctx);
}
-WebGLTimerQueryEXT::~WebGLTimerQueryEXT() {
- // See the comment in WebGLObject::detachAndDeleteObject().
- detachAndDeleteObject();
-}
-
WebGLTimerQueryEXT::WebGLTimerQueryEXT(WebGLRenderingContextBase* ctx)
: WebGLContextObject(ctx),
m_target(0),
@@ -33,6 +28,10 @@ WebGLTimerQueryEXT::WebGLTimerQueryEXT(WebGLRenderingContextBase* ctx)
context()->contextGL()->GenQueriesEXT(1, &m_queryId);
}
+WebGLTimerQueryEXT::~WebGLTimerQueryEXT() {
+ runDestructor();
+}
+
void WebGLTimerQueryEXT::resetCachedResult() {
m_canUpdateAvailability = false;
m_queryResultAvailable = false;

Powered by Google App Engine
This is Rietveld 408576698