clean up old idea about nullptr/sRGB
I don't see us ever really saying dstCS == nullptr --> dstCS = sRGB. It's too handy a feature to have a legacy dst. Change-Id: I20576962eeb5a2ce7d0da09ffe1bbba860dad086 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297418 Auto-Submit: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
6f1487fe80
commit
c950e05baf
@ -90,13 +90,7 @@ SkBlitter* SkCreateRasterPipelineBlitter(const SkPixmap& dst,
|
|||||||
const SkMatrixProvider& matrixProvider,
|
const SkMatrixProvider& matrixProvider,
|
||||||
SkArenaAlloc* alloc,
|
SkArenaAlloc* alloc,
|
||||||
sk_sp<SkShader> clipShader) {
|
sk_sp<SkShader> clipShader) {
|
||||||
// For legacy to keep working, we need to sometimes still distinguish null dstCS from sRGB.
|
|
||||||
#if 0
|
|
||||||
SkColorSpace* dstCS = dst.colorSpace() ? dst.colorSpace()
|
|
||||||
: sk_srgb_singleton();
|
|
||||||
#else
|
|
||||||
SkColorSpace* dstCS = dst.colorSpace();
|
SkColorSpace* dstCS = dst.colorSpace();
|
||||||
#endif
|
|
||||||
SkColorType dstCT = dst.colorType();
|
SkColorType dstCT = dst.colorType();
|
||||||
SkColor4f paintColor = paint.getColor4f();
|
SkColor4f paintColor = paint.getColor4f();
|
||||||
SkColorSpaceXformSteps(sk_srgb_singleton(), kUnpremul_SkAlphaType,
|
SkColorSpaceXformSteps(sk_srgb_singleton(), kUnpremul_SkAlphaType,
|
||||||
|
Loading…
Reference in New Issue
Block a user