Remove GrPixelConfigIsAlphaOnly call and transition calls to it.
Bug: skia:6718
Change-Id: I4d9c31bc0ca42a80e652de29462531587efef031
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/248257
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrTextureAdjuster.cpp b/src/gpu/GrTextureAdjuster.cpp
index 209d1f4..9b6ce36 100644
--- a/src/gpu/GrTextureAdjuster.cpp
+++ b/src/gpu/GrTextureAdjuster.cpp
@@ -25,6 +25,15 @@
, fOriginal(std::move(original))
, fUniqueID(uniqueID) {}
+GrTextureAdjuster::GrTextureAdjuster(GrRecordingContext* context,
+ sk_sp<GrTextureProxy> original,
+ const GrColorInfo& colorInfo,
+ uint32_t uniqueID,
+ bool useDecal)
+ : INHERITED(context, original->width(), original->height(), colorInfo, useDecal)
+ , fOriginal(std::move(original))
+ , fUniqueID(uniqueID) {}
+
void GrTextureAdjuster::makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) {
// Destination color space is irrelevant - we already have a texture so we're just sub-setting
GrUniqueKey baseKey;