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

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

Issue 15579002: Implement transform/clip support for Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GL support and clean up 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
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 21 matching lines...) Expand all
32 float device_scale_factor, 32 float device_scale_factor,
33 float page_scale_factor, 33 float page_scale_factor,
34 Layer* page_scale_application_layer, 34 Layer* page_scale_application_layer,
35 int max_texture_size, 35 int max_texture_size,
36 bool can_use_lcd_text, 36 bool can_use_lcd_text,
37 bool can_adjust_raster_scales, 37 bool can_adjust_raster_scales,
38 LayerList* render_surface_layer_list); 38 LayerList* render_surface_layer_list);
39 static void CalculateDrawProperties( 39 static void CalculateDrawProperties(
40 LayerImpl* root_layer, 40 LayerImpl* root_layer,
41 gfx::Size device_viewport_size, 41 gfx::Size device_viewport_size,
42 const gfx::Transform& device_transform,
42 float device_scale_factor, 43 float device_scale_factor,
43 float page_scale_factor, 44 float page_scale_factor,
44 LayerImpl* page_scale_application_layer, 45 LayerImpl* page_scale_application_layer,
45 int max_texture_size, 46 int max_texture_size,
46 bool can_use_lcd_text, 47 bool can_use_lcd_text,
47 bool can_adjust_raster_scales, 48 bool can_adjust_raster_scales,
48 LayerImplList* render_surface_layer_list); 49 LayerImplList* render_surface_layer_list);
49 50
50 // Performs hit testing for a given render_surface_layer_list. 51 // Performs hit testing for a given render_surface_layer_list.
51 static LayerImpl* FindLayerThatIsHitByPoint( 52 static LayerImpl* FindLayerThatIsHitByPoint(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 for (size_t i = 0; i < root_layer->children().size(); ++i) { 149 for (size_t i = 0; i < root_layer->children().size(); ++i) {
149 CallFunctionForSubtree<Function>( 150 CallFunctionForSubtree<Function>(
150 get_child_as_raw_ptr(root_layer->children(), i)); 151 get_child_as_raw_ptr(root_layer->children(), i));
151 } 152 }
152 } 153 }
153 154
154 } // namespace cc 155 } // namespace cc
155 156
156 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 157 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698