| 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 26 matching lines...) Expand all Loading... |
| 37 struct AnimationEvent; | 37 struct AnimationEvent; |
| 38 class CopyOutputRequest; | 38 class CopyOutputRequest; |
| 39 class LayerAnimationDelegate; | 39 class LayerAnimationDelegate; |
| 40 class LayerAnimationEventObserver; | 40 class LayerAnimationEventObserver; |
| 41 class LayerImpl; | 41 class LayerImpl; |
| 42 class LayerTreeHost; | 42 class LayerTreeHost; |
| 43 class LayerTreeImpl; | 43 class LayerTreeImpl; |
| 44 class PriorityCalculator; | 44 class PriorityCalculator; |
| 45 class RenderingStatsInstrumentation; | 45 class RenderingStatsInstrumentation; |
| 46 class ResourceUpdateQueue; | 46 class ResourceUpdateQueue; |
| 47 class ScrollbarLayer; | 47 class ScrollbarLayerInterface; |
| 48 struct AnimationEvent; | 48 struct AnimationEvent; |
| 49 | 49 |
| 50 // Base class for composited layers. Special layer types are derived from | 50 // Base class for composited layers. Special layer types are derived from |
| 51 // this class. | 51 // this class. |
| 52 class CC_EXPORT Layer : public base::RefCounted<Layer>, | 52 class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| 53 public LayerAnimationValueObserver { | 53 public LayerAnimationValueObserver { |
| 54 public: | 54 public: |
| 55 enum LayerIdLabels { | 55 enum LayerIdLabels { |
| 56 INVALID_ID = -1, | 56 INVALID_ID = -1, |
| 57 }; | 57 }; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 bool HasActiveAnimation() const; | 341 bool HasActiveAnimation() const; |
| 342 | 342 |
| 343 void AddLayerAnimationEventObserver( | 343 void AddLayerAnimationEventObserver( |
| 344 LayerAnimationEventObserver* animation_observer); | 344 LayerAnimationEventObserver* animation_observer); |
| 345 void RemoveLayerAnimationEventObserver( | 345 void RemoveLayerAnimationEventObserver( |
| 346 LayerAnimationEventObserver* animation_observer); | 346 LayerAnimationEventObserver* animation_observer); |
| 347 | 347 |
| 348 virtual Region VisibleContentOpaqueRegion() const; | 348 virtual Region VisibleContentOpaqueRegion() const; |
| 349 | 349 |
| 350 virtual ScrollbarLayer* ToScrollbarLayer(); | 350 virtual ScrollbarLayerInterface* ToScrollbarLayer(); |
| 351 | 351 |
| 352 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; | 352 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; |
| 353 | 353 |
| 354 // In impl-side painting, this returns true if this layer type is not | 354 // In impl-side painting, this returns true if this layer type is not |
| 355 // compatible with the main thread running freely, such as a double-buffered | 355 // compatible with the main thread running freely, such as a double-buffered |
| 356 // canvas that doesn't want to be triple-buffered across all three trees. | 356 // canvas that doesn't want to be triple-buffered across all three trees. |
| 357 virtual bool BlocksPendingCommit() const; | 357 virtual bool BlocksPendingCommit() const; |
| 358 // Returns true if anything in this tree blocksPendingCommit. | 358 // Returns true if anything in this tree blocksPendingCommit. |
| 359 bool BlocksPendingCommitRecursive() const; | 359 bool BlocksPendingCommitRecursive() const; |
| 360 | 360 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 DrawProperties<Layer, RenderSurface> draw_properties_; | 521 DrawProperties<Layer, RenderSurface> draw_properties_; |
| 522 | 522 |
| 523 PaintProperties paint_properties_; | 523 PaintProperties paint_properties_; |
| 524 | 524 |
| 525 DISALLOW_COPY_AND_ASSIGN(Layer); | 525 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 526 }; | 526 }; |
| 527 | 527 |
| 528 } // namespace cc | 528 } // namespace cc |
| 529 | 529 |
| 530 #endif // CC_LAYERS_LAYER_H_ | 530 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |