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 ScrollbarLayerBase; |
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 bool HasActiveAnimation() const; | 335 bool HasActiveAnimation() const; |
336 | 336 |
337 void AddLayerAnimationEventObserver( | 337 void AddLayerAnimationEventObserver( |
338 LayerAnimationEventObserver* animation_observer); | 338 LayerAnimationEventObserver* animation_observer); |
339 void RemoveLayerAnimationEventObserver( | 339 void RemoveLayerAnimationEventObserver( |
340 LayerAnimationEventObserver* animation_observer); | 340 LayerAnimationEventObserver* animation_observer); |
341 | 341 |
342 virtual Region VisibleContentOpaqueRegion() const; | 342 virtual Region VisibleContentOpaqueRegion() const; |
343 | 343 |
344 virtual ScrollbarLayer* ToScrollbarLayer(); | 344 virtual ScrollbarLayerBase* ToScrollbarLayerBase(); |
345 | 345 |
346 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; | 346 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; |
347 | 347 |
348 // In impl-side painting, this returns true if this layer type is not | 348 // In impl-side painting, this returns true if this layer type is not |
349 // compatible with the main thread running freely, such as a double-buffered | 349 // compatible with the main thread running freely, such as a double-buffered |
350 // canvas that doesn't want to be triple-buffered across all three trees. | 350 // canvas that doesn't want to be triple-buffered across all three trees. |
351 virtual bool BlocksPendingCommit() const; | 351 virtual bool BlocksPendingCommit() const; |
352 // Returns true if anything in this tree blocksPendingCommit. | 352 // Returns true if anything in this tree blocksPendingCommit. |
353 bool BlocksPendingCommitRecursive() const; | 353 bool BlocksPendingCommitRecursive() const; |
354 | 354 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 DrawProperties<Layer, RenderSurface> draw_properties_; | 487 DrawProperties<Layer, RenderSurface> draw_properties_; |
488 | 488 |
489 PaintProperties paint_properties_; | 489 PaintProperties paint_properties_; |
490 | 490 |
491 DISALLOW_COPY_AND_ASSIGN(Layer); | 491 DISALLOW_COPY_AND_ASSIGN(Layer); |
492 }; | 492 }; |
493 | 493 |
494 } // namespace cc | 494 } // namespace cc |
495 | 495 |
496 #endif // CC_LAYERS_LAYER_H_ | 496 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |