GrColorSpaceInfo stores SkAlphaType.
This means GrSurfaceContext's know their alpha type.
All GrRenderTargetSurfaceContexts are kPremul.
Make GrTextureProducer store GrColorSpaceInfo.
Bug: skia:7580
Change-Id: I5ff321ef52c0edd32e5fac99dff95d44aa66f592
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/223184
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp
index b5b5356..621ce68 100644
--- a/tests/ProcessorTest.cpp
+++ b/tests/ProcessorTest.cpp
@@ -346,7 +346,9 @@
}
bool log_surface_proxy(GrContext* context, sk_sp<GrSurfaceProxy> src, SkString* dst) {
- sk_sp<GrSurfaceContext> sContext(context->priv().makeWrappedSurfaceContext(src));
+ // All the proxies are created from premul sources.
+ sk_sp<GrSurfaceContext> sContext(
+ context->priv().makeWrappedSurfaceContext(src, kPremul_SkAlphaType));
return log_surface_context(sContext, dst);
}