| OLD | NEW |
| 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 Loading... |
| 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 HasValidPropertyTreeIndices() const; |
| 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 Loading... |
| 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_ |
| OLD | NEW |