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

Side by Side Diff: cc/trees/layer_tree.h

Issue 2493523003: cc: Remove unused proto conversion code. (Closed)
Patch Set: test Created 4 years, 1 month 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/test/serialization_test_utils.cc ('k') | cc/trees/layer_tree.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TREES_LAYER_TREE_H_ 5 #ifndef CC_TREES_LAYER_TREE_H_
6 #define CC_TREES_LAYER_TREE_H_ 6 #define CC_TREES_LAYER_TREE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 185 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
186 186
187 virtual void SetNeedsFullTreeSync(); 187 virtual void SetNeedsFullTreeSync();
188 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 188 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
189 189
190 void SetPropertyTreesNeedRebuild(); 190 void SetPropertyTreesNeedRebuild();
191 191
192 void PushPropertiesTo(LayerTreeImpl* tree_impl, 192 void PushPropertiesTo(LayerTreeImpl* tree_impl,
193 float unapplied_page_scale_delta); 193 float unapplied_page_scale_delta);
194 194
195 void ToProtobuf(proto::LayerTree* proto, bool inputs_only); 195 void ToProtobuf(proto::LayerTree* proto);
196 void FromProtobuf(const proto::LayerTree& proto);
197 196
198 MutatorHost* mutator_host() const { return mutator_host_; } 197 MutatorHost* mutator_host() const { return mutator_host_; }
199 198
200 Layer* LayerByElementId(ElementId element_id) const; 199 Layer* LayerByElementId(ElementId element_id) const;
201 void RegisterElement(ElementId element_id, 200 void RegisterElement(ElementId element_id,
202 ElementListType list_type, 201 ElementListType list_type,
203 Layer* layer); 202 Layer* layer);
204 void UnregisterElement(ElementId element_id, 203 void UnregisterElement(ElementId element_id,
205 ElementListType list_type, 204 ElementListType list_type,
206 Layer* layer); 205 Layer* layer);
207 void SetElementIdsForTesting(); 206 void SetElementIdsForTesting();
208 207
209 void BuildPropertyTreesForTesting(); 208 void BuildPropertyTreesForTesting();
210 209
211 // Layer iterators. 210 // Layer iterators.
212 LayerListIterator<Layer> begin() const; 211 LayerListIterator<Layer> begin() const;
213 LayerListIterator<Layer> end() const; 212 LayerListIterator<Layer> end() const;
214 LayerListReverseIterator<Layer> rbegin(); 213 LayerListReverseIterator<Layer> rbegin();
215 LayerListReverseIterator<Layer> rend(); 214 LayerListReverseIterator<Layer> rend();
216 // --------------------------------------------------------------------- 215 // ---------------------------------------------------------------------
217 216
218 private: 217 private:
219 friend class LayerTreeHostSerializationTest;
220
221 // MutatorHostClient implementation. 218 // MutatorHostClient implementation.
222 bool IsElementInList(ElementId element_id, 219 bool IsElementInList(ElementId element_id,
223 ElementListType list_type) const override; 220 ElementListType list_type) const override;
224 void SetMutatorsNeedCommit() override; 221 void SetMutatorsNeedCommit() override;
225 void SetMutatorsNeedRebuildPropertyTrees() override; 222 void SetMutatorsNeedRebuildPropertyTrees() override;
226 void SetElementFilterMutated(ElementId element_id, 223 void SetElementFilterMutated(ElementId element_id,
227 ElementListType list_type, 224 ElementListType list_type,
228 const FilterOperations& filters) override; 225 const FilterOperations& filters) override;
229 void SetElementOpacityMutated(ElementId element_id, 226 void SetElementOpacityMutated(ElementId element_id,
230 ElementListType list_type, 227 ElementListType list_type,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // external embedder. 311 // external embedder.
315 EnginePictureCache* engine_picture_cache_; 312 EnginePictureCache* engine_picture_cache_;
316 ClientPictureCache* client_picture_cache_; 313 ClientPictureCache* client_picture_cache_;
317 314
318 DISALLOW_COPY_AND_ASSIGN(LayerTree); 315 DISALLOW_COPY_AND_ASSIGN(LayerTree);
319 }; 316 };
320 317
321 } // namespace cc 318 } // namespace cc
322 319
323 #endif // CC_TREES_LAYER_TREE_H_ 320 #endif // CC_TREES_LAYER_TREE_H_
OLDNEW
« no previous file with comments | « cc/test/serialization_test_utils.cc ('k') | cc/trees/layer_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698