Index: gm/color4f.cpp |
diff --git a/gm/color4f.cpp b/gm/color4f.cpp |
index 5a516a569b640a4119faef643b877ac11b86c1fe..33d837786a2e2d42c95c714b5e882fe0d73cca8e 100644 |
--- a/gm/color4f.cpp |
+++ b/gm/color4f.cpp |
@@ -73,13 +73,10 @@ |
// even if it holds sRGB values. |
bg.setColor(0xFFFFFFFF); |
- sk_sp<SkColorSpace> colorSpaces[]{ |
- nullptr, |
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) |
- }; |
- for (auto colorSpace : colorSpaces) { |
+ SkColorProfileType const profiles[] { kLinear_SkColorProfileType, kSRGB_SkColorProfileType }; |
+ for (auto profile : profiles) { |
const SkImageInfo info = SkImageInfo::Make(1024, 100, kN32_SkColorType, kPremul_SkAlphaType, |
- colorSpace); |
+ profile); |
auto surface(SkSurface::MakeRaster(info)); |
surface->getCanvas()->drawPaint(bg); |
draw_into_canvas(surface->getCanvas()); |