diff options
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 286470d1e9..c168bc9fb9 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -62,7 +62,7 @@ protected: // extract enough just for the oval. const SkISize size = SkISize::Make(100, 100); - auto srgbColorSpace = SkColorSpace::MakeSRGB(); + auto srgbColorSpace = SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named); SkMatrix matrix; matrix.setTranslate(-100, -100); @@ -112,7 +112,7 @@ static SkImageGenerator* make_pic_generator(GrContext*, SkPicture* pic) { matrix.setTranslate(-100, -100); return SkImageGenerator::NewFromPicture(SkISize::Make(100, 100), pic, &matrix, nullptr, SkImage::BitDepth::kU8, - SkColorSpace::MakeSRGB()); + SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named)); } class RasterGenerator : public SkImageGenerator { |