clean up TODO
The premise of the TODO here is somewhat wrong. There are other places
where we do pass the destination color space through the ContextRec to
shaders that care... just not here when chosing the top-level blitter.
Change-Id: Ie32cfff5af0328c1280721246194a9eb1f0a5874
Reviewed-on: https://skia-review.googlesource.com/c/174040
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp
index 2ef0da6..3992b14 100644
--- a/src/core/SkBlitter.cpp
+++ b/src/core/SkBlitter.cpp
@@ -842,16 +842,14 @@
return blitter;
}
- // Everything but kN32_SkColorType and kRGB_565_SkColorType should already be handled.
+ // Everything but legacy kN32_SkColorType and kRGB_565_SkColorType should already be handled.
+ SkASSERT(!device.colorSpace());
SkASSERT(device.colorType() == kN32_SkColorType ||
device.colorType() == kRGB_565_SkColorType);
// And we should either have a shader, be blending with SrcOver, or both.
SkASSERT(paint->getShader() || paint->getBlendMode() == SkBlendMode::kSrcOver);
- // TODO: remove SkColorSpace from makeContext() arguments. It's always nullptr.
- SkASSERT(!device.colorSpace());
-
// Legacy blitters keep their shader state on a shader context.
SkShaderBase::Context* shaderContext = nullptr;
if (paint->getShader()) {