| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 AppendQuadsData* append_quads_data) {} | 181 AppendQuadsData* append_quads_data) {} |
| 182 virtual void DidDraw(ResourceProvider* resource_provider); | 182 virtual void DidDraw(ResourceProvider* resource_provider); |
| 183 | 183 |
| 184 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 184 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
| 185 | 185 |
| 186 virtual bool HasDelegatedContent() const; | 186 virtual bool HasDelegatedContent() const; |
| 187 virtual bool HasContributingDelegatedRenderPasses() const; | 187 virtual bool HasContributingDelegatedRenderPasses() const; |
| 188 virtual RenderPass::Id FirstContributingRenderPassId() const; | 188 virtual RenderPass::Id FirstContributingRenderPassId() const; |
| 189 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 189 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; |
| 190 | 190 |
| 191 virtual void UpdateTilePriorities() {} | 191 virtual void UpdateTiles() {} |
| 192 virtual void NotifyTileStateChanged(const Tile* tile) {} | 192 virtual void NotifyTileStateChanged(const Tile* tile) {} |
| 193 | 193 |
| 194 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 194 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 195 | 195 |
| 196 // Returns true if this layer has content to draw. | 196 // Returns true if this layer has content to draw. |
| 197 void SetDrawsContent(bool draws_content); | 197 void SetDrawsContent(bool draws_content); |
| 198 bool DrawsContent() const { return draws_content_; } | 198 bool DrawsContent() const { return draws_content_; } |
| 199 | 199 |
| 200 void SetHideLayerAndSubtree(bool hide); | 200 void SetHideLayerAndSubtree(bool hide); |
| 201 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } | 201 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 DrawProperties<LayerImpl> draw_properties_; | 679 DrawProperties<LayerImpl> draw_properties_; |
| 680 | 680 |
| 681 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 681 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 682 | 682 |
| 683 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 683 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 684 }; | 684 }; |
| 685 | 685 |
| 686 } // namespace cc | 686 } // namespace cc |
| 687 | 687 |
| 688 #endif // CC_LAYERS_LAYER_IMPL_H_ | 688 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |