Take origin when creating/updating backend texture using pixmaps.
Bug: skia:11042
Change-Id: I511c7556f97f19d7f162031c245019d2da33c129
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341005
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/tools/gpu/YUVUtils.cpp b/tools/gpu/YUVUtils.cpp
index d6acf75..2247047 100644
--- a/tools/gpu/YUVUtils.cpp
+++ b/tools/gpu/YUVUtils.cpp
@@ -236,7 +236,11 @@
GrBackendTexture textures[SkYUVAInfo::kMaxPlanes];
for (int i = 0; i < fPixmaps.numPlanes(); ++i) {
mbets[i] = sk_gpu_test::ManagedBackendTexture::MakeWithData(
- direct, fPixmaps.plane(i), GrRenderable::kNo, GrProtected::kNo);
+ direct,
+ fPixmaps.plane(i),
+ kTopLeft_GrSurfaceOrigin,
+ GrRenderable::kNo,
+ GrProtected::kNo);
if (mbets[i]) {
textures[i] = mbets[i]->texture();
} else {