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

Unified Diff: src/core/SkColorSpace.cpp

Issue 2270103002: New helper for creating a color space from another, with linear gamma (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « include/core/SkColorSpace.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkColorSpace.cpp
diff --git a/src/core/SkColorSpace.cpp b/src/core/SkColorSpace.cpp
index 3a5d9c196a6e522637cd480fe16b6468df7beea2..35cfa5741c7db9d286d58008abd6a14042b1e7d9 100644
--- a/src/core/SkColorSpace.cpp
+++ b/src/core/SkColorSpace.cpp
@@ -155,6 +155,10 @@ sk_sp<SkColorSpace> SkColorSpace::NewNamed(Named named) {
return nullptr;
}
+sk_sp<SkColorSpace> SkColorSpace::makeLinearGamma() {
+ return SkColorSpace_Base::NewRGB(kLinear_GammaNamed, fToXYZD50);
msarett 2016/08/23 18:01:12 Eventually we'll want to add once-ptrs for the com
+}
+
///////////////////////////////////////////////////////////////////////////////////////////////////
enum Version {
« no previous file with comments | « include/core/SkColorSpace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698