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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 class DictionaryValue; | 44 class DictionaryValue; |
45 } | 45 } |
46 | 46 |
47 namespace cc { | 47 namespace cc { |
48 | 48 |
49 class LayerTreeHostImpl; | 49 class LayerTreeHostImpl; |
50 class LayerTreeImpl; | 50 class LayerTreeImpl; |
51 class MicroBenchmarkImpl; | 51 class MicroBenchmarkImpl; |
| 52 class Occlusion; |
52 template <typename LayerType> | 53 template <typename LayerType> |
53 class OcclusionTracker; | 54 class OcclusionTracker; |
54 class RenderPass; | 55 class RenderPass; |
55 class RenderPassId; | 56 class RenderPassId; |
56 class Renderer; | 57 class Renderer; |
57 class ScrollbarAnimationController; | 58 class ScrollbarAnimationController; |
58 class ScrollbarLayerImplBase; | 59 class ScrollbarLayerImplBase; |
59 class SimpleEnclosedRegion; | 60 class SimpleEnclosedRegion; |
60 class Tile; | 61 class Tile; |
61 | 62 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 AppendQuadsData* append_quads_data) {} | 198 AppendQuadsData* append_quads_data) {} |
198 virtual void DidDraw(ResourceProvider* resource_provider); | 199 virtual void DidDraw(ResourceProvider* resource_provider); |
199 | 200 |
200 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 201 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
201 | 202 |
202 virtual bool HasDelegatedContent() const; | 203 virtual bool HasDelegatedContent() const; |
203 virtual bool HasContributingDelegatedRenderPasses() const; | 204 virtual bool HasContributingDelegatedRenderPasses() const; |
204 virtual RenderPassId FirstContributingRenderPassId() const; | 205 virtual RenderPassId FirstContributingRenderPassId() const; |
205 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; | 206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
206 | 207 |
207 virtual void UpdateTiles( | 208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space) {} |
208 const OcclusionTracker<LayerImpl>* occlusion_tracker) {} | |
209 virtual void NotifyTileStateChanged(const Tile* tile) {} | 209 virtual void NotifyTileStateChanged(const Tile* tile) {} |
210 | 210 |
211 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 211 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
212 | 212 |
213 // Returns true if this layer has content to draw. | 213 // Returns true if this layer has content to draw. |
214 void SetDrawsContent(bool draws_content); | 214 void SetDrawsContent(bool draws_content); |
215 bool DrawsContent() const { return draws_content_; } | 215 bool DrawsContent() const { return draws_content_; } |
216 | 216 |
217 int NumDescendantsThatDrawContent() const; | 217 int NumDescendantsThatDrawContent() const; |
218 void SetHideLayerAndSubtree(bool hide); | 218 void SetHideLayerAndSubtree(bool hide); |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 DrawProperties<LayerImpl> draw_properties_; | 704 DrawProperties<LayerImpl> draw_properties_; |
705 | 705 |
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
707 | 707 |
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
709 }; | 709 }; |
710 | 710 |
711 } // namespace cc | 711 } // namespace cc |
712 | 712 |
713 #endif // CC_LAYERS_LAYER_IMPL_H_ | 713 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |