aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-09-07 18:55:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-07 18:55:49 -0700
commit48ba2b8550d0d243dddf728b602995b01bc137e1 (patch)
treeeb28a3ed3c679c4a8626150e2f6297d1fe0a0bf9 /src/core
parent2eb00e7b7783ad612f774b6952a7ca0fa23b17af (diff)
Rename SkColorSpace::GammaNamed to SkColorSpace::RenderTargetGamma
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkColorSpace.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkColorSpace.cpp b/src/core/SkColorSpace.cpp
index 647795fb65..e6676066bb 100644
--- a/src/core/SkColorSpace.cpp
+++ b/src/core/SkColorSpace.cpp
@@ -121,11 +121,11 @@ sk_sp<SkColorSpace> SkColorSpace_Base::NewRGB(SkGammaNamed gammaNamed, const SkM
return sk_sp<SkColorSpace>(new SkColorSpace_Base(gammaNamed, toXYZD50));
}
-sk_sp<SkColorSpace> SkColorSpace::NewRGB(GammaNamed gammaNamed, const SkMatrix44& toXYZD50) {
- switch (gammaNamed) {
- case kLinear_GammaNamed:
+sk_sp<SkColorSpace> SkColorSpace::NewRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50) {
+ switch (gamma) {
+ case kLinear_RenderTargetGamma:
return SkColorSpace_Base::NewRGB(kLinear_SkGammaNamed, toXYZD50);
- case kSRGB_GammaNamed:
+ case kSRGB_RenderTargetGamma:
return SkColorSpace_Base::NewRGB(kSRGB_SkGammaNamed, toXYZD50);
default:
return nullptr;