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

Unified Diff: cc/output/overlay_processor.cc

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « cc/output/overlay_processor.h ('k') | cc/output/overlay_strategy_sandwich.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_processor.cc
diff --git a/cc/output/overlay_processor.cc b/cc/output/overlay_processor.cc
index 2eea63b3d602603c808c4c81513a22984964b034..43a064fb6e8fd5bb9c2ed11e6fa08e6caaa5de1c 100644
--- a/cc/output/overlay_processor.cc
+++ b/cc/output/overlay_processor.cc
@@ -31,7 +31,7 @@ bool OverlayProcessor::ProcessForCALayers(
RenderPassList* render_passes,
CALayerOverlayList* ca_layer_overlays,
OverlayCandidateList* overlay_candidates) {
- RenderPass* root_render_pass = render_passes->back();
+ RenderPass* root_render_pass = render_passes->back().get();
OverlayCandidateValidator* overlay_validator =
surface_->GetOverlayCandidateValidator();
@@ -55,7 +55,7 @@ void OverlayProcessor::ProcessForOverlays(ResourceProvider* resource_provider,
RenderPassList* render_passes,
OverlayCandidateList* candidates,
gfx::Rect* damage_rect) {
- for (auto strategy : strategies_) {
+ for (const auto& strategy : strategies_) {
if (strategy->Attempt(resource_provider, render_passes, candidates,
damage_rect)) {
return;
« no previous file with comments | « cc/output/overlay_processor.h ('k') | cc/output/overlay_strategy_sandwich.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698