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

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

Issue 1814263004: 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/WebGLQuery.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp b/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp
index ddebb2413fff6d6b8d2e953404d8f308176e692f..5eb84c5ab7addebb37f0d69bf2ef9e1c3f6e3624 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp
@@ -31,7 +31,9 @@ WebGLQuery::WebGLQuery(WebGL2RenderingContextBase* ctx)
, m_queryResultAvailable(false)
, m_queryResult(0)
{
- setObject(ctx->webContext()->createQueryEXT());
+ uint32_t query;
+ ctx->contextGL()->GenQueriesEXT(1, &query);
+ setObject(query);
}
void WebGLQuery::setTarget(GLenum target)
@@ -43,7 +45,7 @@ void WebGLQuery::setTarget(GLenum target)
void WebGLQuery::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GLES2Interface* gl)
{
- context3d->deleteQueryEXT(m_object);
+ gl->DeleteQueriesEXT(1, &m_object);
m_object = 0;
}

Powered by Google App Engine
This is Rietveld 408576698