| 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 CCLayerTreeHostImpl_h | 5 #ifndef CCLayerTreeHostImpl_h |
| 6 #define CCLayerTreeHostImpl_h | 6 #define CCLayerTreeHostImpl_h |
| 7 | 7 |
| 8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
| 9 #include "CCInputHandler.h" | 9 #include "CCInputHandler.h" |
| 10 #include "CCLayerSorter.h" | 10 #include "CCLayerSorter.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Implementation | 104 // Implementation |
| 105 bool canDraw(); | 105 bool canDraw(); |
| 106 CCGraphicsContext* context() const; | 106 CCGraphicsContext* context() const; |
| 107 | 107 |
| 108 std::string layerTreeAsText() const; | 108 std::string layerTreeAsText() const; |
| 109 | 109 |
| 110 void finishAllRendering(); | 110 void finishAllRendering(); |
| 111 int sourceAnimationFrameNumber() const; | 111 int sourceAnimationFrameNumber() const; |
| 112 | 112 |
| 113 bool initializeRenderer(PassOwnPtr<CCGraphicsContext>, TextureUploaderOption
); | 113 bool initializeRenderer(PassOwnPtr<CCGraphicsContext>); |
| 114 bool isContextLost(); | 114 bool isContextLost(); |
| 115 CCRenderer* renderer() { return m_renderer.get(); } | 115 CCRenderer* renderer() { return m_renderer.get(); } |
| 116 const RendererCapabilities& rendererCapabilities() const; | 116 const RendererCapabilities& rendererCapabilities() const; |
| 117 | 117 |
| 118 bool swapBuffers(); | 118 bool swapBuffers(); |
| 119 | 119 |
| 120 void readback(void* pixels, const IntRect&); | 120 void readback(void* pixels, const IntRect&); |
| 121 | 121 |
| 122 void setRootLayer(PassOwnPtr<CCLayerImpl>); | 122 void setRootLayer(PassOwnPtr<CCLayerImpl>); |
| 123 CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); } | 123 CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); } |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // rendering and input event hit testing. | 287 // rendering and input event hit testing. |
| 288 CCLayerList m_renderSurfaceLayerList; | 288 CCLayerList m_renderSurfaceLayerList; |
| 289 | 289 |
| 290 OwnPtr<CCFrameRateCounter> m_fpsCounter; | 290 OwnPtr<CCFrameRateCounter> m_fpsCounter; |
| 291 OwnPtr<CCDebugRectHistory> m_debugRectHistory; | 291 OwnPtr<CCDebugRectHistory> m_debugRectHistory; |
| 292 }; | 292 }; |
| 293 | 293 |
| 294 }; | 294 }; |
| 295 | 295 |
| 296 #endif | 296 #endif |
| OLD | NEW |