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

Unified Diff: bench/BenchGpuTimer_gl.cpp

Issue 12328111: Use glGetStringi to get extensions when available. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/BenchGpuTimer_gl.cpp
===================================================================
--- bench/BenchGpuTimer_gl.cpp (revision 7868)
+++ bench/BenchGpuTimer_gl.cpp (working copy)
@@ -15,8 +15,8 @@
glctx->makeCurrent();
fStarted = false;
fSupported = GrGLGetVersion(glctx->gl()) > GR_GL_VER(3,3) ||
- GrGLHasExtension(glctx->gl(), "GL_ARB_timer_query") ||
- GrGLHasExtension(glctx->gl(), "GL_EXT_timer_query");
+ glctx->hasExtension("GL_ARB_timer_query") ||
+ glctx->hasExtension("GL_EXT_timer_query");
if (fSupported) {
SK_GL(*glctx, GenQueries(1, &fQuery));
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698