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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void PopulateSharedQuadState(SharedQuadState* state) const; | 188 void PopulateSharedQuadState(SharedQuadState* state) const; |
189 // WillDraw must be called before AppendQuads. If WillDraw returns false, | 189 // WillDraw must be called before AppendQuads. If WillDraw returns false, |
190 // AppendQuads and DidDraw will not be called. If WillDraw returns true, | 190 // AppendQuads and DidDraw will not be called. If WillDraw returns true, |
191 // DidDraw is guaranteed to be called before another WillDraw or before | 191 // DidDraw is guaranteed to be called before another WillDraw or before |
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 OcclusionTracker<LayerImpl>& occlusion_tracker, | 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 ResourceProvider::ResourceId ContentsResourceId() const; |
203 | 203 |
204 virtual bool HasDelegatedContent() const; | 204 virtual bool HasDelegatedContent() const; |
205 virtual bool HasContributingDelegatedRenderPasses() const; | 205 virtual bool HasContributingDelegatedRenderPasses() const; |
206 virtual RenderPassId FirstContributingRenderPassId() const; | 206 virtual RenderPassId FirstContributingRenderPassId() const; |
207 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; | 207 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
208 | 208 |
(...skipping 495 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 |