| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 AppendQuadsData* append_quads_data) {} | 103 AppendQuadsData* append_quads_data) {} |
| 104 virtual void DidDraw(ResourceProvider* resource_provider); | 104 virtual void DidDraw(ResourceProvider* resource_provider); |
| 105 | 105 |
| 106 virtual ResourceProvider::ResourceId ContentsResourceId() const; | 106 virtual ResourceProvider::ResourceId ContentsResourceId() const; |
| 107 | 107 |
| 108 virtual bool HasDelegatedContent() const; | 108 virtual bool HasDelegatedContent() const; |
| 109 virtual bool HasContributingDelegatedRenderPasses() const; | 109 virtual bool HasContributingDelegatedRenderPasses() const; |
| 110 virtual RenderPass::Id FirstContributingRenderPassId() const; | 110 virtual RenderPass::Id FirstContributingRenderPassId() const; |
| 111 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 111 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; |
| 112 | 112 |
| 113 virtual bool NeedsFirstTimeUpdateTilePriorities() const; |
| 113 virtual void UpdateTilePriorities() {} | 114 virtual void UpdateTilePriorities() {} |
| 114 | 115 |
| 115 virtual ScrollbarLayerImpl* ToScrollbarLayer(); | 116 virtual ScrollbarLayerImpl* ToScrollbarLayer(); |
| 116 | 117 |
| 117 // Returns true if this layer has content to draw. | 118 // Returns true if this layer has content to draw. |
| 118 void SetDrawsContent(bool draws_content); | 119 void SetDrawsContent(bool draws_content); |
| 119 bool DrawsContent() const { return draws_content_; } | 120 bool DrawsContent() const { return draws_content_; } |
| 120 | 121 |
| 121 bool force_render_surface() const { return force_render_surface_; } | 122 bool force_render_surface() const { return force_render_surface_; } |
| 122 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } | 123 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 // Group of properties that need to be computed based on the layer tree | 533 // Group of properties that need to be computed based on the layer tree |
| 533 // hierarchy before layers can be drawn. | 534 // hierarchy before layers can be drawn. |
| 534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 535 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
| 535 | 536 |
| 536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 537 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 537 }; | 538 }; |
| 538 | 539 |
| 539 } // namespace cc | 540 } // namespace cc |
| 540 | 541 |
| 541 #endif // CC_LAYERS_LAYER_IMPL_H_ | 542 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |