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

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

Issue 2099903002: Make tile size a function of the device scale factor. Base URL: https://chromium.googlesource.com/chromium/src.git@layouttests-display
Patch Set: Created 4 years, 6 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_SETTINGS_H_ 5 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_
6 #define CC_TREES_LAYER_TREE_SETTINGS_H_ 6 #define CC_TREES_LAYER_TREE_SETTINGS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int scrollbar_fade_duration_ms = 0; 64 int scrollbar_fade_duration_ms = 0;
65 SkColor solid_color_scrollbar_color = SK_ColorWHITE; 65 SkColor solid_color_scrollbar_color = SK_ColorWHITE;
66 bool timeout_and_draw_when_animation_checkerboards = true; 66 bool timeout_and_draw_when_animation_checkerboards = true;
67 bool layer_transforms_should_scale_layer_contents = false; 67 bool layer_transforms_should_scale_layer_contents = false;
68 bool layers_always_allowed_lcd_text = false; 68 bool layers_always_allowed_lcd_text = false;
69 float minimum_contents_scale = 0.0625f; 69 float minimum_contents_scale = 0.0625f;
70 float low_res_contents_scale_factor = 0.25f; 70 float low_res_contents_scale_factor = 0.25f;
71 float top_controls_show_threshold = 0.5f; 71 float top_controls_show_threshold = 0.5f;
72 float top_controls_hide_threshold = 0.5f; 72 float top_controls_hide_threshold = 0.5f;
73 double background_animation_rate = 1.0; 73 double background_animation_rate = 1.0;
74 gfx::Size default_tile_size; 74 bool use_viewport_for_tile_size = false;
75 gfx::Size max_untiled_layer_size;
76 gfx::Size minimum_occlusion_tracking_size; 75 gfx::Size minimum_occlusion_tracking_size;
77 // 3000 pixels should give sufficient area for prepainting. 76 // 3000 pixels should give sufficient area for prepainting.
78 // Note this value is specified with an ideal contents scale in mind. That 77 // Note this value is specified with an ideal contents scale in mind. That
79 // is, the ideal tiling would use this value as the padding. 78 // is, the ideal tiling would use this value as the padding.
80 // TODO(vmpstr): Figure out a better number that doesn't depend on scale. 79 // TODO(vmpstr): Figure out a better number that doesn't depend on scale.
81 int tiling_interest_area_padding = 3000; 80 int tiling_interest_area_padding = 3000;
82 float skewport_target_time_in_seconds = 1.0f; 81 float skewport_target_time_in_seconds = 1.0f;
83 int skewport_extrapolation_limit_in_screen_pixels = 2000; 82 int skewport_extrapolation_limit_in_screen_pixels = 2000;
84 size_t max_memory_for_prepaint_percentage = 100; 83 size_t max_memory_for_prepaint_percentage = 100;
85 bool use_zero_copy = false; 84 bool use_zero_copy = false;
(...skipping 18 matching lines...) Expand all
104 // If set to true, the display item list will internally cache a SkPicture for 103 // If set to true, the display item list will internally cache a SkPicture for
105 // raster rather than directly using the display items. 104 // raster rather than directly using the display items.
106 bool use_cached_picture_raster = true; 105 bool use_cached_picture_raster = true;
107 106
108 LayerTreeDebugState initial_debug_state; 107 LayerTreeDebugState initial_debug_state;
109 }; 108 };
110 109
111 } // namespace cc 110 } // namespace cc
112 111
113 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ 112 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698