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

Unified Diff: cc/quads/render_pass.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/output/output_surface.cc ('k') | cc/scheduler/begin_frame_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.cc
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc
index 34f24e31d5f62efd0cfa37d7281f30a0be00e0fb..9b9e0b21ac1c0b408a3af712a0317116641bf57e 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -113,7 +113,7 @@ void RenderPass::CopyAll(const std::vector<std::unique_ptr<RenderPass>>& in,
source->damage_rect,
source->transform_to_root_target,
source->has_transparent_background);
- for (const auto& shared_quad_state : source->shared_quad_state_list) {
+ for (auto* shared_quad_state : source->shared_quad_state_list) {
SharedQuadState* copy_shared_quad_state =
copy_pass->CreateAndAppendSharedQuadState();
*copy_shared_quad_state = *shared_quad_state;
@@ -122,7 +122,7 @@ void RenderPass::CopyAll(const std::vector<std::unique_ptr<RenderPass>>& in,
source->shared_quad_state_list.begin();
SharedQuadStateList::Iterator copy_sqs_iter =
copy_pass->shared_quad_state_list.begin();
- for (const auto& quad : source->quad_list) {
+ for (auto* quad : source->quad_list) {
while (quad->shared_quad_state != *sqs_iter) {
++sqs_iter;
++copy_sqs_iter;
@@ -189,7 +189,7 @@ void RenderPass::AsValueInto(base::trace_event::TracedValue* value) const {
base::saturated_cast<int>(copy_requests.size()));
value->BeginArray("shared_quad_state_list");
- for (const auto& shared_quad_state : shared_quad_state_list) {
+ for (auto* shared_quad_state : shared_quad_state_list) {
value->BeginDictionary();
shared_quad_state->AsValueInto(value);
value->EndDictionary();
@@ -197,7 +197,7 @@ void RenderPass::AsValueInto(base::trace_event::TracedValue* value) const {
value->EndArray();
value->BeginArray("quad_list");
- for (const auto& quad : quad_list) {
+ for (auto* quad : quad_list) {
value->BeginDictionary();
quad->AsValueInto(value);
value->EndDictionary();
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/scheduler/begin_frame_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698