aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-07-13 07:19:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-13 07:19:57 -0700
commit672bb7fc6640e3fc68107354ed4ae45a2a1e2d29 (patch)
treebc9247fd24909a5dd3c38e2114ba1628126da130 /bench
parentab9cb427f45cdd51a5f8f6df9c19e955e555fc13 (diff)
Remove GL-specific code from GMs and tests
TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1232173002
Diffstat (limited to 'bench')
-rw-r--r--bench/GLBench.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp
index b3bec74f77..0252c26b37 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;