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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace cc { | 34 namespace cc { |
35 | 35 |
36 class Animation; | 36 class Animation; |
37 struct AnimationEvent; | 37 struct AnimationEvent; |
38 class LayerAnimationDelegate; | 38 class LayerAnimationDelegate; |
39 class LayerImpl; | 39 class LayerImpl; |
40 class LayerTreeHost; | 40 class LayerTreeHost; |
41 class LayerTreeImpl; | 41 class LayerTreeImpl; |
42 class PriorityCalculator; | 42 class PriorityCalculator; |
| 43 class RenderingStatsInstrumentation; |
43 class ResourceUpdateQueue; | 44 class ResourceUpdateQueue; |
44 class ScrollbarLayer; | 45 class ScrollbarLayer; |
45 struct AnimationEvent; | 46 struct AnimationEvent; |
46 struct RenderingStats; | 47 struct RenderingStats; |
47 | 48 |
48 // Base class for composited layers. Special layer types are derived from | 49 // Base class for composited layers. Special layer types are derived from |
49 // this class. | 50 // this class. |
50 class CC_EXPORT Layer : public base::RefCounted<Layer>, | 51 class CC_EXPORT Layer : public base::RefCounted<Layer>, |
51 public LayerAnimationValueObserver { | 52 public LayerAnimationValueObserver { |
52 public: | 53 public: |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 bool BlocksPendingCommitRecursive() const; | 364 bool BlocksPendingCommitRecursive() const; |
364 | 365 |
365 virtual bool CanClipSelf() const; | 366 virtual bool CanClipSelf() const; |
366 | 367 |
367 // Constructs a LayerImpl of the correct runtime type for this Layer type. | 368 // Constructs a LayerImpl of the correct runtime type for this Layer type. |
368 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); | 369 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); |
369 | 370 |
370 bool NeedsDisplayForTesting() const { return needs_display_; } | 371 bool NeedsDisplayForTesting() const { return needs_display_; } |
371 void ResetNeedsDisplayForTesting() { needs_display_ = false; } | 372 void ResetNeedsDisplayForTesting() { needs_display_ = false; } |
372 | 373 |
| 374 RenderingStatsInstrumentation* rendering_stats_instrumentation() const; |
| 375 |
373 protected: | 376 protected: |
374 friend class LayerImpl; | 377 friend class LayerImpl; |
375 friend class TreeSynchronizer; | 378 friend class TreeSynchronizer; |
376 virtual ~Layer(); | 379 virtual ~Layer(); |
377 | 380 |
378 Layer(); | 381 Layer(); |
379 | 382 |
380 void SetNeedsCommit(); | 383 void SetNeedsCommit(); |
381 void SetNeedsFullTreeSync(); | 384 void SetNeedsFullTreeSync(); |
382 | 385 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 WebKit::WebLayerScrollClient* layer_scroll_client_; | 482 WebKit::WebLayerScrollClient* layer_scroll_client_; |
480 | 483 |
481 DrawProperties<Layer, RenderSurface> draw_properties_; | 484 DrawProperties<Layer, RenderSurface> draw_properties_; |
482 | 485 |
483 DISALLOW_COPY_AND_ASSIGN(Layer); | 486 DISALLOW_COPY_AND_ASSIGN(Layer); |
484 }; | 487 }; |
485 | 488 |
486 } // namespace cc | 489 } // namespace cc |
487 | 490 |
488 #endif // CC_LAYERS_LAYER_H_ | 491 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |