diff options
Diffstat (limited to 'gm/mipmap.cpp')
-rw-r--r-- | gm/mipmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/mipmap.cpp b/gm/mipmap.cpp index f7bd715016..fa25828f7d 100644 --- a/gm/mipmap.cpp +++ b/gm/mipmap.cpp @@ -89,7 +89,7 @@ static void show_mips(SkCanvas* canvas, SkImage* img) { */ DEF_SIMPLE_GM(mipmap_srgb, canvas, 260, 230) { sk_sp<SkImage> limg = make(nullptr); - sk_sp<SkImage> simg = make(SkColorSpace::MakeSRGB()); + sk_sp<SkImage> simg = make(SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named)); canvas->translate(10, 10); show_mips(canvas, limg.get()); @@ -140,7 +140,7 @@ static void show_mips_only(SkCanvas* canvas, SkImage* img) { */ DEF_SIMPLE_GM(mipmap_gray8_srgb, canvas, 260, 230) { sk_sp<SkImage> limg = make_g8_gradient(nullptr); - sk_sp<SkImage> simg = make_g8_gradient(SkColorSpace::MakeSRGB()); + sk_sp<SkImage> simg = make_g8_gradient(SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named)); canvas->translate(10, 10); show_mips_only(canvas, limg.get()); |