aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/skottie/SkottieProperties.h
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/skottie/SkottieProperties.h')
-rw-r--r--experimental/skottie/SkottieProperties.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/experimental/skottie/SkottieProperties.h b/experimental/skottie/SkottieProperties.h
index 8ca026eaeb..5e3fad0d9a 100644
--- a/experimental/skottie/SkottieProperties.h
+++ b/experimental/skottie/SkottieProperties.h
@@ -28,6 +28,7 @@ class Path;
class RadialGradient;
class RRect;
class RenderNode;;
+class TrimEffect;
}
namespace Json { class Value; }
@@ -161,6 +162,22 @@ private:
using INHERITED = CompositeGradient;
};
+class CompositeTrimEffect final : public SkRefCnt {
+public:
+ explicit CompositeTrimEffect(sk_sp<sksg::TrimEffect>);
+
+ COMPOSITE_PROPERTY(Start , SkScalar, 0)
+ COMPOSITE_PROPERTY(End , SkScalar, 100)
+ COMPOSITE_PROPERTY(Offset, SkScalar, 0)
+
+private:
+ void apply();
+
+ sk_sp<sksg::TrimEffect> fTrimEffect;
+
+ using INHERITED = SkRefCnt;
+};
+
#undef COMPOSITE_PROPERTY
} // namespace skottie