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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 LayerImpl* root_draw_layer, | 412 LayerImpl* root_draw_layer, |
413 const LayerImplList& render_surface_layer_list); | 413 const LayerImplList& render_surface_layer_list); |
414 | 414 |
415 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); | 415 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
416 | 416 |
417 // Returns false if the frame should not be displayed. This function should | 417 // Returns false if the frame should not be displayed. This function should |
418 // only be called from PrepareToDraw, as DidDrawAllLayers must be called | 418 // only be called from PrepareToDraw, as DidDrawAllLayers must be called |
419 // if this helper function is called. | 419 // if this helper function is called. |
420 bool CalculateRenderPasses(FrameData* frame); | 420 bool CalculateRenderPasses(FrameData* frame); |
421 | 421 |
422 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current); | |
423 void ClearRenderSurfaces(); | 422 void ClearRenderSurfaces(); |
424 bool EnsureRenderSurfaceLayerList(); | 423 bool EnsureRenderSurfaceLayerList(); |
425 void ClearCurrentlyScrollingLayer(); | 424 void ClearCurrentlyScrollingLayer(); |
426 | 425 |
427 void AnimateScrollbarsRecursive(LayerImpl* layer, | 426 void AnimateScrollbarsRecursive(LayerImpl* layer, |
428 base::TimeTicks time); | 427 base::TimeTicks time); |
429 | 428 |
430 void DumpRenderSurfaces(std::string* str, | 429 void DumpRenderSurfaces(std::string* str, |
431 int indent, | 430 int indent, |
432 const LayerImpl* layer) const; | 431 const LayerImpl* layer) const; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 scoped_ptr<AnimationRegistrar> animation_registrar_; | 505 scoped_ptr<AnimationRegistrar> animation_registrar_; |
507 | 506 |
508 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 507 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
509 | 508 |
510 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 509 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
511 }; | 510 }; |
512 | 511 |
513 } // namespace cc | 512 } // namespace cc |
514 | 513 |
515 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 514 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |