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

Unified Diff: ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc

Issue 1438343002: Remove deprecated ScopedVector usage from ui/ozone and ui/events/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove HDCI stuff Created 5 years, 1 month 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_overlay_candidates_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc b/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
index 9957af22e0633d5723845502f1d3450163afd9d3..1397d7ddd9c9e0b4711b8b4d8b3ea15f11c6c698 100644
--- a/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
+++ b/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
@@ -181,7 +181,7 @@ void DrmOverlayCandidatesHost::OnOverlayResult(
cache_.Put(check, true);
for (const auto& plane_id : check.plane_ids) {
bool plane_found = false;
- for (const auto* plane : hardware_plane_proxy_) {
+ for (const auto& plane : hardware_plane_proxy_) {
if (plane->plane_id == plane_id) {
plane_found = true;
break;
@@ -267,7 +267,7 @@ void DrmOverlayCandidatesHost::ValidateCandidates(
}
uint32_t available_overlays = hardware_plane_proxy_.size();
- for (auto* plane : hardware_plane_proxy_)
+ for (const auto& plane : hardware_plane_proxy_)
plane->in_use = false;
// Sort in decending order w.r.t weight.
@@ -279,7 +279,7 @@ void DrmOverlayCandidatesHost::ValidateCandidates(
// Make sure we don't handle more candidates than what we can support in
// GPU side.
for (const auto& candidate : compatible_candidates) {
- for (auto* plane : hardware_plane_proxy_) {
+ for (const auto& plane : hardware_plane_proxy_) {
// Plane is already in use.
if (plane->in_use)
continue;
« no previous file with comments | « ui/ozone/platform/drm/host/drm_overlay_candidates_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698