diff options
author | Robert Phillips <robertphillips@google.com> | 2018-03-12 11:31:23 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-12 17:56:08 +0000 |
commit | 7611ed53b9ef7decd7d0580df8a6a02c5c178857 (patch) | |
tree | 2ebcf7a3e04a1e0b77e6bfc2594d523383c796c8 /src/gpu/GrTextureAdjuster.cpp | |
parent | 95252607e653d9d027c59919fcb218f3b6cca4f3 (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.cpp | 5 |
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, ©Params, scaleAdjust)) { return proxy; } |