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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.cpp

Issue 1808403002: Move simple methods [F-S] from WebGraphicsContext3D to GLES2Interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bindFoo
Patch Set: simples-fplus: tests 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/platform/graphics/gpu/SharedContextRateLimiter.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.cpp b/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.cpp
index 0fc1996dba52ab16ea00e68e10bfbbd984df7fcc..4b0dbc740ea5559ae39dc2916482624ae5df356b 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.cpp
@@ -50,17 +50,17 @@ void SharedContextRateLimiter::tick()
WebGraphicsContext3D* context = m_contextProvider->context3d();
m_queries.append(m_canUseSyncQueries ? context->createQueryEXT() : 0);
if (m_canUseSyncQueries) {
- context->beginQueryEXT(GL_COMMANDS_COMPLETED_CHROMIUM, m_queries.last());
- context->endQueryEXT(GL_COMMANDS_COMPLETED_CHROMIUM);
+ gl->BeginQueryEXT(GL_COMMANDS_COMPLETED_CHROMIUM, m_queries.last());
+ gl->EndQueryEXT(GL_COMMANDS_COMPLETED_CHROMIUM);
}
if (m_queries.size() > m_maxPendingTicks) {
if (m_canUseSyncQueries) {
WGC3Duint result;
- context->getQueryObjectuivEXT(m_queries.first(), GL_QUERY_RESULT_EXT, &result);
+ gl->GetQueryObjectuivEXT(m_queries.first(), GL_QUERY_RESULT_EXT, &result);
context->deleteQueryEXT(m_queries.first());
m_queries.removeFirst();
} else {
- context->finish();
+ gl->Finish();
reset();
}
}

Powered by Google App Engine
This is Rietveld 408576698