diff options
author | jvanverth <jvanverth@google.com> | 2015-07-13 07:19:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-13 07:19:57 -0700 |
commit | 672bb7fc6640e3fc68107354ed4ae45a2a1e2d29 (patch) | |
tree | bc9247fd24909a5dd3c38e2114ba1628126da130 /bench | |
parent | ab9cb427f45cdd51a5f8f6df9c19e955e555fc13 (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.cpp | 10 |
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; |