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

Unified Diff: cc/surfaces/surface_aggregator.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/scheduler/begin_frame_source.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator.cc
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index 2e9aeef91c838d1cdb95959e14bd0b021ef19194..49bf5e1e5eedab5e5c468c31bf461127f0d6ce05 100644
--- a/cc/surfaces/surface_aggregator.cc
+++ b/cc/surfaces/surface_aggregator.cc
@@ -377,7 +377,7 @@ void SurfaceAggregator::CopyQuadsToPass(
// invalid SharedQuadState pointer, it should DCHECK.
SharedQuadStateList::ConstIterator sqs_iter =
source_shared_quad_state_list.begin();
- for (const auto& quad : source_quad_list) {
+ for (auto* quad : source_quad_list) {
while (sqs_iter != source_shared_quad_state_list.end() &&
quad->shared_quad_state != *sqs_iter) {
++sqs_iter;
@@ -386,7 +386,7 @@ void SurfaceAggregator::CopyQuadsToPass(
}
#endif
- for (const auto& quad : source_quad_list) {
+ for (auto* quad : source_quad_list) {
if (quad->material == DrawQuad::SURFACE_CONTENT) {
const SurfaceDrawQuad* surface_quad = SurfaceDrawQuad::MaterialCast(quad);
// HandleSurfaceQuad may add other shared quad state, so reset the
@@ -605,7 +605,7 @@ gfx::Rect SurfaceAggregator::PrewalkTree(const SurfaceId& surface_id,
for (const auto& render_pass : base::Reversed(frame_data->render_pass_list)) {
RenderPassId remapped_pass_id = RemapPassId(render_pass->id, surface_id);
bool in_moved_pixel_pass = !!moved_pixel_passes_.count(remapped_pass_id);
- for (const auto& quad : render_pass->quad_list) {
+ for (auto* quad : render_pass->quad_list) {
if (quad->material == DrawQuad::SURFACE_CONTENT) {
const SurfaceDrawQuad* surface_quad =
SurfaceDrawQuad::MaterialCast(quad);
« no previous file with comments | « cc/scheduler/begin_frame_source.cc ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698