| 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 #include <vector> | 10 #include <vector> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void PopulateScaledSharedQuadState(SharedQuadState* state, float scale) const; | 201 void PopulateScaledSharedQuadState(SharedQuadState* state, float scale) const; |
| 202 // WillDraw must be called before AppendQuads. If WillDraw returns false, | 202 // WillDraw must be called before AppendQuads. If WillDraw returns false, |
| 203 // AppendQuads and DidDraw will not be called. If WillDraw returns true, | 203 // AppendQuads and DidDraw will not be called. If WillDraw returns true, |
| 204 // DidDraw is guaranteed to be called before another WillDraw or before | 204 // DidDraw is guaranteed to be called before another WillDraw or before |
| 205 // the layer is destroyed. To enforce this, any class that overrides | 205 // the layer is destroyed. To enforce this, any class that overrides |
| 206 // WillDraw/DidDraw must call the base class version only if WillDraw | 206 // WillDraw/DidDraw must call the base class version only if WillDraw |
| 207 // returns true. | 207 // returns true. |
| 208 virtual bool WillDraw(DrawMode draw_mode, | 208 virtual bool WillDraw(DrawMode draw_mode, |
| 209 ResourceProvider* resource_provider); | 209 ResourceProvider* resource_provider); |
| 210 virtual void AppendQuads(RenderPass* render_pass, | 210 virtual void AppendQuads(RenderPass* render_pass, |
| 211 const Occlusion& occlusion_in_content_space, | |
| 212 AppendQuadsData* append_quads_data) {} | 211 AppendQuadsData* append_quads_data) {} |
| 213 virtual void DidDraw(ResourceProvider* resource_provider); | 212 virtual void DidDraw(ResourceProvider* resource_provider); |
| 214 | 213 |
| 215 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 214 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 216 gfx::Size* resource_size) const; | 215 gfx::Size* resource_size) const; |
| 217 | 216 |
| 218 virtual bool HasDelegatedContent() const; | 217 virtual bool HasDelegatedContent() const; |
| 219 virtual bool HasContributingDelegatedRenderPasses() const; | 218 virtual bool HasContributingDelegatedRenderPasses() const; |
| 220 virtual RenderPassId FirstContributingRenderPassId() const; | 219 virtual RenderPassId FirstContributingRenderPassId() const; |
| 221 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; | 220 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 | 762 |
| 764 std::vector<FrameTimingRequest> frame_timing_requests_; | 763 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 765 bool frame_timing_requests_dirty_; | 764 bool frame_timing_requests_dirty_; |
| 766 | 765 |
| 767 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 766 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 768 }; | 767 }; |
| 769 | 768 |
| 770 } // namespace cc | 769 } // namespace cc |
| 771 | 770 |
| 772 #endif // CC_LAYERS_LAYER_IMPL_H_ | 771 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |