| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 void SetNextCommitWaitsForActivation(); | 543 void SetNextCommitWaitsForActivation(); |
| 544 | 544 |
| 545 // Will recalculate whether the layer draws content and set draws_content_ | 545 // Will recalculate whether the layer draws content and set draws_content_ |
| 546 // appropriately. | 546 // appropriately. |
| 547 void UpdateDrawsContent(bool has_drawable_content); | 547 void UpdateDrawsContent(bool has_drawable_content); |
| 548 virtual bool HasDrawableContent() const; | 548 virtual bool HasDrawableContent() const; |
| 549 | 549 |
| 550 // Called when the layer's number of drawable descendants changes. | 550 // Called when the layer's number of drawable descendants changes. |
| 551 void AddDrawableDescendants(int num); | 551 void AddDrawableDescendants(int num); |
| 552 | 552 |
| 553 void AddDependentNeedsPushProperties(); | |
| 554 void RemoveDependentNeedsPushProperties(); | |
| 555 | |
| 556 bool IsPropertyChangeAllowed() const; | 553 bool IsPropertyChangeAllowed() const; |
| 557 | 554 |
| 558 // Serialize all the necessary properties to be able to reconstruct this Layer | 555 // Serialize all the necessary properties to be able to reconstruct this Layer |
| 559 // into proto::LayerProperties. This method is not marked as const | 556 // into proto::LayerProperties. This method is not marked as const |
| 560 // as some implementations need reset member fields, similarly to | 557 // as some implementations need reset member fields, similarly to |
| 561 // PushPropertiesTo(). | 558 // PushPropertiesTo(). |
| 562 virtual void LayerSpecificPropertiesToProto(proto::LayerProperties* proto); | 559 virtual void LayerSpecificPropertiesToProto(proto::LayerProperties* proto); |
| 563 | 560 |
| 564 // Deserialize all the necessary properties from proto::LayerProperties into | 561 // Deserialize all the necessary properties from proto::LayerProperties into |
| 565 // this Layer. | 562 // this Layer. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 690 |
| 694 std::vector<FrameTimingRequest> frame_timing_requests_; | 691 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 695 bool frame_timing_requests_dirty_; | 692 bool frame_timing_requests_dirty_; |
| 696 | 693 |
| 697 DISALLOW_COPY_AND_ASSIGN(Layer); | 694 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 698 }; | 695 }; |
| 699 | 696 |
| 700 } // namespace cc | 697 } // namespace cc |
| 701 | 698 |
| 702 #endif // CC_LAYERS_LAYER_H_ | 699 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |