Log when the animation timer fires
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Apr 2013 00:04:06 +0000 (00:04 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Apr 2013 00:04:06 +0000 (00:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114393

Reviewed by Dean Jackson.

Logging to the Animations log channel when the updateAnimationTimer
fires is useful, because it indicates whether we're running
software animations.

* page/animation/AnimationController.cpp:
(WebCore::AnimationControllerPrivate::updateAnimationTimer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148155 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/animation/AnimationController.cpp

index c8a1463707fc48504c08621d1fe36ddb534ddaa3..dc8a6ed5e1693aac46e3cfa394a91ec738017240 100644 (file)
@@ -1,3 +1,17 @@
+2013-04-10  Simon Fraser  <simon.fraser@apple.com>
+
+        Log when the animation timer fires
+        https://bugs.webkit.org/show_bug.cgi?id=114393
+
+        Reviewed by Dean Jackson.
+
+        Logging to the Animations log channel when the updateAnimationTimer
+        fires is useful, because it indicates whether we're running
+        software animations.
+
+        * page/animation/AnimationController.cpp:
+        (WebCore::AnimationControllerPrivate::updateAnimationTimer):
+
 2013-04-10  Beth Dakin  <bdakin@apple.com>
 
         Inspector highlights are offset when the WKView has a header
index d47ed4dfe0dbfe1884e0296366f20436b87356d8..1c158701cb7210da982553bf331f62e406843b25 100644 (file)
@@ -37,6 +37,7 @@
 #include "EventNames.h"
 #include "Frame.h"
 #include "FrameView.h"
+#include "Logging.h"
 #include "PseudoElement.h"
 #include "RenderView.h"
 #include "TransitionEvent.h"
@@ -135,6 +136,8 @@ void AnimationControllerPrivate::updateAnimationTimer(SetChanged callSetChanged/
 {
     double timeToNextService = updateAnimations(callSetChanged);
 
+    LOG(Animations, "updateAnimationTimer: timeToNextService is %.2f", timeToNextService);
+
     // If we want service immediately, we start a repeating timer to reduce the overhead of starting
     if (!timeToNextService) {
         if (!m_animationTimer.isActive() || m_animationTimer.repeatInterval() == 0)