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_LAYER_IMPL_H_ | 5 #ifndef CC_LAYER_IMPL_H_ |
6 #define CC_LAYER_IMPL_H_ | 6 #define CC_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void appendQuads(QuadSink&, AppendQuadsData&) { } | 100 virtual void appendQuads(QuadSink&, AppendQuadsData&) { } |
101 virtual void didDraw(ResourceProvider*); | 101 virtual void didDraw(ResourceProvider*); |
102 | 102 |
103 virtual ResourceProvider::ResourceId contentsResourceId() const; | 103 virtual ResourceProvider::ResourceId contentsResourceId() const; |
104 | 104 |
105 virtual bool hasDelegatedContent() const; | 105 virtual bool hasDelegatedContent() const; |
106 virtual bool hasContributingDelegatedRenderPasses() const; | 106 virtual bool hasContributingDelegatedRenderPasses() const; |
107 virtual RenderPass::Id firstContributingRenderPassId() const; | 107 virtual RenderPass::Id firstContributingRenderPassId() const; |
108 virtual RenderPass::Id nextContributingRenderPassId(RenderPass::Id) const; | 108 virtual RenderPass::Id nextContributingRenderPassId(RenderPass::Id) const; |
109 | 109 |
| 110 virtual void updateTilePriorities() { } |
| 111 |
110 virtual ScrollbarLayerImpl* toScrollbarLayer(); | 112 virtual ScrollbarLayerImpl* toScrollbarLayer(); |
111 | 113 |
112 // Returns true if this layer has content to draw. | 114 // Returns true if this layer has content to draw. |
113 void setDrawsContent(bool); | 115 void setDrawsContent(bool); |
114 bool drawsContent() const { return m_drawsContent; } | 116 bool drawsContent() const { return m_drawsContent; } |
115 | 117 |
116 bool forceRenderSurface() const { return m_forceRenderSurface; } | 118 bool forceRenderSurface() const { return m_forceRenderSurface; } |
117 void setForceRenderSurface(bool force) { m_forceRenderSurface = force; } | 119 void setForceRenderSurface(bool force) { m_forceRenderSurface = force; } |
118 | 120 |
119 void setAnchorPoint(const gfx::PointF&); | 121 void setAnchorPoint(const gfx::PointF&); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 bool layerSurfacePropertyChanged() const; | 273 bool layerSurfacePropertyChanged() const; |
272 | 274 |
273 void resetAllChangeTrackingForSubtree(); | 275 void resetAllChangeTrackingForSubtree(); |
274 | 276 |
275 virtual bool layerIsAlwaysDamaged() const; | 277 virtual bool layerIsAlwaysDamaged() const; |
276 | 278 |
277 LayerAnimationController* layerAnimationController() { return m_layerAnimati
onController.get(); } | 279 LayerAnimationController* layerAnimationController() { return m_layerAnimati
onController.get(); } |
278 | 280 |
279 virtual Region visibleContentOpaqueRegion() const; | 281 virtual Region visibleContentOpaqueRegion() const; |
280 | 282 |
281 virtual void didUpdateTransforms() { } | |
282 virtual void didBecomeActive(); | 283 virtual void didBecomeActive(); |
283 | 284 |
284 // Indicates that the surface previously used to render this layer | 285 // Indicates that the surface previously used to render this layer |
285 // was lost and that a new one has been created. Won't be called | 286 // was lost and that a new one has been created. Won't be called |
286 // until the new surface has been created successfully. | 287 // until the new surface has been created successfully. |
287 virtual void didLoseOutputSurface(); | 288 virtual void didLoseOutputSurface(); |
288 | 289 |
289 ScrollbarAnimationController* scrollbarAnimationController() const { return
m_scrollbarAnimationController.get(); } | 290 ScrollbarAnimationController* scrollbarAnimationController() const { return
m_scrollbarAnimationController.get(); } |
290 | 291 |
291 void setScrollbarOpacity(float opacity); | 292 void setScrollbarOpacity(float opacity); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 // Group of properties that need to be computed based on the layer tree | 427 // Group of properties that need to be computed based on the layer tree |
427 // hierarchy before layers can be drawn. | 428 // hierarchy before layers can be drawn. |
428 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 429 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
429 | 430 |
430 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 431 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
431 }; | 432 }; |
432 | 433 |
433 } | 434 } |
434 | 435 |
435 #endif // CC_LAYER_IMPL_H_ | 436 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |