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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 LayerImpl* layer_impl, | 388 LayerImpl* layer_impl, |
389 float scale_from_viewport_to_screen_space, | 389 float scale_from_viewport_to_screen_space, |
390 gfx::PointF viewport_point, | 390 gfx::PointF viewport_point, |
391 gfx::Vector2dF viewport_delta); | 391 gfx::Vector2dF viewport_delta); |
392 | 392 |
393 void UpdateMaxScrollOffset(); | 393 void UpdateMaxScrollOffset(); |
394 void TrackDamageForAllSurfaces( | 394 void TrackDamageForAllSurfaces( |
395 LayerImpl* root_draw_layer, | 395 LayerImpl* root_draw_layer, |
396 const LayerImplList& render_surface_layer_list); | 396 const LayerImplList& render_surface_layer_list); |
397 | 397 |
| 398 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 399 |
398 // Returns false if the frame should not be displayed. This function should | 400 // Returns false if the frame should not be displayed. This function should |
399 // only be called from PrepareToDraw, as DidDrawAllLayers must be called | 401 // only be called from PrepareToDraw, as DidDrawAllLayers must be called |
400 // if this helper function is called. | 402 // if this helper function is called. |
401 bool CalculateRenderPasses(FrameData* frame); | 403 bool CalculateRenderPasses(FrameData* frame); |
402 | 404 |
403 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current); | 405 void SendDidLoseOutputSurfaceRecursive(LayerImpl* current); |
404 void ClearRenderSurfaces(); | 406 void ClearRenderSurfaces(); |
405 bool EnsureRenderSurfaceLayerList(); | 407 bool EnsureRenderSurfaceLayerList(); |
406 void ClearCurrentlyScrollingLayer(); | 408 void ClearCurrentlyScrollingLayer(); |
407 | 409 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 scoped_ptr<AnimationRegistrar> animation_registrar_; | 484 scoped_ptr<AnimationRegistrar> animation_registrar_; |
483 | 485 |
484 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 486 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
485 | 487 |
486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
487 }; | 489 }; |
488 | 490 |
489 } // namespace cc | 491 } // namespace cc |
490 | 492 |
491 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 493 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |