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

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

Powered by Google App Engine
This is Rietveld 408576698