| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 virtual void DidDraw(ResourceProvider* resource_provider); | 212 virtual void DidDraw(ResourceProvider* resource_provider); |
| 213 | 213 |
| 214 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 214 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 215 gfx::Size* resource_size) const; | 215 gfx::Size* resource_size) const; |
| 216 | 216 |
| 217 virtual bool HasDelegatedContent() const; | 217 virtual bool HasDelegatedContent() const; |
| 218 virtual bool HasContributingDelegatedRenderPasses() const; | 218 virtual bool HasContributingDelegatedRenderPasses() const; |
| 219 virtual RenderPassId FirstContributingRenderPassId() const; | 219 virtual RenderPassId FirstContributingRenderPassId() const; |
| 220 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; | 220 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; |
| 221 | 221 |
| 222 // Updates the layer's tiles. This should return true if meaningful work was | |
| 223 // done. That is, if an early-out was hit and as a result the internal state | |
| 224 // of tiles didn't change, this function should return false. | |
| 225 virtual bool UpdateTiles(const Occlusion& occlusion_in_layer_space, | |
| 226 bool resourceless_software_draw); | |
| 227 virtual void NotifyTileStateChanged(const Tile* tile) {} | 222 virtual void NotifyTileStateChanged(const Tile* tile) {} |
| 228 | 223 |
| 229 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 224 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 230 | 225 |
| 231 // Returns true if this layer has content to draw. | 226 // Returns true if this layer has content to draw. |
| 232 void SetDrawsContent(bool draws_content); | 227 void SetDrawsContent(bool draws_content); |
| 233 bool DrawsContent() const { return draws_content_; } | 228 bool DrawsContent() const { return draws_content_; } |
| 234 | 229 |
| 235 int NumDescendantsThatDrawContent() const; | 230 int NumDescendantsThatDrawContent() const; |
| 236 void SetHideLayerAndSubtree(bool hide); | 231 void SetHideLayerAndSubtree(bool hide); |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 | 762 |
| 768 std::vector<FrameTimingRequest> frame_timing_requests_; | 763 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 769 bool frame_timing_requests_dirty_; | 764 bool frame_timing_requests_dirty_; |
| 770 | 765 |
| 771 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 766 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 772 }; | 767 }; |
| 773 | 768 |
| 774 } // namespace cc | 769 } // namespace cc |
| 775 | 770 |
| 776 #endif // CC_LAYERS_LAYER_IMPL_H_ | 771 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |