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

Unified Diff: ui/ozone/platform/drm/mus_thread_proxy.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.cc ('k') | ui/snapshot/screenshot_grabber.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/mus_thread_proxy.cc
diff --git a/ui/ozone/platform/drm/mus_thread_proxy.cc b/ui/ozone/platform/drm/mus_thread_proxy.cc
index dd1c5d747f770d0588c9151f26da962037bd6601..c70850aea21525270c4bde41976abc6cd6bde1fd 100644
--- a/ui/ozone/platform/drm/mus_thread_proxy.cc
+++ b/ui/ozone/platform/drm/mus_thread_proxy.cc
@@ -42,8 +42,8 @@ void MusThreadProxy::InitializeOnEvdev() {}
MusThreadProxy::~MusThreadProxy() {
DCHECK(on_window_server_thread_.CalledOnValidThread());
- FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_,
- OnGpuThreadRetired());
+ for (GpuThreadObserver& observer : gpu_thread_observers_)
+ observer.OnGpuThreadRetired();
}
// This is configured on the GPU thread.
@@ -74,8 +74,8 @@ void MusThreadProxy::DispatchObserversFromDrmThread() {
void MusThreadProxy::RunObservers() {
DCHECK(on_window_server_thread_.CalledOnValidThread());
- FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_,
- OnGpuThreadReady());
+ for (GpuThreadObserver& observer : gpu_thread_observers_)
+ observer.OnGpuThreadReady();
}
void MusThreadProxy::AddGpuThreadObserver(GpuThreadObserver* observer) {
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.cc ('k') | ui/snapshot/screenshot_grabber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698