diff options
author | 2016-10-24 09:24:02 -0400 | |
---|---|---|
committer | 2016-10-24 14:02:27 +0000 | |
commit | 526972ecb5411b84ba2f5e20252f178f9ee2151f (patch) | |
tree | ef89b6a40fcdf90ae8e0b00b8f7d247510e03656 /src/core/SkColorSpace_Base.h | |
parent | 09732a6b0e7c4b087279095762f9d27a4f556aba (diff) |
Rename all color space factories from New* to Make*
Matches our naming convention for all other types - factories that
return sk_sp (or any type that intelligently manages its own
lifetime) are named Make.
Previous factories are still around, assuming
SK_SUPPORT_LEGACY_COLOR_SPACE_FACTORIES is defined. Enable that
define for Android, etc.
See also: https://codereview.chromium.org/2442053002/
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3822
Change-Id: Iaea9376490736b494e8ffc820831f052bbe1478d
Reviewed-on: https://skia-review.googlesource.com/3822
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkColorSpace_Base.h')
-rw-r--r-- | src/core/SkColorSpace_Base.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/SkColorSpace_Base.h b/src/core/SkColorSpace_Base.h index 31edfa28be..76595e9542 100644 --- a/src/core/SkColorSpace_Base.h +++ b/src/core/SkColorSpace_Base.h @@ -214,7 +214,12 @@ private: */ sk_sp<SkData> writeToICC() const; - static sk_sp<SkColorSpace> NewRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50); + static sk_sp<SkColorSpace> MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50); +#ifdef SK_SUPPORT_LEGACY_COLOR_SPACE_FACTORIES + static sk_sp<SkColorSpace> NewRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50) { + return MakeRGB(gammaNamed, toXYZD50); + } +#endif SkColorSpace_Base(SkGammaNamed gammaNamed, const SkMatrix44& toXYZ); |