Skip to content

Commit

Permalink
Added trace event for gesture scrolling.
Browse files Browse the repository at this point in the history
Added instant trace event for gesture scrolls happening on compositor
thread. This existed for mouse wheel events but not gesture scrolls.

BUG=

Review URL: https://codereview.chromium.org/205893006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258949 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
bokan@chromium.org committed Mar 24, 2014
1 parent 7c53a60 commit d9a4ae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/renderer/input/input_handler_proxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent(
cc::InputHandler::Gesture);
switch (scroll_status) {
case cc::InputHandler::ScrollStarted:
TRACE_EVENT_INSTANT0("input",
"InputHandlerProxy::handle_input gesture scroll",
TRACE_EVENT_SCOPE_THREAD);
gesture_scroll_on_impl_thread_ = true;
return DID_HANDLE;
case cc::InputHandler::ScrollOnMainThread:
Expand Down

0 comments on commit d9a4ae6

Please sign in to comment.