From 2e1d7e234241328154a93b6ddb19f573abc29c15 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Tue, 2 Jan 2018 10:40:00 -0500 Subject: [skotty,sksg] Initial RRect support Bug: skia: Change-Id: I51bf6619e8d857d5d14fcd6651c144bd3c59453f Reviewed-on: https://skia-review.googlesource.com/90027 Commit-Queue: Florin Malita Reviewed-by: Mike Reed --- experimental/skotty/SkottyProperties.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'experimental/skotty/SkottyProperties.h') 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); + + 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 fRRectNode; + + using INHERITED = SkRefCnt; +}; + class CompositeTransform final : public SkRefCnt { public: explicit CompositeTransform(sk_sp); -- cgit v1.2.3