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

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

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: in_seconds Created 7 years, 8 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
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_COMMON_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 23 matching lines...) Expand all
34 int max_texture_size, 34 int max_texture_size,
35 bool can_use_lcd_text, 35 bool can_use_lcd_text,
36 LayerList* render_surface_layer_list); 36 LayerList* render_surface_layer_list);
37 static void CalculateDrawProperties( 37 static void CalculateDrawProperties(
38 LayerImpl* root_layer, 38 LayerImpl* root_layer,
39 gfx::Size device_viewport_size, 39 gfx::Size device_viewport_size,
40 float device_scale_factor, 40 float device_scale_factor,
41 float page_scale_factor, 41 float page_scale_factor,
42 int max_texture_size, 42 int max_texture_size,
43 bool can_use_lcd_text, 43 bool can_use_lcd_text,
44 LayerImplList* render_surface_layer_list, 44 LayerImplList* render_surface_layer_list);
45 bool update_tile_priorities);
46 45
47 // Performs hit testing for a given render_surface_layer_list. 46 // Performs hit testing for a given render_surface_layer_list.
48 static LayerImpl* FindLayerThatIsHitByPoint( 47 static LayerImpl* FindLayerThatIsHitByPoint(
49 gfx::PointF screen_space_point, 48 gfx::PointF screen_space_point,
50 const LayerImplList& render_surface_layer_list); 49 const LayerImplList& render_surface_layer_list);
51 50
52 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 51 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
53 gfx::PointF screen_space_point, 52 gfx::PointF screen_space_point,
54 const LayerImplList& render_surface_layer_list); 53 const LayerImplList& render_surface_layer_list);
55 54
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 143
145 for (size_t i = 0; i < root_layer->children().size(); ++i) { 144 for (size_t i = 0; i < root_layer->children().size(); ++i) {
146 CallFunctionForSubtree<Function>( 145 CallFunctionForSubtree<Function>(
147 get_child_as_raw_ptr(root_layer->children(), i)); 146 get_child_as_raw_ptr(root_layer->children(), i));
148 } 147 }
149 } 148 }
150 149
151 } // namespace cc 150 } // namespace cc
152 151
153 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 152 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698