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/ManagedBackendTexture.cpp b/tools/gpu/ManagedBackendTexture.cpp
index 593fa16..c03ff46 100644
--- a/tools/gpu/ManagedBackendTexture.cpp
+++ b/tools/gpu/ManagedBackendTexture.cpp
@@ -86,8 +86,12 @@
levels.push_back(level.fPixmap);
}
}
- return MakeWithData(
- dContext, levels.data(), static_cast<int>(levels.size()), renderable, isProtected);
+ return MakeWithData(dContext,
+ levels.data(),
+ static_cast<int>(levels.size()),
+ kTopLeft_GrSurfaceOrigin,
+ renderable,
+ isProtected);
}
} // namespace sk_gpu_test