diff options
author | raftias <raftias@google.com> | 2016-10-13 10:45:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-13 10:45:44 -0700 |
commit | 7c602de058c6332dfd92b70a3d05d4a3c401a3ae (patch) | |
tree | 3c171fe31e352c89c9dbb855b13a33b92265c715 /tools/flags | |
parent | 16d2c67fa10f09a88b33df2cd88f349da52c9a9a (diff) |
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
Diffstat (limited to 'tools/flags')
-rw-r--r-- | tools/flags/SkCommonFlagsConfig.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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")) { |