Remove GL-specific code from GMs and tests
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1232173002
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp
index b3bec74..0252c26 100644
--- a/bench/GLBench.cpp
+++ b/bench/GLBench.cpp
@@ -17,15 +17,13 @@
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;