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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Implementation | 108 // Implementation |
109 bool canDraw(); | 109 bool canDraw(); |
110 CCGraphicsContext* context() const; | 110 CCGraphicsContext* context() const; |
111 | 111 |
112 std::string layerTreeAsText() const; | 112 std::string layerTreeAsText() const; |
113 | 113 |
114 void finishAllRendering(); | 114 void finishAllRendering(); |
115 int sourceAnimationFrameNumber() const; | 115 int sourceAnimationFrameNumber() const; |
116 | 116 |
117 bool initializeRenderer(PassOwnPtr<CCGraphicsContext>, TextureUploaderOption
); | 117 bool initializeRenderer(PassOwnPtr<CCGraphicsContext>); |
118 bool isContextLost(); | 118 bool isContextLost(); |
119 CCRenderer* renderer() { return m_renderer.get(); } | 119 CCRenderer* renderer() { return m_renderer.get(); } |
120 const RendererCapabilities& rendererCapabilities() const; | 120 const RendererCapabilities& rendererCapabilities() const; |
121 | 121 |
122 bool swapBuffers(); | 122 bool swapBuffers(); |
123 | 123 |
124 void readback(void* pixels, const IntRect&); | 124 void readback(void* pixels, const IntRect&); |
125 | 125 |
126 void setRootLayer(PassOwnPtr<CCLayerImpl>); | 126 void setRootLayer(PassOwnPtr<CCLayerImpl>); |
127 CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); } | 127 CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 // rendering and input event hit testing. | 291 // rendering and input event hit testing. |
292 CCLayerList m_renderSurfaceLayerList; | 292 CCLayerList m_renderSurfaceLayerList; |
293 | 293 |
294 OwnPtr<CCFrameRateCounter> m_fpsCounter; | 294 OwnPtr<CCFrameRateCounter> m_fpsCounter; |
295 OwnPtr<CCDebugRectHistory> m_debugRectHistory; | 295 OwnPtr<CCDebugRectHistory> m_debugRectHistory; |
296 }; | 296 }; |
297 | 297 |
298 }; | 298 }; |
299 | 299 |
300 #endif | 300 #endif |
OLD | NEW |