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

Unified Diff: include/core/SkColorSpace.h

Issue 2319293002: Rename SkColorSpace::GammaNamed to SkColorSpace::RenderTargetGamma (Closed)
Patch Set: Keep compatible with Chrome Created 4 years, 3 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 | « gm/gamut.cpp ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkColorSpace.h
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h
index 715cc403e3fe8fac354bf46d8ddde7c9e0fc11dc..b335865fe307dc3949a2c09fa05cfef730970d67 100644
--- a/include/core/SkColorSpace.h
+++ b/include/core/SkColorSpace.h
@@ -33,20 +33,23 @@ public:
kAdobeRGB_Named,
};
- enum GammaNamed : uint8_t {
- kLinear_GammaNamed,
+ enum RenderTargetGamma : uint8_t {
+ kLinear_RenderTargetGamma,
/**
* Transfer function is the canonical sRGB curve, which has a short linear segment
* followed by a 2.4f exponential.
*/
- kSRGB_GammaNamed,
+ kSRGB_RenderTargetGamma,
+
+ // DO NOT USE: Being deleted.
+ kLinear_GammaNamed = kLinear_RenderTargetGamma,
};
/**
- * Create an SkColorSpace from the src gamma and a transform from src gamut to D50 XYZ.
+ * Create an SkColorSpace from a transfer function and a color gamut transform to D50 XYZ.
*/
- static sk_sp<SkColorSpace> NewRGB(GammaNamed gammaNamed, const SkMatrix44& toXYZD50);
+ static sk_sp<SkColorSpace> NewRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50);
/**
* Create a common, named SkColorSpace.
« no previous file with comments | « gm/gamut.cpp ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698