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_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void renderingStats(RenderingStats*) const; | 177 void renderingStats(RenderingStats*) const; |
178 | 178 |
179 const RendererCapabilities& rendererCapabilities() const; | 179 const RendererCapabilities& rendererCapabilities() const; |
180 | 180 |
181 // Test only hook | 181 // Test only hook |
182 void loseContext(int numTimes); | 182 void loseContext(int numTimes); |
183 | 183 |
184 void setNeedsAnimate(); | 184 void setNeedsAnimate(); |
185 // virtual for testing | 185 // virtual for testing |
186 virtual void setNeedsCommit(); | 186 virtual void setNeedsCommit(); |
| 187 virtual void setNeedsFullTreeSync(); |
187 void setNeedsRedraw(); | 188 void setNeedsRedraw(); |
188 bool commitRequested() const; | 189 bool commitRequested() const; |
189 | 190 |
190 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); | 191 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); |
191 virtual void didAddAnimation(); | 192 virtual void didAddAnimation(); |
192 | 193 |
193 Layer* rootLayer() { return m_rootLayer.get(); } | 194 Layer* rootLayer() { return m_rootLayer.get(); } |
194 const Layer* rootLayer() const { return m_rootLayer.get(); } | 195 const Layer* rootLayer() const { return m_rootLayer.get(); } |
195 void setRootLayer(scoped_refptr<Layer>); | 196 void setRootLayer(scoped_refptr<Layer>); |
196 | 197 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); | 262 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); |
262 void setPrioritiesForLayers(const LayerList&); | 263 void setPrioritiesForLayers(const LayerList&); |
263 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); | 264 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); |
264 | 265 |
265 void animateLayers(base::TimeTicks monotonicTime); | 266 void animateLayers(base::TimeTicks monotonicTime); |
266 bool animateLayersRecursive(Layer* current, base::TimeTicks time); | 267 bool animateLayersRecursive(Layer* current, base::TimeTicks time); |
267 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); | 268 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); |
268 | 269 |
269 bool m_animating; | 270 bool m_animating; |
270 bool m_needsAnimateLayers; | 271 bool m_needsAnimateLayers; |
| 272 bool m_needsFullTreeSync; |
271 | 273 |
272 base::CancelableClosure m_prepaintCallback; | 274 base::CancelableClosure m_prepaintCallback; |
273 | 275 |
274 LayerTreeHostClient* m_client; | 276 LayerTreeHostClient* m_client; |
275 scoped_ptr<Proxy> m_proxy; | 277 scoped_ptr<Proxy> m_proxy; |
276 | 278 |
277 int m_commitNumber; | 279 int m_commitNumber; |
278 RenderingStats m_renderingStats; | 280 RenderingStats m_renderingStats; |
279 | 281 |
280 bool m_rendererInitialized; | 282 bool m_rendererInitialized; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 size_t m_partialTextureUpdateRequests; | 314 size_t m_partialTextureUpdateRequests; |
313 | 315 |
314 static bool s_needsFilterContext; | 316 static bool s_needsFilterContext; |
315 | 317 |
316 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 318 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
317 }; | 319 }; |
318 | 320 |
319 } // namespace cc | 321 } // namespace cc |
320 | 322 |
321 #endif // CC_LAYER_TREE_HOST_H_ | 323 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |