OLD | NEW |
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 Loading... |
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 |
OLD | NEW |