Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1312)

Side by Side Diff: ui/compositor/compositor_vsync_manager.cc

Issue 877993003: Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/compositor/compositor_vsync_manager.h" 5 #include "ui/compositor/compositor_vsync_manager.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 CompositorVSyncManager::CompositorVSyncManager() 9 CompositorVSyncManager::CompositorVSyncManager()
10 : observer_list_(new ObserverListThreadSafe<Observer>()), 10 : observer_list_(new ObserverListThreadSafe<Observer>()),
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 observer->OnUpdateVSyncParameters(timebase, interval); 48 observer->OnUpdateVSyncParameters(timebase, interval);
49 } 49 }
50 50
51 void CompositorVSyncManager::RemoveObserver(Observer* observer) { 51 void CompositorVSyncManager::RemoveObserver(Observer* observer) {
52 observer_list_->RemoveObserver(observer); 52 observer_list_->RemoveObserver(observer);
53 } 53 }
54 54
55 void CompositorVSyncManager::NotifyObservers(base::TimeTicks timebase, 55 void CompositorVSyncManager::NotifyObservers(base::TimeTicks timebase,
56 base::TimeDelta interval) { 56 base::TimeDelta interval) {
57 observer_list_->Notify( 57 observer_list_->Notify(
58 &CompositorVSyncManager::Observer::OnUpdateVSyncParameters, 58 FROM_HERE, &CompositorVSyncManager::Observer::OnUpdateVSyncParameters,
59 timebase, 59 timebase, interval);
60 interval);
61 } 60 }
62 61
63 } // namespace ui 62 } // namespace ui
OLDNEW
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698