Index: bench/GLBench.cpp |
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp |
index b3bec74f774b969a504843ff38345322857e8410..0252c26b37fcedaccac7c1073b1fb195d55032e6 100644 |
--- a/bench/GLBench.cpp |
+++ b/bench/GLBench.cpp |
@@ -17,15 +17,13 @@ const GrGLContext* GLBench::getGLContext(SkCanvas* canvas) { |
return NULL; |
} |
GrContext* context = canvas->getGrContext(); |
- |
- GrTestTarget tt; |
- context->getTestTarget(&tt); |
- if (!tt.target()) { |
- SkDebugf("Couldn't get Gr test target."); |
+ GrGpu* gpu = context->getGpu(); |
+ if (!gpu) { |
+ SkDebugf("Couldn't get Gr gpu."); |
return NULL; |
} |
- const GrGLContext* ctx = tt.glContext(); |
+ const GrGLContext* ctx = gpu->glContextForTesting(); |
if (!ctx) { |
SkDebugf("Couldn't get an interface\n"); |
return NULL; |