| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "CCAnimationEvents.h" | 10 #include "CCAnimationEvents.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 bool initializeRenderer(scoped_ptr<CCGraphicsContext>); | 117 bool initializeRenderer(scoped_ptr<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(scoped_ptr<CCLayerImpl>); |
| 127 CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); } | 127 CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); } |
| 128 | 128 |
| 129 void setHudLayer(CCHeadsUpDisplayLayerImpl* layerImpl) { m_hudLayerImpl = la
yerImpl; } | 129 void setHudLayer(CCHeadsUpDisplayLayerImpl* layerImpl) { m_hudLayerImpl = la
yerImpl; } |
| 130 CCHeadsUpDisplayLayerImpl* hudLayer() { return m_hudLayerImpl; } | 130 CCHeadsUpDisplayLayerImpl* hudLayer() { return m_hudLayerImpl; } |
| 131 | 131 |
| 132 // Release ownership of the current layer tree and replace it with an empty | 132 // Release ownership of the current layer tree and replace it with an empty |
| 133 // tree. Returns the root layer of the detached tree. | 133 // tree. Returns the root layer of the detached tree. |
| 134 PassOwnPtr<CCLayerImpl> detachLayerTree(); | 134 scoped_ptr<CCLayerImpl> detachLayerTree(); |
| 135 | 135 |
| 136 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; } | 136 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; } |
| 137 | 137 |
| 138 bool visible() const { return m_visible; } | 138 bool visible() const { return m_visible; } |
| 139 void setVisible(bool); | 139 void setVisible(bool); |
| 140 | 140 |
| 141 int sourceFrameNumber() const { return m_sourceFrameNumber; } | 141 int sourceFrameNumber() const { return m_sourceFrameNumber; } |
| 142 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb
er; } | 142 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb
er; } |
| 143 | 143 |
| 144 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; } | 144 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 bool ensureRenderSurfaceLayerList(); | 246 bool ensureRenderSurfaceLayerList(); |
| 247 void clearCurrentlyScrollingLayer(); | 247 void clearCurrentlyScrollingLayer(); |
| 248 | 248 |
| 249 void animateScrollbarsRecursive(CCLayerImpl*, double monotonicTime); | 249 void animateScrollbarsRecursive(CCLayerImpl*, double monotonicTime); |
| 250 | 250 |
| 251 void dumpRenderSurfaces(std::string*, int indent, const CCLayerImpl*) const; | 251 void dumpRenderSurfaces(std::string*, int indent, const CCLayerImpl*) const; |
| 252 | 252 |
| 253 scoped_ptr<CCGraphicsContext> m_context; | 253 scoped_ptr<CCGraphicsContext> m_context; |
| 254 OwnPtr<CCResourceProvider> m_resourceProvider; | 254 OwnPtr<CCResourceProvider> m_resourceProvider; |
| 255 OwnPtr<CCRenderer> m_renderer; | 255 OwnPtr<CCRenderer> m_renderer; |
| 256 OwnPtr<CCLayerImpl> m_rootLayerImpl; | 256 scoped_ptr<CCLayerImpl> m_rootLayerImpl; |
| 257 CCLayerImpl* m_rootScrollLayerImpl; | 257 CCLayerImpl* m_rootScrollLayerImpl; |
| 258 CCLayerImpl* m_currentlyScrollingLayerImpl; | 258 CCLayerImpl* m_currentlyScrollingLayerImpl; |
| 259 CCHeadsUpDisplayLayerImpl* m_hudLayerImpl; | 259 CCHeadsUpDisplayLayerImpl* m_hudLayerImpl; |
| 260 int m_scrollingLayerIdFromPreviousTree; | 260 int m_scrollingLayerIdFromPreviousTree; |
| 261 bool m_scrollDeltaIsInScreenSpace; | 261 bool m_scrollDeltaIsInScreenSpace; |
| 262 CCLayerTreeSettings m_settings; | 262 CCLayerTreeSettings m_settings; |
| 263 IntSize m_layoutViewportSize; | 263 IntSize m_layoutViewportSize; |
| 264 IntSize m_deviceViewportSize; | 264 IntSize m_deviceViewportSize; |
| 265 float m_deviceScaleFactor; | 265 float m_deviceScaleFactor; |
| 266 bool m_visible; | 266 bool m_visible; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 296 | 296 |
| 297 size_t m_numImplThreadScrolls; | 297 size_t m_numImplThreadScrolls; |
| 298 size_t m_numMainThreadScrolls; | 298 size_t m_numMainThreadScrolls; |
| 299 | 299 |
| 300 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); | 300 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 #endif | 305 #endif |
| OLD | NEW |