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

Side by Side Diff: cc/trees/layer_tree_host.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 unified diff | Download patch
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 1527
1528 proto->set_needs_full_tree_sync(needs_full_tree_sync_); 1528 proto->set_needs_full_tree_sync(needs_full_tree_sync_);
1529 proto->set_needs_meta_info_recomputation(needs_meta_info_recomputation_); 1529 proto->set_needs_meta_info_recomputation(needs_meta_info_recomputation_);
1530 proto->set_source_frame_number(source_frame_number_); 1530 proto->set_source_frame_number(source_frame_number_);
1531 1531
1532 LayerProtoConverter::SerializeLayerHierarchy(root_layer_, 1532 LayerProtoConverter::SerializeLayerHierarchy(root_layer_,
1533 proto->mutable_root_layer()); 1533 proto->mutable_root_layer());
1534 1534
1535 // layers_that_should_push_properties_ should be serialized before layer 1535 // layers_that_should_push_properties_ should be serialized before layer
1536 // properties because it is cleared during the properties serialization. 1536 // properties because it is cleared during the properties serialization.
1537 for (auto layer : layers_that_should_push_properties_) 1537 for (auto* layer : layers_that_should_push_properties_)
1538 proto->add_layers_that_should_push_properties(layer->id()); 1538 proto->add_layers_that_should_push_properties(layer->id());
1539 1539
1540 LayerProtoConverter::SerializeLayerProperties(this, 1540 LayerProtoConverter::SerializeLayerProperties(this,
1541 proto->mutable_layer_updates()); 1541 proto->mutable_layer_updates());
1542 1542
1543 std::vector<PictureData> pictures = 1543 std::vector<PictureData> pictures =
1544 engine_picture_cache_->CalculateCacheUpdateAndFlush(); 1544 engine_picture_cache_->CalculateCacheUpdateAndFlush();
1545 proto::PictureDataVectorToSkPicturesProto(pictures, 1545 proto::PictureDataVectorToSkPicturesProto(pictures,
1546 proto->mutable_pictures()); 1546 proto->mutable_pictures());
1547 1547
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 int seq_num = property_trees_.sequence_number; 1692 int seq_num = property_trees_.sequence_number;
1693 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1693 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1694 layer->set_property_tree_sequence_number(seq_num); 1694 layer->set_property_tree_sequence_number(seq_num);
1695 }); 1695 });
1696 1696
1697 surface_client_id_ = proto.surface_client_id(); 1697 surface_client_id_ = proto.surface_client_id();
1698 next_surface_sequence_ = proto.next_surface_sequence(); 1698 next_surface_sequence_ = proto.next_surface_sequence();
1699 } 1699 }
1700 1700
1701 } // namespace cc 1701 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698