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

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

Issue 2918163002: cc: Workaround invalid property tree state on Layers. (Closed)
Patch Set: Created 3 years, 6 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') | cc/layers/layer_impl.cc » ('J')
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 ElementListType GetElementTypeForAnimation() const; 441 ElementListType GetElementTypeForAnimation() const;
442 442
443 void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; } 443 void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; }
444 bool needs_show_scrollbars() { return needs_show_scrollbars_; } 444 bool needs_show_scrollbars() { return needs_show_scrollbars_; }
445 445
446 void set_raster_even_if_not_drawn(bool yes) { 446 void set_raster_even_if_not_drawn(bool yes) {
447 raster_even_if_not_drawn_ = yes; 447 raster_even_if_not_drawn_ = yes;
448 } 448 }
449 bool raster_even_if_not_drawn() const { return raster_even_if_not_drawn_; } 449 bool raster_even_if_not_drawn() const { return raster_even_if_not_drawn_; }
450 450
451 bool EnsureValidPropertyTreeIndices() const;
enne (OOO) 2017/06/02 18:41:19 bikeshed: functions called "Ensure" I expect to be
Khushal 2017/06/02 18:47:03 Done.
452
451 protected: 453 protected:
452 LayerImpl(LayerTreeImpl* layer_impl, 454 LayerImpl(LayerTreeImpl* layer_impl,
453 int id, 455 int id,
454 scoped_refptr<SyncedScrollOffset> scroll_offset); 456 scoped_refptr<SyncedScrollOffset> scroll_offset);
455 LayerImpl(LayerTreeImpl* layer_impl, int id); 457 LayerImpl(LayerTreeImpl* layer_impl, int id);
456 458
457 // Get the color and size of the layer's debug border. 459 // Get the color and size of the layer's debug border.
458 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 460 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
459 461
460 void AppendDebugBorderQuad(RenderPass* render_pass, 462 void AppendDebugBorderQuad(RenderPass* render_pass,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // is being animated). For this reason, while these layers are not drawn, they 572 // is being animated). For this reason, while these layers are not drawn, they
571 // are still rasterized. 573 // are still rasterized.
572 bool raster_even_if_not_drawn_ : 1; 574 bool raster_even_if_not_drawn_ : 1;
573 575
574 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 576 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
575 }; 577 };
576 578
577 } // namespace cc 579 } // namespace cc
578 580
579 #endif // CC_LAYERS_LAYER_IMPL_H_ 581 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698