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

Unified Diff: cc/surfaces/surface_hittest.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/surfaces/surface_aggregator_unittest.cc ('k') | cc/surfaces/surface_hittest_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_hittest.cc
diff --git a/cc/surfaces/surface_hittest.cc b/cc/surfaces/surface_hittest.cc
index 752a7088c4e44bd8d4611fac81d306a6aab41d73..b7414de108669bb13a070d7bf99551fa8bf03fe4 100644
--- a/cc/surfaces/surface_hittest.cc
+++ b/cc/surfaces/surface_hittest.cc
@@ -231,11 +231,11 @@ const RenderPass* SurfaceHittest::GetRenderPassForSurfaceById(
return nullptr;
if (!render_pass_id.IsValid())
- return frame_data->render_pass_list.back();
+ return frame_data->render_pass_list.back().get();
- for (const auto* render_pass : frame_data->render_pass_list) {
+ for (const auto& render_pass : frame_data->render_pass_list) {
if (render_pass->id == render_pass_id)
- return render_pass;
+ return render_pass.get();
}
return nullptr;
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/surfaces/surface_hittest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698