aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/graphics/animator/SkHitClear.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/graphics/animator/SkHitClear.cpp')
-rw-r--r--libs/graphics/animator/SkHitClear.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/graphics/animator/SkHitClear.cpp b/libs/graphics/animator/SkHitClear.cpp
new file mode 100644
index 0000000000..6d90a5a449
--- /dev/null
+++ b/libs/graphics/animator/SkHitClear.cpp
@@ -0,0 +1,24 @@
+#include "SkHitClear.h"
+
+#if SK_USE_CONDENSED_INFO == 0
+
+const SkMemberInfo SkHitClear::fInfo[] = {
+ SK_MEMBER_ARRAY(targets, Displayable)
+};
+
+#endif
+
+DEFINE_GET_MEMBER(SkHitClear);
+
+bool SkHitClear::enable(SkAnimateMaker& maker) {
+ for (int tIndex = 0; tIndex < targets.count(); tIndex++) {
+ SkDisplayable* target = targets[tIndex];
+ target->clearBounder();
+ }
+ return true;
+}
+
+bool SkHitClear::hasEnable() const {
+ return true;
+}
+