Apply local matrix and then plane scaling matrix in GrYUVToRGBEffect
Change-Id: I9c3c276cfef1e306d1399f1b972af72c7934dea7
Bug: skia:9112
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/215835
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.h b/src/gpu/effects/GrYUVtoRGBEffect.h
index fe96db7..338ea14 100644
--- a/src/gpu/effects/GrYUVtoRGBEffect.h
+++ b/src/gpu/effects/GrYUVtoRGBEffect.h
@@ -63,7 +63,7 @@
GrTextureDomain::kClamp_Mode, GrTextureDomain::kClamp_Mode, i);
}
- planeMatrix.postConcat(localMatrix);
+ planeMatrix.preConcat(localMatrix);
fSamplers[i].reset(std::move(proxies[i]),
GrSamplerState(GrSamplerState::WrapMode::kClamp, filterModes[i]));
fSamplerTransforms[i] = planeMatrix;