From 526972ecb5411b84ba2f5e20252f178f9ee2151f Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Mon, 24 Oct 2016 09:24:02 -0400 Subject: 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 Reviewed-by: Mike Reed --- src/core/SkColorSpace_Base.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/SkColorSpace_Base.h') 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 writeToICC() const; - static sk_sp NewRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50); + static sk_sp MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50); +#ifdef SK_SUPPORT_LEGACY_COLOR_SPACE_FACTORIES + static sk_sp NewRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50) { + return MakeRGB(gammaNamed, toXYZD50); + } +#endif SkColorSpace_Base(SkGammaNamed gammaNamed, const SkMatrix44& toXYZ); -- cgit v1.2.3