| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 bool isContextLost(); | 197 bool isContextLost(); |
| 198 TileManager* tileManager() { return m_tileManager.get(); } | 198 TileManager* tileManager() { return m_tileManager.get(); } |
| 199 Renderer* renderer() { return m_renderer.get(); } | 199 Renderer* renderer() { return m_renderer.get(); } |
| 200 const RendererCapabilities& rendererCapabilities() const; | 200 const RendererCapabilities& rendererCapabilities() const; |
| 201 | 201 |
| 202 bool swapBuffers(); | 202 bool swapBuffers(); |
| 203 | 203 |
| 204 void readback(void* pixels, const gfx::Rect&); | 204 void readback(void* pixels, const gfx::Rect&); |
| 205 | 205 |
| 206 LayerTreeImpl* activeTree() { return m_activeTree.get(); } | 206 LayerTreeImpl* activeTree() { return m_activeTree.get(); } |
| 207 LayerTreeImpl* pendingTree() { return m_pendingTree.get(); } |
| 207 | 208 |
| 208 // TODO(nduca): Remove these in favor of LayerTreeImpl. | 209 // TODO(nduca): Remove these in favor of LayerTreeImpl. |
| 209 void setRootLayer(scoped_ptr<LayerImpl>); | 210 void setRootLayer(scoped_ptr<LayerImpl>); |
| 210 LayerImpl* rootLayer() const; | 211 LayerImpl* rootLayer() const; |
| 211 | 212 |
| 212 // Release ownership of the current layer tree and replace it with an empty | 213 // Release ownership of the current layer tree and replace it with an empty |
| 213 // tree. Returns the root layer of the detached tree. | 214 // tree. Returns the root layer of the detached tree. |
| 214 scoped_ptr<LayerImpl> detachLayerTree(); | 215 scoped_ptr<LayerImpl> detachLayerTree(); |
| 215 | 216 |
| 216 LayerImpl* rootScrollLayer() const; | 217 LayerImpl* rootScrollLayer() const; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 348 |
| 348 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); | 349 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); |
| 349 | 350 |
| 350 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; | 351 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; |
| 351 | 352 |
| 352 scoped_ptr<OutputSurface> m_outputSurface; | 353 scoped_ptr<OutputSurface> m_outputSurface; |
| 353 scoped_ptr<ResourceProvider> m_resourceProvider; | 354 scoped_ptr<ResourceProvider> m_resourceProvider; |
| 354 scoped_ptr<Renderer> m_renderer; | 355 scoped_ptr<Renderer> m_renderer; |
| 355 scoped_ptr<TileManager> m_tileManager; | 356 scoped_ptr<TileManager> m_tileManager; |
| 356 | 357 |
| 358 scoped_ptr<LayerTreeImpl> m_pendingTree; |
| 357 scoped_ptr<LayerTreeImpl> m_activeTree; | 359 scoped_ptr<LayerTreeImpl> m_activeTree; |
| 358 | 360 |
| 359 bool m_scrollDeltaIsInViewportSpace; | 361 bool m_scrollDeltaIsInViewportSpace; |
| 360 LayerTreeSettings m_settings; | 362 LayerTreeSettings m_settings; |
| 361 LayerTreeDebugState m_debugState; | 363 LayerTreeDebugState m_debugState; |
| 362 gfx::Size m_layoutViewportSize; | 364 gfx::Size m_layoutViewportSize; |
| 363 gfx::Size m_deviceViewportSize; | 365 gfx::Size m_deviceViewportSize; |
| 364 float m_deviceScaleFactor; | 366 float m_deviceScaleFactor; |
| 365 bool m_visible; | 367 bool m_visible; |
| 366 bool m_contentsTexturesPurged; | 368 bool m_contentsTexturesPurged; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 size_t m_lastSentMemoryVisibleBytes; | 401 size_t m_lastSentMemoryVisibleBytes; |
| 400 size_t m_lastSentMemoryVisibleAndNearbyBytes; | 402 size_t m_lastSentMemoryVisibleAndNearbyBytes; |
| 401 size_t m_lastSentMemoryUseBytes; | 403 size_t m_lastSentMemoryUseBytes; |
| 402 | 404 |
| 403 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 405 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 404 }; | 406 }; |
| 405 | 407 |
| 406 } // namespace cc | 408 } // namespace cc |
| 407 | 409 |
| 408 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 410 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |