summaryrefslogtreecommitdiffstats
path: root/media/base/user_input_monitor_linux.cc
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2015-02-09 12:18:33 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-09 20:19:19 +0000
commit9a77a7236aeab865e82dcb0baef21ab6e039cd2b (patch)
tree38b03be4cfb2ef13d1dbd94edda2350b8559f20d /media/base/user_input_monitor_linux.cc
parentc4f022a6bd3426307459d3773a0b86553d3efeea (diff)
downloadchromium_src-9a77a7236aeab865e82dcb0baef21ab6e039cd2b.zip
chromium_src-9a77a7236aeab865e82dcb0baef21ab6e039cd2b.tar.gz
chromium_src-9a77a7236aeab865e82dcb0baef21ab6e039cd2b.tar.bz2
Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile.
ObserverListThreadSafe::Notify is the 4th most called function in a profile generated on my host. This is because all tasks posted from it are stamped with this callsite, providing very little information. This patch forces callers to pass in their own tracking data so that the profile will differentiate between each observer list holder. TBR=garykac@chromium.org,rdsmith@chromium.org,stuartmorgan@chromium.org,gbillock@chromium.org Review URL: https://codereview.chromium.org/877993003 Cr-Commit-Position: refs/heads/master@{#315372}
Diffstat (limited to 'media/base/user_input_monitor_linux.cc')
-rw-r--r--media/base/user_input_monitor_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/base/user_input_monitor_linux.cc b/media/base/user_input_monitor_linux.cc
index 961a9c8..55675ec 100644
--- a/media/base/user_input_monitor_linux.cc
+++ b/media/base/user_input_monitor_linux.cc
@@ -294,7 +294,8 @@ void UserInputMonitorLinuxCore::ProcessXEvent(xEvent* event) {
SkIPoint position(SkIPoint::Make(event->u.keyButtonPointer.rootX,
event->u.keyButtonPointer.rootY));
mouse_listeners_->Notify(
- &UserInputMonitor::MouseEventListener::OnMouseMoved, position);
+ FROM_HERE, &UserInputMonitor::MouseEventListener::OnMouseMoved,
+ position);
} else {
ui::EventType type;
if (event->u.u.type == KeyPress) {