Index: gm/SkLinearBitmapPipelineGM.cpp |
diff --git a/gm/SkLinearBitmapPipelineGM.cpp b/gm/SkLinearBitmapPipelineGM.cpp |
index c78bc74e23fa93a6bbc82dace596b0a6d8588b62..777f8257805915d3f9d9b171ab2c96e410cc75c0 100644 |
--- a/gm/SkLinearBitmapPipelineGM.cpp |
+++ b/gm/SkLinearBitmapPipelineGM.cpp |
@@ -55,7 +55,7 @@ |
SkPixmap pmdst; |
bmdst.peekPixels(&pmdst); |
- SkImageInfo info = SkImageInfo::MakeN32Premul(ir.width(), ir.height()); |
+ SkImageInfo info = SkImageInfo::MakeN32Premul(ir.width(), ir.height(), kLinear_SkColorProfileType); |
sk_sp<SkImage> image(SkImage::MakeRasterCopy(SkPixmap(info, pmsrc.addr32(), pmsrc.rowBytes()))); |
SkPaint paint; |
@@ -113,6 +113,9 @@ |
} |
uint32_t flags = 0; |
+ //if (kSRGB_SkColorProfileType == profile) { |
+ //flags |= SkXfermode::kDstIsSRGB_PM4fFlag; |
+ //} |
auto procN = SkXfermode::GetD32Proc(nullptr, flags); |
SkLinearBitmapPipeline pipeline{ |