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

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: Add early-out and unit test 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
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 25 matching lines...) Expand all
36 bool can_use_lcd_text, 36 bool can_use_lcd_text,
37 LayerList* render_surface_layer_list); 37 LayerList* render_surface_layer_list);
38 static void CalculateDrawProperties( 38 static void CalculateDrawProperties(
39 LayerImpl* root_layer, 39 LayerImpl* root_layer,
40 gfx::Size device_viewport_size, 40 gfx::Size device_viewport_size,
41 float device_scale_factor, 41 float device_scale_factor,
42 float page_scale_factor, 42 float page_scale_factor,
43 LayerImpl* page_scale_application_layer, 43 LayerImpl* page_scale_application_layer,
44 int max_texture_size, 44 int max_texture_size,
45 bool can_use_lcd_text, 45 bool can_use_lcd_text,
46 LayerImplList* render_surface_layer_list, 46 LayerImplList* render_surface_layer_list);
47 bool update_tile_priorities);
48 47
49 // Performs hit testing for a given render_surface_layer_list. 48 // Performs hit testing for a given render_surface_layer_list.
50 static LayerImpl* FindLayerThatIsHitByPoint( 49 static LayerImpl* FindLayerThatIsHitByPoint(
51 gfx::PointF screen_space_point, 50 gfx::PointF screen_space_point,
52 const LayerImplList& render_surface_layer_list); 51 const LayerImplList& render_surface_layer_list);
53 52
54 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 53 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
55 gfx::PointF screen_space_point, 54 gfx::PointF screen_space_point,
56 const LayerImplList& render_surface_layer_list); 55 const LayerImplList& render_surface_layer_list);
57 56
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 145
147 for (size_t i = 0; i < root_layer->children().size(); ++i) { 146 for (size_t i = 0; i < root_layer->children().size(); ++i) {
148 CallFunctionForSubtree<Function>( 147 CallFunctionForSubtree<Function>(
149 get_child_as_raw_ptr(root_layer->children(), i)); 148 get_child_as_raw_ptr(root_layer->children(), i));
150 } 149 }
151 } 150 }
152 151
153 } // namespace cc 152 } // namespace cc
154 153
155 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 154 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698