aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureAdjuster.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-12 11:31:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-12 17:56:08 +0000
commit7611ed53b9ef7decd7d0580df8a6a02c5c178857 (patch)
tree2ebcf7a3e04a1e0b77e6bfc2594d523383c796c8 /src/gpu/GrTextureAdjuster.cpp
parent95252607e653d9d027c59919fcb218f3b6cca4f3 (diff)
Temporary patch for Mus/Viz
Change-Id: I2936be1d5d0d4b65a9d04b6b9c8bf95b3644dad8 Reviewed-on: https://skia-review.googlesource.com/113714 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureAdjuster.cpp')
-rw-r--r--src/gpu/GrTextureAdjuster.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrTextureAdjuster.cpp b/src/gpu/GrTextureAdjuster.cpp
index fbfffb3bb8..cc7a899839 100644
--- a/src/gpu/GrTextureAdjuster.cpp
+++ b/src/gpu/GrTextureAdjuster.cpp
@@ -75,7 +75,12 @@ sk_sp<GrTextureProxy> GrTextureAdjuster::refTextureProxySafeForParams(const GrSa
return nullptr;
}
+ // DDL TODO: remove the need for the GrGpu in this method
GrGpu* gpu = fContext->contextPriv().getGpu();
+ if (!gpu) {
+ return proxy;
+ }
+
if (!gpu->isACopyNeededForTextureParams(proxy.get(), params, &copyParams, scaleAdjust)) {
return proxy;
}