| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 LayerImpl* layer_impl, | 384 LayerImpl* layer_impl, |
| 385 float scale_from_viewport_to_screen_space, | 385 float scale_from_viewport_to_screen_space, |
| 386 gfx::PointF viewport_point, | 386 gfx::PointF viewport_point, |
| 387 gfx::Vector2dF viewport_delta); | 387 gfx::Vector2dF viewport_delta); |
| 388 | 388 |
| 389 void UpdateMaxScrollOffset(); | 389 void UpdateMaxScrollOffset(); |
| 390 void TrackDamageForAllSurfaces( | 390 void TrackDamageForAllSurfaces( |
| 391 LayerImpl* root_draw_layer, | 391 LayerImpl* root_draw_layer, |
| 392 const LayerImplList& render_surface_layer_list); | 392 const LayerImplList& render_surface_layer_list); |
| 393 | 393 |
| 394 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 395 |
| 394 // Returns false if the frame should not be displayed. This function should | 396 // Returns false if the frame should not be displayed. This function should |
| 395 // only be called from PrepareToDraw, as DidDrawAllLayers must be called | 397 // only be called from PrepareToDraw, as DidDrawAllLayers must be called |
| 396 // if this helper function is called. | 398 // if this helper function is called. |
| 397 bool CalculateRenderPasses(FrameData* frame); | 399 bool CalculateRenderPasses(FrameData* frame); |
| 398 | 400 |
| 399 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current); | 401 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current); |
| 400 void ClearRenderSurfaces(); | 402 void ClearRenderSurfaces(); |
| 401 bool EnsureRenderSurfaceLayerList(); | 403 bool EnsureRenderSurfaceLayerList(); |
| 402 void ClearCurrentlyScrollingLayer(); | 404 void ClearCurrentlyScrollingLayer(); |
| 403 | 405 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 scoped_ptr<AnimationRegistrar> animation_registrar_; | 476 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 475 | 477 |
| 476 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 478 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 477 | 479 |
| 478 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 480 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 479 }; | 481 }; |
| 480 | 482 |
| 481 } // namespace cc | 483 } // namespace cc |
| 482 | 484 |
| 483 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 485 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |