diff options
author | Brian Osman <brianosman@google.com> | 2017-12-12 14:09:31 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-12 19:34:29 +0000 |
commit | 36703d9d368050a20764b5336534bd718fd00a6e (patch) | |
tree | c452daef0a4d61f6550741cf79d2ee4c755750c2 /src/core/SkColorSpace_A2B.h | |
parent | 09757b29feeb1e7a4bc73dcf07c960e06f20cd66 (diff) |
Push much of the SkColorSpace_Base interface up to SkColorSpace
Some pieces still remain, but the next step looks less mechanical,
so I wanted to land this piece independently.
Bug: skia:
Change-Id: Ie63afcfa08af2f6e4996911fa2225c43441dbfb2
Reviewed-on: https://skia-review.googlesource.com/84120
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/core/SkColorSpace_A2B.h')
-rw-r--r-- | src/core/SkColorSpace_A2B.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/SkColorSpace_A2B.h b/src/core/SkColorSpace_A2B.h index 08784c23bb..ca78c64db9 100644 --- a/src/core/SkColorSpace_A2B.h +++ b/src/core/SkColorSpace_A2B.h @@ -27,7 +27,7 @@ // here by the nature of the design. class SkColorSpace_A2B : public SkColorSpace_Base { public: - const SkMatrix44* toXYZD50() const override { + const SkMatrix44* onToXYZD50() const override { // the matrix specified in A2B0 profiles is not necessarily // a to-XYZ matrix, as to-Lab is supported as well so returning // that could be misleading. Additionally, B-curves are applied @@ -36,18 +36,19 @@ public: return nullptr; } - uint32_t toXYZD50Hash() const override { - // See toXYZD50()'s comment. + uint32_t onToXYZD50Hash() const override { + // See onToXYZD50()'s comment. return 0; } - const SkMatrix44* fromXYZD50() const override { - // See toXYZD50()'s comment. Also, A2B0 profiles are not supported + const SkMatrix44* onFromXYZD50() const override { + // See onToXYZD50()'s comment. Also, A2B0 profiles are not supported // as destination color spaces, so an inverse matrix is never wanted. return nullptr; } // There is no single gamma curve in an A2B0 profile + SkGammaNamed onGammaNamed() const override { return kNonStandard_SkGammaNamed; } bool onGammaCloseToSRGB() const override { return false; } bool onGammaIsLinear() const override { return false; } bool onIsNumericalTransferFn(SkColorSpaceTransferFn* coeffs) const override { return false; } |