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

Unified Diff: ui/ozone/platform/drm/host/drm_gpu_platform_support_host.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/native_theme/native_theme.cc ('k') | ui/ozone/platform/drm/host/drm_native_display_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc b/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc
index 8d619eba4916a5a97d62a103a97b066cdc5159c4..75096a0cb8dc615b89ceed60ffcd6e0642afc774 100644
--- a/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc
+++ b/ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc
@@ -113,8 +113,8 @@ void DrmGpuPlatformSupportHost::OnChannelEstablished(
send_runner_ = send_runner;
send_callback_ = send_callback;
- FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_,
- OnGpuThreadReady());
+ for (GpuThreadObserver& observer : gpu_thread_observers_)
+ observer.OnGpuThreadReady();
// The cursor is special since it will process input events on the IO thread
// and can by-pass the UI thread. This means that we need to special case it
@@ -133,8 +133,8 @@ void DrmGpuPlatformSupportHost::OnChannelDestroyed(int host_id) {
host_id_ = -1;
send_runner_ = nullptr;
send_callback_.Reset();
- FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_,
- OnGpuThreadRetired());
+ for (GpuThreadObserver& observer : gpu_thread_observers_)
+ observer.OnGpuThreadRetired();
}
}
« no previous file with comments | « ui/native_theme/native_theme.cc ('k') | ui/ozone/platform/drm/host/drm_native_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698