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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2102833002: cc: Fixup cc to not use auto to deduce a raw pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 218bc825bf6ef35ff9504e3157922dfa469449fe..15f9e5441bab9dc1ad7186ff62ef80b0867b04a2 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -970,7 +970,7 @@ DrawResult LayerTreeHostImpl::CalculateRenderPasses(
#if DCHECK_IS_ON()
for (const auto& render_pass : frame->render_passes) {
- for (const auto& quad : render_pass->quad_list)
+ for (auto* quad : render_pass->quad_list)
DCHECK(quad->shared_quad_state);
}
DCHECK(frame->render_passes.back()->output_rect.origin().IsOrigin());
@@ -1702,7 +1702,7 @@ void LayerTreeHostImpl::DidDrawAllLayers(const FrameData& frame) {
for (size_t i = 0; i < frame.will_draw_layers.size(); ++i)
frame.will_draw_layers[i]->DidDraw(resource_provider_.get());
- for (auto& it : video_frame_controllers_)
+ for (auto* it : video_frame_controllers_)
it->DidDrawFrame();
}
@@ -1855,7 +1855,7 @@ void LayerTreeHostImpl::WillBeginImplFrame(const BeginFrameArgs& args) {
Animate();
- for (auto& it : video_frame_controllers_)
+ for (auto* it : video_frame_controllers_)
it->OnBeginFrame(args);
}
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698