| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 void DidBeginTracing(); | 433 void DidBeginTracing(); |
| 434 | 434 |
| 435 int num_copy_requests_in_target_subtree(); | 435 int num_copy_requests_in_target_subtree(); |
| 436 | 436 |
| 437 void SetElementId(ElementId id); | 437 void SetElementId(ElementId id); |
| 438 ElementId element_id() const { return inputs_.element_id; } | 438 ElementId element_id() const { return inputs_.element_id; } |
| 439 | 439 |
| 440 void SetMutableProperties(uint32_t properties); | 440 void SetMutableProperties(uint32_t properties); |
| 441 uint32_t mutable_properties() const { return inputs_.mutable_properties; } | 441 uint32_t mutable_properties() const { return inputs_.mutable_properties; } |
| 442 | 442 |
| 443 bool HasActiveAnimationForTesting() const; | 443 bool HasTickingAnimationForTesting() const; |
| 444 | 444 |
| 445 void SetHasWillChangeTransformHint(bool has_will_change); | 445 void SetHasWillChangeTransformHint(bool has_will_change); |
| 446 bool has_will_change_transform_hint() const { | 446 bool has_will_change_transform_hint() const { |
| 447 return inputs_.has_will_change_transform_hint; | 447 return inputs_.has_will_change_transform_hint; |
| 448 } | 448 } |
| 449 | 449 |
| 450 // The preferred raster bounds are the ideal resolution at which to raster the | 450 // The preferred raster bounds are the ideal resolution at which to raster the |
| 451 // contents of this Layer's bitmap. This may not be the same size as the Layer | 451 // contents of this Layer's bitmap. This may not be the same size as the Layer |
| 452 // bounds, in cases where the contents have an "intrinsic" size that differs. | 452 // bounds, in cases where the contents have an "intrinsic" size that differs. |
| 453 // Consider for example an image with a given intrinsic size that is being | 453 // Consider for example an image with a given intrinsic size that is being |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 // These all act like draw properties, so don't need push properties. | 691 // These all act like draw properties, so don't need push properties. |
| 692 gfx::Rect visible_layer_rect_; | 692 gfx::Rect visible_layer_rect_; |
| 693 size_t num_unclipped_descendants_; | 693 size_t num_unclipped_descendants_; |
| 694 | 694 |
| 695 DISALLOW_COPY_AND_ASSIGN(Layer); | 695 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 696 }; | 696 }; |
| 697 | 697 |
| 698 } // namespace cc | 698 } // namespace cc |
| 699 | 699 |
| 700 #endif // CC_LAYERS_LAYER_H_ | 700 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |