From 7c602de058c6332dfd92b70a3d05d4a3c401a3ae Mon Sep 17 00:00:00 2001 From: raftias Date: Thu, 13 Oct 2016 10:45:44 -0700 Subject: Removed makeLinearGamma() from the public API for SkColorSpace It will now reside in SkColorSpace_Base. Future work for SkColorSpace will cause this function to not be desirable or sensible to call on all SkColorSpaces. Call sites were changed to make a kSRGBLinear_Named instead of kSRGB_Named -> makeLinearGamma() (the majority of cases), and if that was not possible, SkColorSpace_Base::makeLinearGamma() was called instead. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2412613005 Review-Url: https://codereview.chromium.org/2412613005 --- tools/flags/SkCommonFlagsConfig.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/flags') diff --git a/tools/flags/SkCommonFlagsConfig.cpp b/tools/flags/SkCommonFlagsConfig.cpp index 14084ce0e0..3fd8a97b4b 100644 --- a/tools/flags/SkCommonFlagsConfig.cpp +++ b/tools/flags/SkCommonFlagsConfig.cpp @@ -5,6 +5,7 @@ * found in the LICENSE file. */ +#include "SkColorSpace_Base.h" #include "SkCommonFlagsConfig.h" #include "SkImageInfo.h" @@ -303,7 +304,7 @@ static bool parse_option_gpu_color(const SkString& value, // Now pick a color type if (commands[0].equals("f16")) { *outColorType = kRGBA_F16_SkColorType; - *outColorSpace = colorSpace->makeLinearGamma(); + *outColorSpace = as_CSB(colorSpace)->makeLinearGamma(); return true; } if (commands[0].equals("srgb")) { -- cgit v1.2.3