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

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

Issue 2611253003: Use private helpers in LayerImpl to shorten property tree references. (Closed)
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_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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 friend class TreeSynchronizer; 539 friend class TreeSynchronizer;
540 540
541 // Layers that share a sorting context id will be sorted together in 3d 541 // Layers that share a sorting context id will be sorted together in 3d
542 // space. 0 is a special value that means this layer will not be sorted and 542 // space. 0 is a special value that means this layer will not be sorted and
543 // will be drawn in paint order. 543 // will be drawn in paint order.
544 int sorting_context_id_; 544 int sorting_context_id_;
545 545
546 DrawMode current_draw_mode_; 546 DrawMode current_draw_mode_;
547 547
548 private: 548 private:
549 PropertyTrees* GetPropertyTrees() const;
wkorman 2017/01/06 03:41:02 I named these as GetXxx() since not-infrequently o
wkorman 2017/01/06 17:37:32 On reflection I'd like to rename these to remove t
danakj 2017/01/06 17:50:06 That will collide with the type name - and functio
550 EffectTree& GetEffectTree() const;
551 ScrollTree& GetScrollTree() const;
552 TransformTree& GetTransformTree() const;
553
549 ElementId element_id_; 554 ElementId element_id_;
550 uint32_t mutable_properties_; 555 uint32_t mutable_properties_;
551 // Rect indicating what was repainted/updated during update. 556 // Rect indicating what was repainted/updated during update.
552 // Note that plugin layers bypass this and leave it empty. 557 // Note that plugin layers bypass this and leave it empty.
553 // This is in the layer's space. 558 // This is in the layer's space.
554 gfx::Rect update_rect_; 559 gfx::Rect update_rect_;
555 560
556 // Denotes an area that is damaged and needs redraw. This is in the layer's 561 // Denotes an area that is damaged and needs redraw. This is in the layer's
557 // space. 562 // space.
558 gfx::Rect damage_rect_; 563 gfx::Rect damage_rect_;
(...skipping 17 matching lines...) Expand all
576 bool has_will_change_transform_hint_ : 1; 581 bool has_will_change_transform_hint_ : 1;
577 bool needs_push_properties_ : 1; 582 bool needs_push_properties_ : 1;
578 bool scrollbars_hidden_ : 1; 583 bool scrollbars_hidden_ : 1;
579 584
580 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 585 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
581 }; 586 };
582 587
583 } // namespace cc 588 } // namespace cc
584 589
585 #endif // CC_LAYERS_LAYER_IMPL_H_ 590 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698