From 333848272c4d023199e44ff38f2e6fc6876388e8 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Fri, 26 Jan 2018 13:58:24 -0500 Subject: 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 Commit-Queue: Mike Klein --- tools/colorspaceinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/colorspaceinfo.cpp') 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. -- cgit v1.2.3