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