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

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

Issue 2456093003: Enable more layer_tree_host_unittest for LayerTreeHostRemote. (Closed)
Patch Set: Works on feedback. 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 // for previously existing Layers, since they should be re-used between each 370 // for previously existing Layers, since they should be re-used between each
371 // hierarchy update. 371 // hierarchy update.
372 virtual void FromLayerNodeProto(const proto::LayerNode& proto, 372 virtual void FromLayerNodeProto(const proto::LayerNode& proto,
373 const LayerIdMap& layer_map, 373 const LayerIdMap& layer_map,
374 LayerTreeHost* layer_tree_host); 374 LayerTreeHost* layer_tree_host);
375 375
376 // This method is similar to PushPropertiesTo, but instead of pushing to 376 // This method is similar to PushPropertiesTo, but instead of pushing to
377 // a LayerImpl, it pushes the properties to proto::LayerProperties. It is 377 // a LayerImpl, it pushes the properties to proto::LayerProperties. It is
378 // called only on layers that have changed properties. The properties 378 // called only on layers that have changed properties. The properties
379 // themselves are pushed to proto::LayerProperties. 379 // themselves are pushed to proto::LayerProperties.
380 void ToLayerPropertiesProto(proto::LayerUpdate* layer_update, 380 virtual void ToLayerPropertiesProto(proto::LayerUpdate* layer_update,
381 bool inputs_only); 381 bool inputs_only);
382 382
383 // Read all property values from the given LayerProperties object and update 383 // Read all property values from the given LayerProperties object and update
384 // the current layer. The values for |needs_push_properties_| and 384 // the current layer. The values for |needs_push_properties_| and
385 // |num_dependents_need_push_properties_| are always updated, but the rest 385 // |num_dependents_need_push_properties_| are always updated, but the rest
386 // of |proto| is only read if |needs_push_properties_| is set. 386 // of |proto| is only read if |needs_push_properties_| is set.
387 void FromLayerPropertiesProto(const proto::LayerProperties& proto); 387 void FromLayerPropertiesProto(const proto::LayerProperties& proto);
388 388
389 LayerTreeHost* GetLayerTreeHostForTesting() const { return layer_tree_host_; } 389 LayerTreeHost* GetLayerTreeHostForTesting() const { return layer_tree_host_; }
390 LayerTree* GetLayerTree() const; 390 LayerTree* GetLayerTree() const;
391 391
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 // These all act like draw properties, so don't need push properties. 738 // These all act like draw properties, so don't need push properties.
739 gfx::Rect visible_layer_rect_; 739 gfx::Rect visible_layer_rect_;
740 size_t num_unclipped_descendants_; 740 size_t num_unclipped_descendants_;
741 741
742 DISALLOW_COPY_AND_ASSIGN(Layer); 742 DISALLOW_COPY_AND_ASSIGN(Layer);
743 }; 743 };
744 744
745 } // namespace cc 745 } // namespace cc
746 746
747 #endif // CC_LAYERS_LAYER_H_ 747 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698