| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 static bool anyLayerTreeHostInstanceExists(); | 79 static bool anyLayerTreeHostInstanceExists(); |
| 80 | 80 |
| 81 static bool needsFilterContext() { return s_needsFilterContext; } | 81 static bool needsFilterContext() { return s_needsFilterContext; } |
| 82 static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterCo
ntext = needsFilterContext; } | 82 static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterCo
ntext = needsFilterContext; } |
| 83 bool needsSharedContext() const { return needsFilterContext() || settings().
acceleratePainting; } | 83 bool needsSharedContext() const { return needsFilterContext() || settings().
acceleratePainting; } |
| 84 | 84 |
| 85 // LayerTreeHost interface to Proxy. | 85 // LayerTreeHost interface to Proxy. |
| 86 void willBeginFrame() { m_client->willBeginFrame(); } | 86 void willBeginFrame() { m_client->willBeginFrame(); } |
| 87 void didBeginFrame() { m_client->didBeginFrame(); } | 87 void didBeginFrame() { m_client->didBeginFrame(); } |
| 88 void updateAnimations(base::TimeTicks monotonicFrameBeginTime); | 88 void updateAnimations(base::TimeTicks monotonicFrameBeginTime); |
| 89 void didStopFlinging(); |
| 89 void layout(); | 90 void layout(); |
| 90 void beginCommitOnImplThread(LayerTreeHostImpl*); | 91 void beginCommitOnImplThread(LayerTreeHostImpl*); |
| 91 void finishCommitOnImplThread(LayerTreeHostImpl*); | 92 void finishCommitOnImplThread(LayerTreeHostImpl*); |
| 92 void willCommit(); | 93 void willCommit(); |
| 93 void commitComplete(); | 94 void commitComplete(); |
| 94 scoped_ptr<OutputSurface> createOutputSurface(); | 95 scoped_ptr<OutputSurface> createOutputSurface(); |
| 95 scoped_ptr<InputHandler> createInputHandler(); | 96 scoped_ptr<InputHandler> createInputHandler(); |
| 96 virtual scoped_ptr<LayerTreeHostImpl> createLayerTreeHostImpl(LayerTreeHostI
mplClient*); | 97 virtual scoped_ptr<LayerTreeHostImpl> createLayerTreeHostImpl(LayerTreeHostI
mplClient*); |
| 97 void didLoseOutputSurface(); | 98 void didLoseOutputSurface(); |
| 98 enum RecreateResult { | 99 enum RecreateResult { |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 size_t m_partialTextureUpdateRequests; | 273 size_t m_partialTextureUpdateRequests; |
| 273 | 274 |
| 274 static bool s_needsFilterContext; | 275 static bool s_needsFilterContext; |
| 275 | 276 |
| 276 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 277 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 277 }; | 278 }; |
| 278 | 279 |
| 279 } // namespace cc | 280 } // namespace cc |
| 280 | 281 |
| 281 #endif // CC_LAYER_TREE_HOST_H_ | 282 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |