| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 void SetNeedsPushProperties(); | 412 void SetNeedsPushProperties(); |
| 413 void AddDependentNeedsPushProperties(); | 413 void AddDependentNeedsPushProperties(); |
| 414 void RemoveDependentNeedsPushProperties(); | 414 void RemoveDependentNeedsPushProperties(); |
| 415 bool parent_should_know_need_push_properties() const { | 415 bool parent_should_know_need_push_properties() const { |
| 416 return needs_push_properties() || descendant_needs_push_properties(); | 416 return needs_push_properties() || descendant_needs_push_properties(); |
| 417 } | 417 } |
| 418 | 418 |
| 419 void reset_raster_scale_to_unknown() { raster_scale_ = 0.f; } | 419 void reset_raster_scale_to_unknown() { raster_scale_ = 0.f; } |
| 420 | 420 |
| 421 // This flag is set when layer need repainting/updating. | 421 // This flag is set when layer need repainting/updating. |
| 422 // TODO(enne): Remove this flag and just check update_rect_. |
| 422 bool needs_display_; | 423 bool needs_display_; |
| 423 | 424 |
| 424 // This flag is set when the layer needs to push properties to the impl | 425 // This flag is set when the layer needs to push properties to the impl |
| 425 // side. | 426 // side. |
| 426 bool needs_push_properties_; | 427 bool needs_push_properties_; |
| 427 | 428 |
| 428 // The number of direct children or dependent layers that need to be recursed | 429 // The number of direct children or dependent layers that need to be recursed |
| 429 // to in order for them or a descendent of them to push properties to the impl | 430 // to in order for them or a descendent of them to push properties to the impl |
| 430 // side. | 431 // side. |
| 431 int num_dependents_need_push_properties_; | 432 int num_dependents_need_push_properties_; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 DrawProperties<Layer, RenderSurface> draw_properties_; | 525 DrawProperties<Layer, RenderSurface> draw_properties_; |
| 525 | 526 |
| 526 PaintProperties paint_properties_; | 527 PaintProperties paint_properties_; |
| 527 | 528 |
| 528 DISALLOW_COPY_AND_ASSIGN(Layer); | 529 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 529 }; | 530 }; |
| 530 | 531 |
| 531 } // namespace cc | 532 } // namespace cc |
| 532 | 533 |
| 533 #endif // CC_LAYERS_LAYER_H_ | 534 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |