Chromium Code Reviews| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 | 175 |
| 176 virtual bool HasDelegatedContent() const; | 176 virtual bool HasDelegatedContent() const; |
| 177 virtual bool HasContributingDelegatedRenderPasses() const; | 177 virtual bool HasContributingDelegatedRenderPasses() const; |
| 178 virtual RenderPass::Id FirstContributingRenderPassId() const; | 178 virtual RenderPass::Id FirstContributingRenderPassId() const; |
| 179 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; | 179 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; |
| 180 | 180 |
| 181 virtual void UpdateTilePriorities() {} | 181 virtual void UpdateTilePriorities() {} |
| 182 virtual void NotifyTileInitialized(const Tile* tile) {} | 182 virtual void NotifyTileInitialized(const Tile* tile) {} |
| 183 | 183 |
| 184 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); | 184 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); |
| 185 virtual void ManageTilings(bool animating_transform_to_screen, | |
|
enne (OOO)
2014/05/13 18:04:09
Please don't add this to LayerImpl. Too many virt
danakj
2014/05/13 18:10:07
If this is not being called mid-CalcDrawProps, it
| |
| 186 float maximum_animation_contents_scale) {} | |
|
danakj
2014/05/13 18:10:07
This one probably needs to be added to the DrawPro
| |
| 185 | 187 |
| 186 // Returns true if this layer has content to draw. | 188 // Returns true if this layer has content to draw. |
| 187 void SetDrawsContent(bool draws_content); | 189 void SetDrawsContent(bool draws_content); |
| 188 bool DrawsContent() const { return draws_content_; } | 190 bool DrawsContent() const { return draws_content_; } |
| 189 | 191 |
| 190 void SetHideLayerAndSubtree(bool hide); | 192 void SetHideLayerAndSubtree(bool hide); |
| 191 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } | 193 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } |
| 192 | 194 |
| 193 bool force_render_surface() const { return force_render_surface_; } | 195 bool force_render_surface() const { return force_render_surface_; } |
| 194 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } | 196 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 685 DrawProperties<LayerImpl> draw_properties_; | 687 DrawProperties<LayerImpl> draw_properties_; |
| 686 | 688 |
| 687 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 689 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 688 | 690 |
| 689 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 691 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 690 }; | 692 }; |
| 691 | 693 |
| 692 } // namespace cc | 694 } // namespace cc |
| 693 | 695 |
| 694 #endif // CC_LAYERS_LAYER_IMPL_H_ | 696 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |