aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorSpaceXform.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-03-06 14:28:41 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-06 20:01:51 +0000
commit2c7113309144ff5fb3e7b8d75208bdf1b87b9feb (patch)
tree89d2cc429043b086fae40116b6296a5fc831dcbb /include/core/SkColorSpaceXform.h
parent8994150a436f0e813e9a7b8a2dc0ad237f4e3513 (diff)
Cleaning up SkColorSpaceXform a bit
Remove SkColorSpaceXform_base from the inheritance chain. Move some enums only used within XYZ to be class scoped. Eliminate redundant context structs, and just use the SkJumper types directly. SkColorSpaceXform_Base still exists, but just to hold a couple static functions. Trying to untangle the dst gamma table mess next. Bug: skia: Change-Id: I6d2b7807c33e61a0d7df74e334356567d8a2c0e0 Reviewed-on: https://skia-review.googlesource.com/112601 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include/core/SkColorSpaceXform.h')
-rw-r--r--include/core/SkColorSpaceXform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkColorSpaceXform.h b/include/core/SkColorSpaceXform.h
index 1e761a9b7f..bb838a264e 100644
--- a/include/core/SkColorSpaceXform.h
+++ b/include/core/SkColorSpaceXform.h
@@ -55,8 +55,8 @@ public:
* kOpaque optimization hint, |dst| alphas set to 1
*
*/
- bool apply(ColorFormat dstFormat, void* dst, ColorFormat srcFormat, const void* src, int count,
- SkAlphaType alphaType) const;
+ virtual bool apply(ColorFormat dstFormat, void* dst, ColorFormat srcFormat, const void* src,
+ int count, SkAlphaType alphaType) const = 0;
virtual ~SkColorSpaceXform() {}