Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 14061028: cc: Set tile manager memory policy in initializeRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Explicit set to USING_RELEASABLE_MEMORY Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698