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