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

Side by Side Diff: cc/layers/layer_proto_converter.h

Issue 1803863003: cc: Remove some unnecessary const scoped_refptr&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | cc/layers/layer_proto_converter.cc » ('j') | cc/layers/layer_proto_converter.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CC_LAYERS_LAYER_PROTO_CONVERTER_H_ 5 #ifndef CC_LAYERS_LAYER_PROTO_CONVERTER_H_
6 #define CC_LAYERS_LAYER_PROTO_CONVERTER_H_ 6 #define CC_LAYERS_LAYER_PROTO_CONVERTER_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 private: 59 private:
60 LayerProtoConverter(); 60 LayerProtoConverter();
61 ~LayerProtoConverter(); 61 ~LayerProtoConverter();
62 62
63 // This method is the inner recursive function for SerializeLayerProperties 63 // This method is the inner recursive function for SerializeLayerProperties
64 // declared above. 64 // declared above.
65 static void RecursivelySerializeLayerProperties( 65 static void RecursivelySerializeLayerProperties(
66 Layer* root_layer, 66 Layer* root_layer,
67 proto::LayerUpdate* layer_update); 67 proto::LayerUpdate* layer_update);
68 68
69 using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>; 69 using LayerIdMap = std::unordered_map<int, scoped_refptr<Layer>>;
danakj 2016/03/16 00:08:15 Does this need to be refptrs? If so the FindAllLay
vmpstr 2016/03/16 16:38:37 I think it makes sense for the map to be owning, s
danakj 2016/03/16 18:04:31 OK. BTW if blink no longer changes cc during pain
70 // Start at |layer| and recursively add |layer| and all its children and 70 // Start at |root_layer| and recursively add the layer and all its children
71 // special layers to |layer_id_map|. 71 // and special layers to |layer_id_map|.
72 static void RecursivelyFindAllLayers(const scoped_refptr<Layer>& layer, 72 static void RecursivelyFindAllLayers(Layer* root_layer,
73 LayerIdMap* layer_id_map); 73 LayerIdMap* layer_id_map);
74 }; 74 };
75 75
76 } // namespace cc 76 } // namespace cc
77 77
78 #endif // CC_LAYERS_LAYER_PROTO_CONVERTER_H_ 78 #endif // CC_LAYERS_LAYER_PROTO_CONVERTER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_proto_converter.cc » ('j') | cc/layers/layer_proto_converter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698