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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // the layer is destroyed. To enforce this, any class that overrides | 192 // the layer is destroyed. To enforce this, any class that overrides |
193 // WillDraw/DidDraw must call the base class version only if WillDraw | 193 // WillDraw/DidDraw must call the base class version only if WillDraw |
194 // returns true. | 194 // returns true. |
195 virtual bool WillDraw(DrawMode draw_mode, | 195 virtual bool WillDraw(DrawMode draw_mode, |
196 ResourceProvider* resource_provider); | 196 ResourceProvider* resource_provider); |
197 virtual void AppendQuads(RenderPass* render_pass, | 197 virtual void AppendQuads(RenderPass* render_pass, |
198 const Occlusion& occlusion_in_content_space, | 198 const Occlusion& occlusion_in_content_space, |
199 AppendQuadsData* append_quads_data) {} | 199 AppendQuadsData* append_quads_data) {} |
200 virtual void DidDraw(ResourceProvider* resource_provider); | 200 virtual void DidDraw(ResourceProvider* resource_provider); |
201 | 201 |
202 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 202 virtual void ContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 203 gfx::Size* resource_size) const; |
203 | 204 |
204 virtual bool HasDelegatedContent() const; | 205 virtual bool HasDelegatedContent() const; |
205 virtual bool HasContributingDelegatedRenderPasses() const; | 206 virtual bool HasContributingDelegatedRenderPasses() const; |
206 virtual RenderPassId FirstContributingRenderPassId() const; | 207 virtual RenderPassId FirstContributingRenderPassId() const; |
207 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; | 208 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
208 | 209 |
209 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space, | 210 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space, |
210 bool resourceless_software_draw) {} | 211 bool resourceless_software_draw) {} |
211 virtual void NotifyTileStateChanged(const Tile* tile) {} | 212 virtual void NotifyTileStateChanged(const Tile* tile) {} |
212 | 213 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 DrawProperties<LayerImpl> draw_properties_; | 715 DrawProperties<LayerImpl> draw_properties_; |
715 | 716 |
716 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 717 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
717 | 718 |
718 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 719 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
719 }; | 720 }; |
720 | 721 |
721 } // namespace cc | 722 } // namespace cc |
722 | 723 |
723 #endif // CC_LAYERS_LAYER_IMPL_H_ | 724 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |