Make GrColorSpaceInfo store GrColorType.
This is largely redundant with GrPixelConfig. However, we intend to
remove GrPixelConfig.
Bug: skia:7580
Change-Id: I03d92303be832711f7821f8a97d36387c9b04a9f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222883
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp
index 1a97888..0cc44b2 100644
--- a/src/gpu/GrBlurUtils.cpp
+++ b/src/gpu/GrBlurUtils.cpp
@@ -178,10 +178,10 @@
GrBackendFormat format =
context->priv().caps()->getBackendFormatFromColorType(kAlpha_8_SkColorType);
sk_sp<GrRenderTargetContext> rtContext(
- context->priv().makeDeferredRenderTargetContextWithFallback(
- format, SkBackingFit::kApprox, maskRect.width(), maskRect.height(),
- kAlpha_8_GrPixelConfig, nullptr, sampleCnt, GrMipMapped::kNo,
- kTopLeft_GrSurfaceOrigin));
+ context->priv().makeDeferredRenderTargetContextWithFallback(
+ format, SkBackingFit::kApprox, maskRect.width(), maskRect.height(),
+ kAlpha_8_GrPixelConfig, GrColorType::kAlpha_8, nullptr, sampleCnt,
+ GrMipMapped::kNo, kTopLeft_GrSurfaceOrigin));
if (!rtContext) {
return nullptr;
}