OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 namespace cc { | 48 namespace cc { |
49 | 49 |
50 class LayerTreeHostImpl; | 50 class LayerTreeHostImpl; |
51 class LayerTreeImpl; | 51 class LayerTreeImpl; |
52 class MicroBenchmarkImpl; | 52 class MicroBenchmarkImpl; |
53 template <typename LayerType> | 53 template <typename LayerType> |
54 class OcclusionTracker; | 54 class OcclusionTracker; |
55 class Renderer; | 55 class Renderer; |
56 class ScrollbarAnimationController; | 56 class ScrollbarAnimationController; |
57 class ScrollbarLayerImplBase; | 57 class ScrollbarLayerImplBase; |
| 58 class SimpleEnclosedRegion; |
58 class Tile; | 59 class Tile; |
59 | 60 |
60 struct AppendQuadsData; | 61 struct AppendQuadsData; |
61 | 62 |
62 enum DrawMode { | 63 enum DrawMode { |
63 DRAW_MODE_NONE, | 64 DRAW_MODE_NONE, |
64 DRAW_MODE_HARDWARE, | 65 DRAW_MODE_HARDWARE, |
65 DRAW_MODE_SOFTWARE, | 66 DRAW_MODE_SOFTWARE, |
66 DRAW_MODE_RESOURCELESS_SOFTWARE | 67 DRAW_MODE_RESOURCELESS_SOFTWARE |
67 }; | 68 }; |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 void ResetAllChangeTrackingForSubtree(); | 486 void ResetAllChangeTrackingForSubtree(); |
486 | 487 |
487 LayerAnimationController* layer_animation_controller() { | 488 LayerAnimationController* layer_animation_controller() { |
488 return layer_animation_controller_.get(); | 489 return layer_animation_controller_.get(); |
489 } | 490 } |
490 | 491 |
491 const LayerAnimationController* layer_animation_controller() const { | 492 const LayerAnimationController* layer_animation_controller() const { |
492 return layer_animation_controller_.get(); | 493 return layer_animation_controller_.get(); |
493 } | 494 } |
494 | 495 |
495 virtual Region VisibleContentOpaqueRegion() const; | 496 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const; |
496 | 497 |
497 virtual void DidBecomeActive(); | 498 virtual void DidBecomeActive(); |
498 | 499 |
499 virtual void DidBeginTracing(); | 500 virtual void DidBeginTracing(); |
500 | 501 |
501 // Release resources held by this layer. Called when the output surface | 502 // Release resources held by this layer. Called when the output surface |
502 // that rendered this layer was lost or a rendering mode switch has occured. | 503 // that rendered this layer was lost or a rendering mode switch has occured. |
503 virtual void ReleaseResources(); | 504 virtual void ReleaseResources(); |
504 | 505 |
505 ScrollbarAnimationController* scrollbar_animation_controller() const { | 506 ScrollbarAnimationController* scrollbar_animation_controller() const { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 DrawProperties<LayerImpl> draw_properties_; | 705 DrawProperties<LayerImpl> draw_properties_; |
705 | 706 |
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 707 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
707 | 708 |
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 709 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
709 }; | 710 }; |
710 | 711 |
711 } // namespace cc | 712 } // namespace cc |
712 | 713 |
713 #endif // CC_LAYERS_LAYER_IMPL_H_ | 714 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |