aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/skotty/SkottyProperties.h
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/skotty/SkottyProperties.h')
-rw-r--r--experimental/skotty/SkottyProperties.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/experimental/skotty/SkottyProperties.h b/experimental/skotty/SkottyProperties.h
index 8730f61352..164f78093c 100644
--- a/experimental/skotty/SkottyProperties.h
+++ b/experimental/skotty/SkottyProperties.h
@@ -21,10 +21,10 @@
class SkPath;
namespace sksg {
+class Matrix;
class Path;
class RRect;
-class RenderNode;
-class Transform;
+class RenderNode;;
}
namespace skotty {
@@ -139,9 +139,7 @@ private:
class CompositeTransform final : public SkRefCnt {
public:
- explicit CompositeTransform(sk_sp<sksg::RenderNode>);
-
- const sk_sp<sksg::Transform>& node() const { return fTransformNode; }
+ explicit CompositeTransform(sk_sp<sksg::Matrix>);
COMPOSITE_PROPERTY(AnchorPoint, SkPoint , SkPoint::Make(0, 0))
COMPOSITE_PROPERTY(Position , SkPoint , SkPoint::Make(0, 0))
@@ -153,7 +151,7 @@ public:
private:
void apply();
- sk_sp<sksg::Transform> fTransformNode;
+ sk_sp<sksg::Matrix> fMatrixNode;
using INHERITED = SkRefCnt;
};