diff options
author | msarett <msarett@google.com> | 2016-09-07 18:55:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-07 18:55:49 -0700 |
commit | 48ba2b8550d0d243dddf728b602995b01bc137e1 (patch) | |
tree | eb28a3ed3c679c4a8626150e2f6297d1fe0a0bf9 /include/core | |
parent | 2eb00e7b7783ad612f774b6952a7ca0fa23b17af (diff) |
Rename SkColorSpace::GammaNamed to SkColorSpace::RenderTargetGamma
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2319293002
Review-Url: https://codereview.chromium.org/2319293002
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkColorSpace.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h index 715cc403e3..b335865fe3 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. |