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

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

Issue 2417613003: Remove usage of FOR_EACH_OBSERVER macro in ui/compositor/. (Closed)
Patch Set: Add missing entries. Created 4 years, 2 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 | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | 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 : authoritative_vsync_interval_(base::TimeDelta::FromSeconds(0)) { 10 : authoritative_vsync_interval_(base::TimeDelta::FromSeconds(0)) {
(...skipping 21 matching lines...) Expand all
32 observer_list_.AddObserver(observer); 32 observer_list_.AddObserver(observer);
33 observer->OnUpdateVSyncParameters(last_timebase_, last_interval_); 33 observer->OnUpdateVSyncParameters(last_timebase_, last_interval_);
34 } 34 }
35 35
36 void CompositorVSyncManager::RemoveObserver(Observer* observer) { 36 void CompositorVSyncManager::RemoveObserver(Observer* observer) {
37 observer_list_.RemoveObserver(observer); 37 observer_list_.RemoveObserver(observer);
38 } 38 }
39 39
40 void CompositorVSyncManager::NotifyObservers(base::TimeTicks timebase, 40 void CompositorVSyncManager::NotifyObservers(base::TimeTicks timebase,
41 base::TimeDelta interval) { 41 base::TimeDelta interval) {
42 FOR_EACH_OBSERVER(CompositorVSyncManager::Observer, observer_list_, 42 for (auto& observer : observer_list_)
43 OnUpdateVSyncParameters(timebase, interval)); 43 observer.OnUpdateVSyncParameters(timebase, interval);
44 } 44 }
45 45
46 } // namespace ui 46 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698