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/GrTextureContext.cpp b/src/gpu/GrTextureContext.cpp
index 7962ae7..c9e5fa5 100644
--- a/src/gpu/GrTextureContext.cpp
+++ b/src/gpu/GrTextureContext.cpp
@@ -17,10 +17,15 @@
#define RETURN_FALSE_IF_ABANDONED if (this->drawingManager()->wasAbandoned()) { return false; }
GrTextureContext::GrTextureContext(GrRecordingContext* context,
- SkAlphaType alphaType,
sk_sp<GrTextureProxy> textureProxy,
+ GrColorType colorType,
+ SkAlphaType alphaType,
sk_sp<SkColorSpace> colorSpace)
- : GrSurfaceContext(context, alphaType, std::move(colorSpace), textureProxy->config())
+ : GrSurfaceContext(context,
+ colorType,
+ alphaType,
+ std::move(colorSpace),
+ textureProxy->config())
, fTextureProxy(std::move(textureProxy))
, fOpList(sk_ref_sp(fTextureProxy->getLastTextureOpList())) {
SkDEBUGCODE(this->validate();)