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>
This commit is contained in:
Robert Phillips 2018-03-12 11:31:23 -04:00 committed by Skia Commit-Bot
parent 95252607e6
commit 7611ed53b9

View File

@ -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;
}