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