| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 friend class LayerTreeHostCommon; | 465 friend class LayerTreeHostCommon; |
| 466 friend class LayerTreeHost; | 466 friend class LayerTreeHost; |
| 467 | 467 |
| 468 // Interactions with attached animations. | 468 // Interactions with attached animations. |
| 469 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 469 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 470 void OnFilterAnimated(const FilterOperations& filters); | 470 void OnFilterAnimated(const FilterOperations& filters); |
| 471 void OnOpacityAnimated(float opacity); | 471 void OnOpacityAnimated(float opacity); |
| 472 void OnTransformAnimated(const gfx::Transform& transform); | 472 void OnTransformAnimated(const gfx::Transform& transform); |
| 473 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 473 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 474 | 474 |
| 475 bool FilterIsAnimating() const; | |
| 476 bool TransformIsAnimating() const; | 475 bool TransformIsAnimating() const; |
| 477 bool ScrollOffsetAnimationWasInterrupted() const; | 476 bool ScrollOffsetAnimationWasInterrupted() const; |
| 478 | 477 |
| 479 void AddScrollChild(Layer* child); | 478 void AddScrollChild(Layer* child); |
| 480 void RemoveScrollChild(Layer* child); | 479 void RemoveScrollChild(Layer* child); |
| 481 | 480 |
| 482 void AddClipChild(Layer* child); | 481 void AddClipChild(Layer* child); |
| 483 void RemoveClipChild(Layer* child); | 482 void RemoveClipChild(Layer* child); |
| 484 | 483 |
| 485 void SetParent(Layer* layer); | 484 void SetParent(Layer* layer); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 // These all act like draw properties, so don't need push properties. | 627 // These all act like draw properties, so don't need push properties. |
| 629 gfx::Rect visible_layer_rect_; | 628 gfx::Rect visible_layer_rect_; |
| 630 size_t num_unclipped_descendants_; | 629 size_t num_unclipped_descendants_; |
| 631 | 630 |
| 632 DISALLOW_COPY_AND_ASSIGN(Layer); | 631 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 633 }; | 632 }; |
| 634 | 633 |
| 635 } // namespace cc | 634 } // namespace cc |
| 636 | 635 |
| 637 #endif // CC_LAYERS_LAYER_H_ | 636 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |