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

Unified Diff: third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQuery.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/EXTDisjointTimerQuery.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQuery.cpp b/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQuery.cpp
index 4988bfce36dc2d18de2491730be955f9fc5ba26d..91f09f1844fa4bc63ba54ff013102e21484471b3 100644
--- a/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQuery.cpp
+++ b/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQuery.cpp
@@ -11,16 +11,13 @@
namespace blink {
-EXTDisjointTimerQuery::~EXTDisjointTimerQuery() {}
-
WebGLExtensionName EXTDisjointTimerQuery::name() const {
return EXTDisjointTimerQueryName;
}
EXTDisjointTimerQuery* EXTDisjointTimerQuery::create(
WebGLRenderingContextBase* context) {
- EXTDisjointTimerQuery* o = new EXTDisjointTimerQuery(context);
- return o;
+ return new EXTDisjointTimerQuery(context);
}
bool EXTDisjointTimerQuery::supported(WebGLRenderingContextBase* context) {
@@ -37,9 +34,7 @@ WebGLTimerQueryEXT* EXTDisjointTimerQuery::createQueryEXT() {
if (scoped.isLost())
return nullptr;
- WebGLTimerQueryEXT* o = WebGLTimerQueryEXT::create(scoped.context());
- scoped.context()->addContextObject(o);
- return o;
+ return WebGLTimerQueryEXT::create(scoped.context());
}
void EXTDisjointTimerQuery::deleteQueryEXT(WebGLTimerQueryEXT* query) {

Powered by Google App Engine
This is Rietveld 408576698