Remove a usage of GrPixelConfig in SkGpuBlurUtils::GaussianBlur
Bug: skia:6718
Change-Id: Ia8a96cf6907ffaafd989f1e5bb1443d1ef51b9e6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/242142
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index b77fe5b..0ef9383 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1204,6 +1204,7 @@
rect,
bitmap.getGenerationID(),
std::move(proxy),
+ SkColorTypeToGrColorType(bitmap.colorType()),
bitmap.refColorSpace(),
&this->surfaceProps());
}
@@ -1217,6 +1218,7 @@
SkIRect::MakeWH(image->width(), image->height()),
image->uniqueID(),
std::move(proxy),
+ SkColorTypeToGrColorType(image->colorType()),
image->refColorSpace(),
&this->surfaceProps());
} else if (image->peekPixels(&pm)) {
@@ -1262,10 +1264,13 @@
finalSubset = SkIRect::MakeSize(proxy->isize());
}
+ GrColorType ct = SkColorTypeToGrColorType(this->imageInfo().colorType());
+
return SkSpecialImage::MakeDeferredFromGpu(fContext.get(),
finalSubset,
kNeedNewImageUniqueID_SpecialImage,
std::move(proxy),
+ ct,
this->imageInfo().refColorSpace(),
&this->surfaceProps());
}