| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 void setPageScaleDelta(float); | 288 void setPageScaleDelta(float); |
| 289 void updateMaxScrollOffset(); | 289 void updateMaxScrollOffset(); |
| 290 void trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, const LayerList& re
nderSurfaceLayerList); | 290 void trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, const LayerList& re
nderSurfaceLayerList); |
| 291 | 291 |
| 292 // Returns false if the frame should not be displayed. This function should | 292 // Returns false if the frame should not be displayed. This function should |
| 293 // only be called from prepareToDraw, as didDrawAllLayers must be called | 293 // only be called from prepareToDraw, as didDrawAllLayers must be called |
| 294 // if this helper function is called. | 294 // if this helper function is called. |
| 295 bool calculateRenderPasses(FrameData&); | 295 bool calculateRenderPasses(FrameData&); |
| 296 void animateLayersRecursive(LayerImpl*, base::TimeTicks monotonicTime, base:
:Time wallClockTime, AnimationEventsVector*, bool& didAnimate, bool& needsAnimat
eLayers); | 296 void animateLayersRecursive(LayerImpl*, base::TimeTicks monotonicTime, base:
:Time wallClockTime, AnimationEventsVector*, bool& didAnimate, bool& needsAnimat
eLayers); |
| 297 void setBackgroundTickingEnabled(bool); | 297 void setBackgroundTickingEnabled(bool); |
| 298 gfx::Size contentSize() const; | |
| 299 | 298 |
| 300 void sendDidLoseOutputSurfaceRecursive(LayerImpl*); | 299 void sendDidLoseOutputSurfaceRecursive(LayerImpl*); |
| 301 void clearRenderSurfaces(); | 300 void clearRenderSurfaces(); |
| 302 bool ensureRenderSurfaceLayerList(); | 301 bool ensureRenderSurfaceLayerList(); |
| 303 void clearCurrentlyScrollingLayer(); | 302 void clearCurrentlyScrollingLayer(); |
| 304 | 303 |
| 305 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); | 304 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); |
| 306 | 305 |
| 307 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; | 306 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; |
| 308 | 307 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 size_t m_lastSentMemoryUseBytes; | 353 size_t m_lastSentMemoryUseBytes; |
| 355 | 354 |
| 356 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 355 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 357 | 356 |
| 358 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 357 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 359 }; | 358 }; |
| 360 | 359 |
| 361 } // namespace cc | 360 } // namespace cc |
| 362 | 361 |
| 363 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 362 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |