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

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

Issue 1817323003: Revert of Remove create/delete methods from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@complex-casts
Patch Set: Created 4 years, 9 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
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 8f7073ddfb7bd0577d1ef021b46c903c7951b251..5ebdd0e7f150b6ce9597f8d99f57e58711133a87 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp
@@ -32,7 +32,7 @@
, m_queryResultAvailable(false)
, m_queryResult(0)
{
- context()->contextGL()->GenQueriesEXT(1, &m_queryId);
+ m_queryId = context()->webContext()->createQueryEXT();
}
void WebGLTimerQueryEXT::resetCachedResult()
@@ -82,7 +82,7 @@
void WebGLTimerQueryEXT::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GLES2Interface* gl)
{
- gl->DeleteQueriesEXT(1, &m_queryId);
+ context3d->deleteQueryEXT(m_queryId);
m_queryId = 0;
}

Powered by Google App Engine
This is Rietveld 408576698