Index: tools/timer/GpuTimer.cpp |
diff --git a/tools/timer/GpuTimer.cpp b/tools/timer/GpuTimer.cpp |
index 0fdd9999226542824909cb873b4ac9cbe3af3fc9..51ab3ad2359ba436bfab33e04cec941601f0f7c0 100644 |
--- a/tools/timer/GpuTimer.cpp |
+++ b/tools/timer/GpuTimer.cpp |
@@ -15,8 +15,8 @@ GpuTimer::GpuTimer(const SkGLContext* glctx) : fContext(glctx) { |
fContext->makeCurrent(); |
fStarted = false; |
fSupported = GrGLGetVersion(fContext->gl()) > GR_GL_VER(3,3) || |
- fContext->hasExtension("GL_ARB_timer_query") || |
- fContext->hasExtension("GL_EXT_timer_query"); |
+ fContext->gl()->hasExtension("GL_ARB_timer_query") || |
+ fContext->gl()->hasExtension("GL_EXT_timer_query"); |
if (fSupported) { |
SK_GL(*fContext, GenQueries(1, &fQuery)); |