Chromium Code Reviews| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 306 size_t renderPassListNext(size_t it) const { return it + 1; } | 306 size_t renderPassListNext(size_t it) const { return it + 1; } |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 template<typename RenderPassCuller> | 309 template<typename RenderPassCuller> |
| 310 static void removeRenderPasses(RenderPassCuller, FrameData&); | 310 static void removeRenderPasses(RenderPassCuller, FrameData&); |
| 311 | 311 |
| 312 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to talPageScaleFactor(); } | 312 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to talPageScaleFactor(); } |
| 313 | 313 |
| 314 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp ort; } | 314 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp ort; } |
| 315 | 315 |
| 316 scoped_refptr<PicturePileImpl> capturePicturePile(); | |
| 317 | |
| 316 protected: | 318 protected: |
| 317 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); | 319 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); |
| 318 void activatePendingTree(); | 320 void activatePendingTree(); |
| 319 | 321 |
| 320 // Virtual for testing. | 322 // Virtual for testing. |
| 321 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); | 323 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); |
| 322 | 324 |
| 323 // Virtual for testing. | 325 // Virtual for testing. |
| 324 virtual base::TimeDelta lowFrequencyAnimationInterval() const; | 326 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
| 325 | 327 |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 352 | 354 |
| 353 void sendDidLoseOutputSurfaceRecursive(LayerImpl*); | 355 void sendDidLoseOutputSurfaceRecursive(LayerImpl*); |
| 354 void clearRenderSurfaces(); | 356 void clearRenderSurfaces(); |
| 355 bool ensureRenderSurfaceLayerList(); | 357 bool ensureRenderSurfaceLayerList(); |
| 356 void clearCurrentlyScrollingLayer(); | 358 void clearCurrentlyScrollingLayer(); |
| 357 | 359 |
| 358 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); | 360 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); |
| 359 | 361 |
| 360 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; | 362 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; |
| 361 | 363 |
| 364 static LayerImpl* getNonCompositedContentRootLayerRecursive(LayerImpl* layer ); | |
|
danakj
2013/01/04 18:10:01
nit: "NonCompositedContentLayer" is enough, there'
Leandro GraciĆ” Gil
2013/01/04 20:40:15
Done.
| |
| 365 | |
| 362 scoped_ptr<OutputSurface> m_outputSurface; | 366 scoped_ptr<OutputSurface> m_outputSurface; |
| 363 scoped_ptr<ResourceProvider> m_resourceProvider; | 367 scoped_ptr<ResourceProvider> m_resourceProvider; |
| 364 scoped_ptr<Renderer> m_renderer; | 368 scoped_ptr<Renderer> m_renderer; |
| 365 scoped_ptr<TileManager> m_tileManager; | 369 scoped_ptr<TileManager> m_tileManager; |
| 366 | 370 |
| 367 scoped_ptr<LayerTreeImpl> m_pendingTree; | 371 scoped_ptr<LayerTreeImpl> m_pendingTree; |
| 368 scoped_ptr<LayerTreeImpl> m_activeTree; | 372 scoped_ptr<LayerTreeImpl> m_activeTree; |
| 369 | 373 |
| 370 bool m_scrollDeltaIsInViewportSpace; | 374 bool m_scrollDeltaIsInViewportSpace; |
| 371 LayerTreeSettings m_settings; | 375 LayerTreeSettings m_settings; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 size_t m_lastSentMemoryUseBytes; | 410 size_t m_lastSentMemoryUseBytes; |
| 407 | 411 |
| 408 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 412 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 409 | 413 |
| 410 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 414 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 411 }; | 415 }; |
| 412 | 416 |
| 413 } // namespace cc | 417 } // namespace cc |
| 414 | 418 |
| 415 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 419 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |