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 <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 LayerImpl* root_draw_layer, | 509 LayerImpl* root_draw_layer, |
510 const LayerImplList& render_surface_layer_list); | 510 const LayerImplList& render_surface_layer_list); |
511 | 511 |
512 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); | 512 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
513 | 513 |
514 // This function should only be called from PrepareToDraw, as DidDrawAllLayers | 514 // This function should only be called from PrepareToDraw, as DidDrawAllLayers |
515 // must be called if this helper function is called. Returns DRAW_SUCCESS if | 515 // must be called if this helper function is called. Returns DRAW_SUCCESS if |
516 // the frame should be drawn. | 516 // the frame should be drawn. |
517 DrawSwapReadbackResult::DrawResult CalculateRenderPasses(FrameData* frame); | 517 DrawSwapReadbackResult::DrawResult CalculateRenderPasses(FrameData* frame); |
518 | 518 |
519 void SendReleaseResourcesRecursive(LayerImpl* current); | |
520 bool EnsureRenderSurfaceLayerList(); | 519 bool EnsureRenderSurfaceLayerList(); |
521 void ClearCurrentlyScrollingLayer(); | 520 void ClearCurrentlyScrollingLayer(); |
522 | 521 |
523 bool HandleMouseOverScrollbar(LayerImpl* layer_impl, | 522 bool HandleMouseOverScrollbar(LayerImpl* layer_impl, |
524 const gfx::PointF& device_viewport_point); | 523 const gfx::PointF& device_viewport_point); |
525 | 524 |
526 void AnimateScrollbarsRecursive(LayerImpl* layer, | 525 void AnimateScrollbarsRecursive(LayerImpl* layer, |
527 base::TimeTicks time); | 526 base::TimeTicks time); |
528 | 527 |
529 LayerImpl* FindScrollLayerForDeviceViewportPoint( | 528 LayerImpl* FindScrollLayerForDeviceViewportPoint( |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 680 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
682 | 681 |
683 size_t transfer_buffer_memory_limit_; | 682 size_t transfer_buffer_memory_limit_; |
684 | 683 |
685 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 684 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
686 }; | 685 }; |
687 | 686 |
688 } // namespace cc | 687 } // namespace cc |
689 | 688 |
690 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 689 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |