aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-12-13 11:01:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-14 19:02:17 +0000
commitc38cce63b39f26d8b13e9ac564a1f2d6d7a8db68 (patch)
treea8990df027fd34b08e1aac17594602bb63ba5705 /include
parent474d68791965f20f8e0dfa2bfb4d87300f1f29e0 (diff)
make SkColorSpace_New real
Some interesting things are starting to fall out already, like the fact that I needed to add a gamma_dst stage to be able to draw into gamma-transfer-fn destinations. I've also had to pass an SkAlphaType through to the linearize functions so that they can maintain premul invariants. I'm not sure this is actually a good idea... if you can, please double- check my logic at SkRasterPipeline.cpp:128? If it's correct logic, I'm going to need to do it all over the place. But I imagine you don't do this and somehow get away with it. Change-Id: I42cd9b161b54287d674225103ad9e19f8b388959 Reviewed-on: https://skia-review.googlesource.com/84680 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkColorSpace.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h
index 5642df54c4..d1d32abaa2 100644
--- a/include/core/SkColorSpace.h
+++ b/include/core/SkColorSpace.h
@@ -79,7 +79,6 @@ struct SK_API SkColorSpaceTransferFn {
class SK_API SkColorSpace : public SkRefCnt {
public:
-
/**
* Create the sRGB color space.
*/
@@ -241,9 +240,6 @@ public:
static bool Equals(const SkColorSpace* src, const SkColorSpace* dst);
private:
- SkColorSpace() = default;
- friend class SkColorSpace_Base;
-
virtual const SkMatrix44* onToXYZD50() const = 0;
virtual uint32_t onToXYZD50Hash() const = 0;
virtual const SkMatrix44* onFromXYZD50() const = 0;