diff options
author | 2016-11-01 15:56:16 -0400 | |
---|---|---|
committer | 2016-11-01 20:55:51 +0000 | |
commit | 7039f74a8b1d39b9c44fd357912ce66e6bc9fd25 (patch) | |
tree | 8fdd34da5bb77fd883f762932ba7d227c0cdf64f /src/core | |
parent | afac581523af9de5e0af0af1dc128cac1b846006 (diff) |
Remove SkImageInfoIsGammaCorrect, etc...
Our internal definition is (and will continue to be) that anything with
a color space is gamma correct. F16 is irrelevant (whether or not we
choose to support untagged F16). This makes these helpers less than
helpful, and lets us remove them from (public) API.
API change is just removal (of unused functions).
TBR=reed@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4228
Change-Id: Ia84a423548bfee14a3ba4a43d6d5b8c4686fb5ff
Reviewed-on: https://skia-review.googlesource.com/4228
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkDraw.cpp | 2 | ||||
-rw-r--r-- | src/core/SkRasterPipelineBlitter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index a3c2dff4ec..86dae5ccb2 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -1587,7 +1587,7 @@ private: uint32_t SkDraw::scalerContextFlags() const { uint32_t flags = SkPaint::kBoostContrast_ScalerContextFlag; - if (!SkImageInfoIsGammaCorrect(fDevice->imageInfo())) { + if (!fDevice->imageInfo().colorSpace()) { flags |= SkPaint::kFakeGamma_ScalerContextFlag; } return flags; diff --git a/src/core/SkRasterPipelineBlitter.cpp b/src/core/SkRasterPipelineBlitter.cpp index 9ad048257b..55ddbb2cee 100644 --- a/src/core/SkRasterPipelineBlitter.cpp +++ b/src/core/SkRasterPipelineBlitter.cpp @@ -107,7 +107,7 @@ SkBlitter* SkRasterPipelineBlitter::Create(const SkPixmap& dst, uint32_t paintColor = paint.getColor(); SkColor4f color; - if (SkImageInfoIsGammaCorrect(dst.info())) { + if (dst.info().colorSpace()) { color = SkColor4f::FromColor(paintColor); } else { swizzle_rb(SkNx_cast<float>(Sk4b::Load(&paintColor)) * (1/255.0f)).store(&color); |