OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "cc/trees/layer_tree_settings.h" | 5 #include "cc/trees/layer_tree_settings.h" |
6 | 6 |
7 #include "cc/proto/layer_tree_settings.pb.h" | 7 #include "cc/proto/layer_tree_settings.pb.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 !settings.timeout_and_draw_when_animation_checkerboards; | 57 !settings.timeout_and_draw_when_animation_checkerboards; |
58 settings.layer_transforms_should_scale_layer_contents = | 58 settings.layer_transforms_should_scale_layer_contents = |
59 !settings.layer_transforms_should_scale_layer_contents; | 59 !settings.layer_transforms_should_scale_layer_contents; |
60 settings.layers_always_allowed_lcd_text = | 60 settings.layers_always_allowed_lcd_text = |
61 !settings.layers_always_allowed_lcd_text; | 61 !settings.layers_always_allowed_lcd_text; |
62 settings.minimum_contents_scale = 0.42f; | 62 settings.minimum_contents_scale = 0.42f; |
63 settings.low_res_contents_scale_factor = 0.43f; | 63 settings.low_res_contents_scale_factor = 0.43f; |
64 settings.top_controls_show_threshold = 0.44f; | 64 settings.top_controls_show_threshold = 0.44f; |
65 settings.top_controls_hide_threshold = 0.45f; | 65 settings.top_controls_hide_threshold = 0.45f; |
66 settings.background_animation_rate = 0.46f; | 66 settings.background_animation_rate = 0.46f; |
67 settings.default_tile_size = gfx::Size(47, 48); | 67 settings.use_viewport_for_tile_size = !settings.use_viewport_for_tile_size; |
68 settings.max_untiled_layer_size = gfx::Size(49, 50); | |
69 settings.minimum_occlusion_tracking_size = gfx::Size(51, 52); | 68 settings.minimum_occlusion_tracking_size = gfx::Size(51, 52); |
70 settings.tiling_interest_area_padding = | 69 settings.tiling_interest_area_padding = |
71 settings.tiling_interest_area_padding * 3 + 1; | 70 settings.tiling_interest_area_padding * 3 + 1; |
72 settings.skewport_target_time_in_seconds = 0.53f; | 71 settings.skewport_target_time_in_seconds = 0.53f; |
73 settings.skewport_extrapolation_limit_in_screen_pixels = | 72 settings.skewport_extrapolation_limit_in_screen_pixels = |
74 settings.skewport_extrapolation_limit_in_screen_pixels * 3 + 1; | 73 settings.skewport_extrapolation_limit_in_screen_pixels * 3 + 1; |
75 settings.max_memory_for_prepaint_percentage = | 74 settings.max_memory_for_prepaint_percentage = |
76 settings.max_memory_for_prepaint_percentage * 3 + 1; | 75 settings.max_memory_for_prepaint_percentage * 3 + 1; |
77 settings.use_zero_copy = !settings.use_zero_copy; | 76 settings.use_zero_copy = !settings.use_zero_copy; |
78 settings.use_partial_raster = !settings.use_partial_raster; | 77 settings.use_partial_raster = !settings.use_partial_raster; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 settings.scrollbar_fade_duration_ms = 23; | 117 settings.scrollbar_fade_duration_ms = 23; |
119 settings.solid_color_scrollbar_color = SK_ColorCYAN; | 118 settings.solid_color_scrollbar_color = SK_ColorCYAN; |
120 settings.timeout_and_draw_when_animation_checkerboards = true; | 119 settings.timeout_and_draw_when_animation_checkerboards = true; |
121 settings.layer_transforms_should_scale_layer_contents = true; | 120 settings.layer_transforms_should_scale_layer_contents = true; |
122 settings.layers_always_allowed_lcd_text = true; | 121 settings.layers_always_allowed_lcd_text = true; |
123 settings.minimum_contents_scale = 0.314f; | 122 settings.minimum_contents_scale = 0.314f; |
124 settings.low_res_contents_scale_factor = 0.49f; | 123 settings.low_res_contents_scale_factor = 0.49f; |
125 settings.top_controls_hide_threshold = 0.666f; | 124 settings.top_controls_hide_threshold = 0.666f; |
126 settings.top_controls_hide_threshold = 0.51f; | 125 settings.top_controls_hide_threshold = 0.51f; |
127 settings.background_animation_rate = 0.52f; | 126 settings.background_animation_rate = 0.52f; |
128 settings.default_tile_size = gfx::Size(53, 54); | 127 settings.use_viewport_for_tile_size = true; |
129 settings.max_untiled_layer_size = gfx::Size(55, 56); | |
130 settings.minimum_occlusion_tracking_size = gfx::Size(57, 58); | 128 settings.minimum_occlusion_tracking_size = gfx::Size(57, 58); |
131 settings.tiling_interest_area_padding = 59; | 129 settings.tiling_interest_area_padding = 59; |
132 settings.skewport_target_time_in_seconds = 0.6f; | 130 settings.skewport_target_time_in_seconds = 0.6f; |
133 settings.skewport_extrapolation_limit_in_screen_pixels = 61; | 131 settings.skewport_extrapolation_limit_in_screen_pixels = 61; |
134 settings.max_memory_for_prepaint_percentage = 62; | 132 settings.max_memory_for_prepaint_percentage = 62; |
135 settings.use_zero_copy = true; | 133 settings.use_zero_copy = true; |
136 settings.use_partial_raster = true; | 134 settings.use_partial_raster = true; |
137 settings.enable_elastic_overscroll = false; | 135 settings.enable_elastic_overscroll = false; |
138 settings.use_image_texture_targets.push_back(10); | 136 settings.use_image_texture_targets.push_back(10); |
139 settings.use_image_texture_targets.push_back(19); | 137 settings.use_image_texture_targets.push_back(19); |
140 settings.ignore_root_layer_flings = true; | 138 settings.ignore_root_layer_flings = true; |
141 settings.scheduled_raster_task_limit = 41; | 139 settings.scheduled_raster_task_limit = 41; |
142 settings.use_occlusion_for_tile_prioritization = true; | 140 settings.use_occlusion_for_tile_prioritization = true; |
143 settings.wait_for_beginframe_interval = true; | 141 settings.wait_for_beginframe_interval = true; |
144 settings.max_staging_buffer_usage_in_bytes = 70; | 142 settings.max_staging_buffer_usage_in_bytes = 70; |
145 settings.memory_policy_ = ManagedMemoryPolicy( | 143 settings.memory_policy_ = ManagedMemoryPolicy( |
146 71, gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE, 77); | 144 71, gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE, 77); |
147 LayerTreeDebugState debug_state; | 145 LayerTreeDebugState debug_state; |
148 debug_state.show_fps_counter = true; | 146 debug_state.show_fps_counter = true; |
149 settings.initial_debug_state = debug_state; | 147 settings.initial_debug_state = debug_state; |
150 VerifySerializeAndDeserialize(settings); | 148 VerifySerializeAndDeserialize(settings); |
151 } | 149 } |
152 | 150 |
153 } // namespace | 151 } // namespace |
154 } // namespace cc | 152 } // namespace cc |
OLD | NEW |