Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2424)

Unified Diff: third_party/WebKit/Source/core/html/ImageData.cpp

Issue 2679323005: Update callsites to new SkColorSpace API, delete legacy flag (Closed)
Patch Set: Formatting Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/ImageData.cpp
diff --git a/third_party/WebKit/Source/core/html/ImageData.cpp b/third_party/WebKit/Source/core/html/ImageData.cpp
index 1e3740a6f2d0d081e13447be0795a444694f482c..f2a9f3fab30b664efc1d527d2fbf85f76a0b059a 100644
--- a/third_party/WebKit/Source/core/html/ImageData.cpp
+++ b/third_party/WebKit/Source/core/html/ImageData.cpp
@@ -373,9 +373,9 @@ sk_sp<SkColorSpace> ImageData::imageDataColorSpaceToSkColorSpace(
case kLegacyImageDataColorSpace:
return ColorBehavior::globalTargetColorSpace().ToSkColorSpace();
case kSRGBImageDataColorSpace:
- return SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named);
+ return SkColorSpace::MakeSRGB();
case kLinearRGBImageDataColorSpace:
- return SkColorSpace::MakeNamed(SkColorSpace::kSRGBLinear_Named);
+ return SkColorSpace::MakeSRGBLinear();
}
NOTREACHED();
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698