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

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

Issue 2609243003: [NOT FOR REVIEW]
Patch Set: Created 3 years, 11 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.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 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 property_tree_sequence_number_ = sequence_number; 382 property_tree_sequence_number_ = sequence_number;
383 } 383 }
384 int property_tree_sequence_number() { return property_tree_sequence_number_; } 384 int property_tree_sequence_number() { return property_tree_sequence_number_; }
385 385
386 void SetTransformTreeIndex(int index); 386 void SetTransformTreeIndex(int index);
387 int transform_tree_index() const; 387 int transform_tree_index() const;
388 388
389 void SetClipTreeIndex(int index); 389 void SetClipTreeIndex(int index);
390 int clip_tree_index() const; 390 int clip_tree_index() const;
391 391
392 void SetNewClipTreeIndex(int index);
393 int new_clip_tree_index() const;
394
392 void SetEffectTreeIndex(int index); 395 void SetEffectTreeIndex(int index);
393 int effect_tree_index() const; 396 int effect_tree_index() const;
394 397
395 void SetScrollTreeIndex(int index); 398 void SetScrollTreeIndex(int index);
396 int scroll_tree_index() const; 399 int scroll_tree_index() const;
397 400
398 void set_offset_to_transform_parent(gfx::Vector2dF offset) { 401 void set_offset_to_transform_parent(gfx::Vector2dF offset) {
399 if (offset_to_transform_parent_ == offset) 402 if (offset_to_transform_parent_ == offset)
400 return; 403 return;
401 offset_to_transform_parent_ = offset; 404 offset_to_transform_parent_ = offset;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 // updated via SetLayerTreeHost() if a layer moves between trees. 664 // updated via SetLayerTreeHost() if a layer moves between trees.
662 LayerTreeHost* layer_tree_host_; 665 LayerTreeHost* layer_tree_host_;
663 LayerTree* layer_tree_; 666 LayerTree* layer_tree_;
664 667
665 Inputs inputs_; 668 Inputs inputs_;
666 669
667 int num_descendants_that_draw_content_; 670 int num_descendants_that_draw_content_;
668 int transform_tree_index_; 671 int transform_tree_index_;
669 int effect_tree_index_; 672 int effect_tree_index_;
670 int clip_tree_index_; 673 int clip_tree_index_;
674 int new_clip_tree_index_;
671 int scroll_tree_index_; 675 int scroll_tree_index_;
672 int property_tree_sequence_number_; 676 int property_tree_sequence_number_;
673 gfx::Vector2dF offset_to_transform_parent_; 677 gfx::Vector2dF offset_to_transform_parent_;
674 bool should_flatten_transform_from_property_tree_ : 1; 678 bool should_flatten_transform_from_property_tree_ : 1;
675 bool draws_content_ : 1; 679 bool draws_content_ : 1;
676 bool use_local_transform_for_backface_visibility_ : 1; 680 bool use_local_transform_for_backface_visibility_ : 1;
677 bool should_check_backface_visibility_ : 1; 681 bool should_check_backface_visibility_ : 1;
678 bool force_render_surface_for_testing_ : 1; 682 bool force_render_surface_for_testing_ : 1;
679 bool subtree_property_changed_ : 1; 683 bool subtree_property_changed_ : 1;
680 bool may_contain_video_ : 1; 684 bool may_contain_video_ : 1;
(...skipping 10 matching lines...) Expand all
691 // These all act like draw properties, so don't need push properties. 695 // These all act like draw properties, so don't need push properties.
692 gfx::Rect visible_layer_rect_; 696 gfx::Rect visible_layer_rect_;
693 size_t num_unclipped_descendants_; 697 size_t num_unclipped_descendants_;
694 698
695 DISALLOW_COPY_AND_ASSIGN(Layer); 699 DISALLOW_COPY_AND_ASSIGN(Layer);
696 }; 700 };
697 701
698 } // namespace cc 702 } // namespace cc
699 703
700 #endif // CC_LAYERS_LAYER_H_ 704 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698