Changeset 112024 in webkit


Ignore:
Timestamp:
Mar 24, 2012 10:03:09 PM (12 years ago)
Author:
nduca@chromium.org
Message:

[chromium] Instrument gesture animations with async traces
https://bugs.webkit.org/show_bug.cgi?id=82076

Reviewed by Adrienne Walker.

Source/WebCore:

  • platform/ActivePlatformGestureAnimation.cpp:

(WebCore::ActivePlatformGestureAnimation::~ActivePlatformGestureAnimation):
(WebCore::ActivePlatformGestureAnimation::ActivePlatformGestureAnimation):

  • platform/PlatformGestureCurve.h:

(PlatformGestureCurve):

  • platform/TouchpadFlingPlatformGestureCurve.h:

(WebCore::TouchpadFlingPlatformGestureCurve::debugName):

  • platform/WheelFlingPlatformGestureCurve.h:

(WebCore::WheelFlingPlatformGestureCurve::debugName):

  • platform/graphics/chromium/cc/CCActiveGestureAnimation.cpp:

(WebCore::CCActiveGestureAnimation::CCActiveGestureAnimation):
(WebCore::CCActiveGestureAnimation::~CCActiveGestureAnimation):

  • platform/graphics/chromium/cc/CCGestureCurve.h:

(CCGestureCurve):

Source/WebKit/chromium:

  • src/WebCompositorInputHandlerImpl.cpp:

(WebCore::PlatformGestureToCCGestureAdapter::debugName):
(PlatformGestureToCCGestureAdapter):

Location:
trunk/Source
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112023 r112024  
     12012-03-24  Nat Duca  <nduca@chromium.org>
     2
     3        [chromium] Instrument gesture animations with async traces
     4        https://bugs.webkit.org/show_bug.cgi?id=82076
     5
     6        Reviewed by Adrienne Walker.
     7
     8        * platform/ActivePlatformGestureAnimation.cpp:
     9        (WebCore::ActivePlatformGestureAnimation::~ActivePlatformGestureAnimation):
     10        (WebCore::ActivePlatformGestureAnimation::ActivePlatformGestureAnimation):
     11        * platform/PlatformGestureCurve.h:
     12        (PlatformGestureCurve):
     13        * platform/TouchpadFlingPlatformGestureCurve.h:
     14        (WebCore::TouchpadFlingPlatformGestureCurve::debugName):
     15        * platform/WheelFlingPlatformGestureCurve.h:
     16        (WebCore::WheelFlingPlatformGestureCurve::debugName):
     17        * platform/graphics/chromium/cc/CCActiveGestureAnimation.cpp:
     18        (WebCore::CCActiveGestureAnimation::CCActiveGestureAnimation):
     19        (WebCore::CCActiveGestureAnimation::~CCActiveGestureAnimation):
     20        * platform/graphics/chromium/cc/CCGestureCurve.h:
     21        (CCGestureCurve):
     22
    1232012-03-24  Jeffrey Pfau  <jpfau@apple.com>
    224
  • trunk/Source/WebCore/platform/ActivePlatformGestureAnimation.cpp

    r110898 r112024  
    3131#include "PlatformGestureCurveTarget.h"
    3232
     33#if PLATFORM(CHROMIUM)
     34#include "TraceEvent.h"
     35#endif
     36
    3337namespace WebCore {
    3438
     
    4044ActivePlatformGestureAnimation::~ActivePlatformGestureAnimation()
    4145{
     46#if PLATFORM(CHROMIUM)
     47    TRACE_EVENT_FINISH0("input", "GestureAnimation", this);
     48#endif
    4249}
    4350
     
    4855    , m_target(target)
    4956{
     57#if PLATFORM(CHROMIUM)
     58    TRACE_EVENT_START1("input", "GestureAnimation", this, "curve", curve->debugName());
     59#endif
    5060}
    5161
  • trunk/Source/WebCore/platform/PlatformGestureCurve.h

    r110344 r112024  
    3838    virtual ~PlatformGestureCurve() { }
    3939
     40    // Returns a name of the curve for use in debugging.
     41    virtual const char* debugName() const = 0;
     42
    4043    // Returns false if curve has finished and can no longer be applied.
    4144    virtual bool apply(double time, PlatformGestureCurveTarget*) = 0;
  • trunk/Source/WebCore/platform/TouchpadFlingPlatformGestureCurve.h

    r111686 r112024  
    4646    virtual ~TouchpadFlingPlatformGestureCurve();
    4747
     48    virtual const char* debugName() const { return "TouchpadFling"; }
    4849    virtual bool apply(double monotonicTime, PlatformGestureCurveTarget*);
    4950
  • trunk/Source/WebCore/platform/WheelFlingPlatformGestureCurve.h

    r110344 r112024  
    4444    virtual ~WheelFlingPlatformGestureCurve();
    4545
     46    virtual const char* debugName() const { return "WheelFling"; }
    4647    virtual bool apply(double time, PlatformGestureCurveTarget*);
    4748
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCActiveGestureAnimation.cpp

    r111308 r112024  
    2727#include "cc/CCActiveGestureAnimation.h"
    2828
     29#include "TraceEvent.h"
    2930#include "cc/CCGestureCurve.h"
    3031
     
    4243    , m_gestureCurveTarget(target)
    4344{
     45    TRACE_EVENT_START1("input", "GestureAnimation", this, "curve", curve->debugName());
    4446}
    4547
    4648CCActiveGestureAnimation::~CCActiveGestureAnimation()
    4749{
     50    TRACE_EVENT_FINISH0("input", "GestureAnimation", this);
    4851}
    4952
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCGestureCurve.h

    r111308 r112024  
    4242    virtual ~CCGestureCurve() { }
    4343
     44    virtual const char* debugName() const = 0;
     45
    4446    virtual bool apply(double monotonicTime, CCGestureCurveTarget*) = 0;
    4547};
  • trunk/Source/WebKit/chromium/ChangeLog

    r111982 r112024  
     12012-03-24  Nat Duca  <nduca@chromium.org>
     2
     3        [chromium] Instrument gesture animations with async traces
     4        https://bugs.webkit.org/show_bug.cgi?id=82076
     5
     6        Reviewed by Adrienne Walker.
     7
     8        * src/WebCompositorInputHandlerImpl.cpp:
     9        (WebCore::PlatformGestureToCCGestureAdapter::debugName):
     10        (PlatformGestureToCCGestureAdapter):
     11
    1122012-03-23  Shawn Singh  <shawnsingh@chromium.org>
    213
  • trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp

    r111806 r112024  
    5656    }
    5757
     58    virtual const char* debugName() const
     59    {
     60        return m_curve->debugName();
     61    }
     62
    5863    virtual bool apply(double time, CCGestureCurveTarget* target)
    5964    {
Note: See TracChangeset for help on using the changeset viewer.