diff options
author | 2018-01-02 10:40:00 -0500 | |
---|---|---|
committer | 2018-01-02 15:56:30 +0000 | |
commit | 2e1d7e234241328154a93b6ddb19f573abc29c15 (patch) | |
tree | 7bc90b46f1ddcda47a11ec014b809873fcafe235 /experimental/skotty/SkottyProperties.h | |
parent | b950b5975bbbf22fec9b41b576d4d43ddfd6a208 (diff) |
[skotty,sksg] Initial RRect support
Bug: skia:
Change-Id: I51bf6619e8d857d5d14fcd6651c144bd3c59453f
Reviewed-on: https://skia-review.googlesource.com/90027
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'experimental/skotty/SkottyProperties.h')
-rw-r--r-- | experimental/skotty/SkottyProperties.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/experimental/skotty/SkottyProperties.h b/experimental/skotty/SkottyProperties.h index 0273aea2f4..e1504747b4 100644 --- a/experimental/skotty/SkottyProperties.h +++ b/experimental/skotty/SkottyProperties.h @@ -20,6 +20,7 @@ class SkPath; namespace sksg { +class RRect; class RenderNode; class Transform; } @@ -100,6 +101,22 @@ struct ShapeValue { p_type f##p_name = p_default; \ public: +class CompositeRRect final : public SkRefCnt { +public: + explicit CompositeRRect(sk_sp<sksg::RRect>); + + COMPOSITE_PROPERTY(Position, SkPoint , SkPoint::Make(0, 0)) + COMPOSITE_PROPERTY(Size , SkSize , SkSize::Make(0, 0)) + COMPOSITE_PROPERTY(Radius , SkScalar, 0) + +private: + void apply(); + + sk_sp<sksg::RRect> fRRectNode; + + using INHERITED = SkRefCnt; +}; + class CompositeTransform final : public SkRefCnt { public: explicit CompositeTransform(sk_sp<sksg::RenderNode>); |