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_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; | 183 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter
valInSeconds) OVERRIDE; |
184 | 184 |
185 // LayerTreeImplClient implementation. | 185 // LayerTreeImplClient implementation. |
186 virtual void OnCanDrawStateChangedForTree(LayerTreeImpl*) OVERRIDE; | 186 virtual void OnCanDrawStateChangedForTree(LayerTreeImpl*) OVERRIDE; |
187 | 187 |
188 // Implementation | 188 // Implementation |
189 bool canDraw(); | 189 bool canDraw(); |
190 OutputSurface* outputSurface() const; | 190 OutputSurface* outputSurface() const; |
191 | 191 |
192 std::string layerTreeAsText() const; | 192 std::string layerTreeAsText() const; |
| 193 std::string layerTreeAsJson() const; |
193 | 194 |
194 void finishAllRendering(); | 195 void finishAllRendering(); |
195 int sourceAnimationFrameNumber() const; | 196 int sourceAnimationFrameNumber() const; |
196 | 197 |
197 bool initializeRenderer(scoped_ptr<OutputSurface>); | 198 bool initializeRenderer(scoped_ptr<OutputSurface>); |
198 bool isContextLost(); | 199 bool isContextLost(); |
199 TileManager* tileManager() { return m_tileManager.get(); } | 200 TileManager* tileManager() { return m_tileManager.get(); } |
200 Renderer* renderer() { return m_renderer.get(); } | 201 Renderer* renderer() { return m_renderer.get(); } |
201 const RendererCapabilities& rendererCapabilities() const; | 202 const RendererCapabilities& rendererCapabilities() const; |
202 | 203 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 #if !defined(NDEBUG) | 392 #if !defined(NDEBUG) |
392 AnimationControllerSet m_allAnimationControllers; | 393 AnimationControllerSet m_allAnimationControllers; |
393 #endif | 394 #endif |
394 | 395 |
395 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
396 }; | 397 }; |
397 | 398 |
398 } // namespace cc | 399 } // namespace cc |
399 | 400 |
400 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 401 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |