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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 void SetNeedsPushProperties(); | 401 void SetNeedsPushProperties(); |
402 void AddDependentNeedsPushProperties(); | 402 void AddDependentNeedsPushProperties(); |
403 void RemoveDependentNeedsPushProperties(); | 403 void RemoveDependentNeedsPushProperties(); |
404 bool parent_should_know_need_push_properties() const { | 404 bool parent_should_know_need_push_properties() const { |
405 return needs_push_properties() || descendant_needs_push_properties(); | 405 return needs_push_properties() || descendant_needs_push_properties(); |
406 } | 406 } |
407 | 407 |
408 void reset_raster_scale_to_unknown() { raster_scale_ = 0.f; } | 408 void reset_raster_scale_to_unknown() { raster_scale_ = 0.f; } |
409 | 409 |
410 // This flag is set when layer need repainting/updating. | 410 // This flag is set when layer need repainting/updating. |
| 411 // TODO(enne): Remove this flag and just check update_rect_. |
411 bool needs_display_; | 412 bool needs_display_; |
412 | 413 |
413 // This flag is set when the layer needs to push properties to the impl | 414 // This flag is set when the layer needs to push properties to the impl |
414 // side. | 415 // side. |
415 bool needs_push_properties_; | 416 bool needs_push_properties_; |
416 | 417 |
417 // The number of direct children or dependent layers that need to be recursed | 418 // The number of direct children or dependent layers that need to be recursed |
418 // to in order for them or a descendent of them to push properties to the impl | 419 // to in order for them or a descendent of them to push properties to the impl |
419 // side. | 420 // side. |
420 int num_dependents_need_push_properties_; | 421 int num_dependents_need_push_properties_; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 DrawProperties<Layer, RenderSurface> draw_properties_; | 514 DrawProperties<Layer, RenderSurface> draw_properties_; |
514 | 515 |
515 PaintProperties paint_properties_; | 516 PaintProperties paint_properties_; |
516 | 517 |
517 DISALLOW_COPY_AND_ASSIGN(Layer); | 518 DISALLOW_COPY_AND_ASSIGN(Layer); |
518 }; | 519 }; |
519 | 520 |
520 } // namespace cc | 521 } // namespace cc |
521 | 522 |
522 #endif // CC_LAYERS_LAYER_H_ | 523 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |