| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 class Animation; | 41 class Animation; |
| 42 class AnimationDelegate; | 42 class AnimationDelegate; |
| 43 struct AnimationEvent; | 43 struct AnimationEvent; |
| 44 class CopyOutputRequest; | 44 class CopyOutputRequest; |
| 45 class LayerAnimationDelegate; | 45 class LayerAnimationDelegate; |
| 46 class LayerAnimationEventObserver; | 46 class LayerAnimationEventObserver; |
| 47 class LayerClient; | 47 class LayerClient; |
| 48 class LayerImpl; | 48 class LayerImpl; |
| 49 class LayerTreeHost; | 49 class LayerTreeHost; |
| 50 class LayerTreeImpl; | 50 class LayerTreeImpl; |
| 51 class PaintedScrollbarLayer; | |
| 52 class PriorityCalculator; | 51 class PriorityCalculator; |
| 53 class RenderingStatsInstrumentation; | 52 class RenderingStatsInstrumentation; |
| 54 class ResourceUpdateQueue; | 53 class ResourceUpdateQueue; |
| 54 class ScrollbarLayerInterface; |
| 55 struct AnimationEvent; | 55 struct AnimationEvent; |
| 56 | 56 |
| 57 // Base class for composited layers. Special layer types are derived from | 57 // Base class for composited layers. Special layer types are derived from |
| 58 // this class. | 58 // this class. |
| 59 class CC_EXPORT Layer : public base::RefCounted<Layer>, | 59 class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| 60 public LayerAnimationValueObserver { | 60 public LayerAnimationValueObserver { |
| 61 public: | 61 public: |
| 62 enum LayerIdLabels { | 62 enum LayerIdLabels { |
| 63 INVALID_ID = -1, | 63 INVALID_ID = -1, |
| 64 }; | 64 }; |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 bool HasActiveAnimation() const; | 384 bool HasActiveAnimation() const; |
| 385 | 385 |
| 386 void AddLayerAnimationEventObserver( | 386 void AddLayerAnimationEventObserver( |
| 387 LayerAnimationEventObserver* animation_observer); | 387 LayerAnimationEventObserver* animation_observer); |
| 388 void RemoveLayerAnimationEventObserver( | 388 void RemoveLayerAnimationEventObserver( |
| 389 LayerAnimationEventObserver* animation_observer); | 389 LayerAnimationEventObserver* animation_observer); |
| 390 | 390 |
| 391 virtual Region VisibleContentOpaqueRegion() const; | 391 virtual Region VisibleContentOpaqueRegion() const; |
| 392 | 392 |
| 393 virtual PaintedScrollbarLayer* ToScrollbarLayer(); | 393 virtual ScrollbarLayerInterface* ToScrollbarLayer(); |
| 394 | 394 |
| 395 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; | 395 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; |
| 396 | 396 |
| 397 // In impl-side painting, this returns true if this layer type is not | 397 // In impl-side painting, this returns true if this layer type is not |
| 398 // compatible with the main thread running freely, such as a double-buffered | 398 // compatible with the main thread running freely, such as a double-buffered |
| 399 // canvas that doesn't want to be triple-buffered across all three trees. | 399 // canvas that doesn't want to be triple-buffered across all three trees. |
| 400 virtual bool BlocksPendingCommit() const; | 400 virtual bool BlocksPendingCommit() const; |
| 401 // Returns true if anything in this tree blocksPendingCommit. | 401 // Returns true if anything in this tree blocksPendingCommit. |
| 402 bool BlocksPendingCommitRecursive() const; | 402 bool BlocksPendingCommitRecursive() const; |
| 403 | 403 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 DrawProperties<Layer, RenderSurface> draw_properties_; | 581 DrawProperties<Layer, RenderSurface> draw_properties_; |
| 582 | 582 |
| 583 PaintProperties paint_properties_; | 583 PaintProperties paint_properties_; |
| 584 | 584 |
| 585 DISALLOW_COPY_AND_ASSIGN(Layer); | 585 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 586 }; | 586 }; |
| 587 | 587 |
| 588 } // namespace cc | 588 } // namespace cc |
| 589 | 589 |
| 590 #endif // CC_LAYERS_LAYER_H_ | 590 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |