| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |