diff options
author | 2018-01-12 14:27:39 -0500 | |
---|---|---|
committer | 2018-01-12 19:48:03 +0000 | |
commit | 1586d85198d17496efa93a6af812e3913882347f (patch) | |
tree | 524c24c5019888a5fd9d5e1ce6d3d216e37e5954 /experimental/skotty/SkottyProperties.h | |
parent | 966db9e4ee1e5485fce21a5953b426ad8bf95a9d (diff) |
[skotty] Refactor paint opacity
Promote to a PaintNode attribute, drop color composite.
TBR=
Change-Id: Ia79d5f7e193a472d53ac4ff8beb7234d4dc26cef
Reviewed-on: https://skia-review.googlesource.com/94280
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/skotty/SkottyProperties.h')
-rw-r--r-- | experimental/skotty/SkottyProperties.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/experimental/skotty/SkottyProperties.h b/experimental/skotty/SkottyProperties.h index cd22810c2e..177ba35873 100644 --- a/experimental/skotty/SkottyProperties.h +++ b/experimental/skotty/SkottyProperties.h @@ -58,21 +58,6 @@ using ShapeValue = SkPath; p_type f##p_name = p_default; \ public: -class CompositeColor final : public SkRefCnt { -public: - explicit CompositeColor(sk_sp<sksg::Color>); - - COMPOSITE_PROPERTY(Color , SkColor , SK_ColorBLACK) - COMPOSITE_PROPERTY(Opacity, SkScalar, 100 ) - -private: - void apply(); - - sk_sp<sksg::Color> fColorNode; - - using INHERITED = SkRefCnt; -}; - class CompositeRRect final : public SkRefCnt { public: explicit CompositeRRect(sk_sp<sksg::RRect>); |