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

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

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

Powered by Google App Engine
This is Rietveld 408576698