diff options
Diffstat (limited to 'gm/color4f.cpp')
-rw-r--r-- | gm/color4f.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/color4f.cpp b/gm/color4f.cpp index 2ebe9315a5..b5cda9fa99 100644 --- a/gm/color4f.cpp +++ b/gm/color4f.cpp @@ -76,7 +76,7 @@ DEF_SIMPLE_GM(color4f, canvas, 1024, 260) { sk_sp<SkColorSpace> colorSpaces[]{ nullptr, - SkColorSpace::MakeSRGB() + SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named) }; for (auto colorSpace : colorSpaces) { const SkImageInfo info = SkImageInfo::Make(1024, 100, kN32_SkColorType, kPremul_SkAlphaType, @@ -95,7 +95,7 @@ DEF_SIMPLE_GM(color4f, canvas, 1024, 260) { DEF_SIMPLE_GM(color4shader, canvas, 360, 480) { canvas->translate(10, 10); - auto srgb = SkColorSpace::MakeSRGB(); + auto srgb = SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named); SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); // red -> blue, green -> red, blue -> green (sRGB) |