summaryrefslogtreecommitdiffstats
path: root/chromium/cc/animation/animation_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/animation/animation_host.cc')
-rw-r--r--chromium/cc/animation/animation_host.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/cc/animation/animation_host.cc b/chromium/cc/animation/animation_host.cc
index b283103cc48..2e4dbb4e434 100644
--- a/chromium/cc/animation/animation_host.cc
+++ b/chromium/cc/animation/animation_host.cc
@@ -790,6 +790,13 @@ size_t AnimationHost::MainThreadAnimationsCount() const {
return main_thread_animations_count_;
}
+bool AnimationHost::HasCustomPropertyAnimations() const {
+ for (const auto& it : ticking_animations_)
+ if (it->AffectsCustomProperty())
+ return true;
+ return false;
+}
+
bool AnimationHost::CurrentFrameHadRAF() const {
return current_frame_had_raf_;
}