diff options
author | Mike Klein <mtklein@chromium.org> | 2018-01-26 13:58:24 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-26 19:52:20 +0000 |
commit | 333848272c4d023199e44ff38f2e6fc6876388e8 (patch) | |
tree | 399fd71be826ba4c0a276909fe0e539dd765f435 /tools/colorspaceinfo.cpp | |
parent | 8f11d4dcafef4447fa68ea0ab28a72589241e9fd (diff) |
remove SkColorSpace_Base
The type SkColorSpace_Base doesn't need to exist. Its one type() query
can be answered instead by toXYZD50().
Now all that's left in the file is SkGammas, so rename it to SkGammas.h.
Change-Id: Id60ddbfb342accfd5674ae89b37a24a6583ef7b8
Reviewed-on: https://skia-review.googlesource.com/99702
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tools/colorspaceinfo.cpp')
-rw-r--r-- | tools/colorspaceinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/colorspaceinfo.cpp b/tools/colorspaceinfo.cpp index 390f7cc4cb..2873e46508 100644 --- a/tools/colorspaceinfo.cpp +++ b/tools/colorspaceinfo.cpp @@ -518,7 +518,7 @@ int main(int argc, char** argv) { return ss.str(); }; - if (SkColorSpace_Base::Type::kXYZ == as_CSB(colorSpace)->type()) { + if (colorSpace->toXYZD50()) { SkDebugf("XYZ/TRC color space\n"); // Load a graph of the CIE XYZ color gamut. |