| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Returns true if any LayerTreeHost is alive. | 82 // Returns true if any LayerTreeHost is alive. |
| 83 static bool anyLayerTreeHostInstanceExists(); | 83 static bool anyLayerTreeHostInstanceExists(); |
| 84 | 84 |
| 85 static bool needsFilterContext() { return s_needsFilterContext; } | 85 static bool needsFilterContext() { return s_needsFilterContext; } |
| 86 static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterCo
ntext = needsFilterContext; } | 86 static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterCo
ntext = needsFilterContext; } |
| 87 bool needsSharedContext() const { return needsFilterContext() || settings().
acceleratePainting; } | 87 bool needsSharedContext() const { return needsFilterContext() || settings().
acceleratePainting; } |
| 88 | 88 |
| 89 // LayerTreeHost interface to Proxy. | 89 // LayerTreeHost interface to Proxy. |
| 90 void willBeginFrame() { m_client->willBeginFrame(); } | 90 void willBeginFrame() { m_client->willBeginFrame(); } |
| 91 void didBeginFrame(); | 91 void didBeginFrame(); |
| 92 void updateAnimations(base::TimeTicks monotonicFrameBeginTime); | 92 void updateAnimations(base::TimeTicks monotonicFrameBeginTime, base::Time wa
llClockFrameBeginTime); |
| 93 void didStopFlinging(); | 93 void didStopFlinging(); |
| 94 void layout(); | 94 void layout(); |
| 95 void beginCommitOnImplThread(LayerTreeHostImpl*); | 95 void beginCommitOnImplThread(LayerTreeHostImpl*); |
| 96 void finishCommitOnImplThread(LayerTreeHostImpl*); | 96 void finishCommitOnImplThread(LayerTreeHostImpl*); |
| 97 void willCommit(); | 97 void willCommit(); |
| 98 void commitComplete(); | 98 void commitComplete(); |
| 99 scoped_ptr<OutputSurface> createOutputSurface(); | 99 scoped_ptr<OutputSurface> createOutputSurface(); |
| 100 scoped_ptr<InputHandler> createInputHandler(); | 100 scoped_ptr<InputHandler> createInputHandler(); |
| 101 virtual scoped_ptr<LayerTreeHostImpl> createLayerTreeHostImpl(LayerTreeHostI
mplClient*); | 101 virtual scoped_ptr<LayerTreeHostImpl> createLayerTreeHostImpl(LayerTreeHostI
mplClient*); |
| 102 void didLoseOutputSurface(); | 102 void didLoseOutputSurface(); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 bool paintMasksForRenderSurface(Layer*, ResourceUpdateQueue&); | 219 bool paintMasksForRenderSurface(Layer*, ResourceUpdateQueue&); |
| 220 | 220 |
| 221 void updateLayers(Layer*, ResourceUpdateQueue&); | 221 void updateLayers(Layer*, ResourceUpdateQueue&); |
| 222 void triggerPrepaint(); | 222 void triggerPrepaint(); |
| 223 | 223 |
| 224 void prioritizeTextures(const LayerList&, OverdrawMetrics&); | 224 void prioritizeTextures(const LayerList&, OverdrawMetrics&); |
| 225 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); | 225 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); |
| 226 void setPrioritiesForLayers(const LayerList&); | 226 void setPrioritiesForLayers(const LayerList&); |
| 227 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); | 227 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); |
| 228 | 228 |
| 229 void animateLayers(base::TimeTicks monotonicTime); | 229 void animateLayers(base::TimeTicks monotonicTime, base::Time wallClockTime); |
| 230 bool animateLayersRecursive(Layer* current, base::TimeTicks time); | 230 bool animateLayersRecursive(Layer* current, base::TimeTicks time); |
| 231 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); | 231 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base:
:Time wallClockTime); |
| 232 | 232 |
| 233 bool m_animating; | 233 bool m_animating; |
| 234 bool m_needsFullTreeSync; | 234 bool m_needsFullTreeSync; |
| 235 | 235 |
| 236 base::CancelableClosure m_prepaintCallback; | 236 base::CancelableClosure m_prepaintCallback; |
| 237 | 237 |
| 238 LayerTreeHostClient* m_client; | 238 LayerTreeHostClient* m_client; |
| 239 scoped_ptr<Proxy> m_proxy; | 239 scoped_ptr<Proxy> m_proxy; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 277 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 278 | 278 |
| 279 static bool s_needsFilterContext; | 279 static bool s_needsFilterContext; |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 281 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace cc | 284 } // namespace cc |
| 285 | 285 |
| 286 #endif // CC_LAYER_TREE_HOST_H_ | 286 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |