summaryrefslogtreecommitdiffstats
path: root/ash/host
diff options
context:
space:
mode:
authoroshima <oshima@chromium.org>2015-03-05 11:48:43 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-05 19:49:17 +0000
commit44010405f4dbcde857dd826dec12eeb38bd16f9b (patch)
tree23448970daaccc40ed31194c8725baf4d3960f87 /ash/host
parentf83b9126a7b0cc8955a5964e7ef27a5b7ebf8e10 (diff)
downloadchromium_src-44010405f4dbcde857dd826dec12eeb38bd16f9b.zip
chromium_src-44010405f4dbcde857dd826dec12eeb38bd16f9b.tar.gz
chromium_src-44010405f4dbcde857dd826dec12eeb38bd16f9b.tar.bz2
Add event trace for DispatchEvent
BUG=450711 R=mukai@chromium.org Review URL: https://codereview.chromium.org/977583008 Cr-Commit-Position: refs/heads/master@{#319306}
Diffstat (limited to 'ash/host')
-rw-r--r--ash/host/ash_window_tree_host_ozone.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ash/host/ash_window_tree_host_ozone.cc b/ash/host/ash_window_tree_host_ozone.cc
index 7c23cd9..cb2ec66 100644
--- a/ash/host/ash_window_tree_host_ozone.cc
+++ b/ash/host/ash_window_tree_host_ozone.cc
@@ -8,6 +8,7 @@
#include "ash/host/root_window_transformer.h"
#include "ash/host/transformer_helper.h"
#include "base/command_line.h"
+#include "base/trace_event/trace_event.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host_ozone.h"
#include "ui/events/null_event_targeter.h"
@@ -123,6 +124,7 @@ void AshWindowTreeHostOzone::SetBounds(const gfx::Rect& bounds) {
}
void AshWindowTreeHostOzone::DispatchEvent(ui::Event* event) {
+ TRACE_EVENT0("input", "AshWindowTreeHostOzone::DispatchEvent");
if (event->IsLocatedEvent())
TranslateLocatedEvent(static_cast<ui::LocatedEvent*>(event));
SendEventToProcessor(event);