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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 | 44 |
45 namespace cc { | 45 namespace cc { |
46 | 46 |
47 class LayerTreeHostImpl; | 47 class LayerTreeHostImpl; |
48 class LayerTreeImpl; | 48 class LayerTreeImpl; |
49 class MicroBenchmarkImpl; | 49 class MicroBenchmarkImpl; |
50 class QuadSink; | 50 class QuadSink; |
51 class Renderer; | 51 class Renderer; |
52 class ScrollbarAnimationController; | 52 class ScrollbarAnimationController; |
53 class ScrollbarLayerImplBase; | 53 class ScrollbarLayerImplBase; |
54 class Tile; | |
54 | 55 |
55 struct AppendQuadsData; | 56 struct AppendQuadsData; |
56 | 57 |
57 enum DrawMode { | 58 enum DrawMode { |
58 DRAW_MODE_NONE, | 59 DRAW_MODE_NONE, |
59 DRAW_MODE_HARDWARE, | 60 DRAW_MODE_HARDWARE, |
60 DRAW_MODE_SOFTWARE, | 61 DRAW_MODE_SOFTWARE, |
61 DRAW_MODE_RESOURCELESS_SOFTWARE | 62 DRAW_MODE_RESOURCELESS_SOFTWARE |
62 }; | 63 }; |
63 | 64 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 virtual void DidDraw(ResourceProvider* resource_provider); | 172 virtual void DidDraw(ResourceProvider* resource_provider); |
172 | 173 |
173 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 174 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
174 | 175 |
175 virtual bool HasDelegatedContent() const; | 176 virtual bool HasDelegatedContent() const; |
176 virtual bool HasContributingDelegatedRenderPasses() const; | 177 virtual bool HasContributingDelegatedRenderPasses() const; |
177 virtual RenderPass::Id FirstContributingRenderPassId() const; | 178 virtual RenderPass::Id FirstContributingRenderPassId() const; |
178 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 179 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; |
179 | 180 |
180 virtual void UpdateTilePriorities() {} | 181 virtual void UpdateTilePriorities() {} |
182 virtual void NotifyTileInitialized(const Tile* tile) {} | |
enne (OOO)
2014/04/29 19:44:19
Can this get merged with the AddDamageRect code th
vmpstr
2014/04/29 22:56:20
Done.
| |
181 | 183 |
182 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 184 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
183 | 185 |
184 // Returns true if this layer has content to draw. | 186 // Returns true if this layer has content to draw. |
185 void SetDrawsContent(bool draws_content); | 187 void SetDrawsContent(bool draws_content); |
186 bool DrawsContent() const { return draws_content_; } | 188 bool DrawsContent() const { return draws_content_; } |
187 | 189 |
188 void SetHideLayerAndSubtree(bool hide); | 190 void SetHideLayerAndSubtree(bool hide); |
189 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } | 191 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } |
190 | 192 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
673 DrawProperties<LayerImpl> draw_properties_; | 675 DrawProperties<LayerImpl> draw_properties_; |
674 | 676 |
675 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 677 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
676 | 678 |
677 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 679 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
678 }; | 680 }; |
679 | 681 |
680 } // namespace cc | 682 } // namespace cc |
681 | 683 |
682 #endif // CC_LAYERS_LAYER_IMPL_H_ | 684 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |