| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 AppendQuadsData* append_quads_data) {} | 198 AppendQuadsData* append_quads_data) {} |
| 199 virtual void DidDraw(ResourceProvider* resource_provider); | 199 virtual void DidDraw(ResourceProvider* resource_provider); |
| 200 | 200 |
| 201 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 201 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
| 202 | 202 |
| 203 virtual bool HasDelegatedContent() const; | 203 virtual bool HasDelegatedContent() const; |
| 204 virtual bool HasContributingDelegatedRenderPasses() const; | 204 virtual bool HasContributingDelegatedRenderPasses() const; |
| 205 virtual RenderPassId FirstContributingRenderPassId() const; | 205 virtual RenderPassId FirstContributingRenderPassId() const; |
| 206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; | 206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
| 207 | 207 |
| 208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space) {} | 208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space, |
| 209 bool resourceless_software_draw) {} |
| 209 virtual void NotifyTileStateChanged(const Tile* tile) {} | 210 virtual void NotifyTileStateChanged(const Tile* tile) {} |
| 210 | 211 |
| 211 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 212 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 212 | 213 |
| 213 // Returns true if this layer has content to draw. | 214 // Returns true if this layer has content to draw. |
| 214 void SetDrawsContent(bool draws_content); | 215 void SetDrawsContent(bool draws_content); |
| 215 bool DrawsContent() const { return draws_content_; } | 216 bool DrawsContent() const { return draws_content_; } |
| 216 | 217 |
| 217 int NumDescendantsThatDrawContent() const; | 218 int NumDescendantsThatDrawContent() const; |
| 218 void SetHideLayerAndSubtree(bool hide); | 219 void SetHideLayerAndSubtree(bool hide); |
| (...skipping 485 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 |