[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | 556fd29 | 2013-03-18 08:03:04 | [diff] [blame] | 5 | #include "cc/trees/layer_tree_settings.h" |
[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 6 | |
| 7 | #include <limits> |
| 8 | |
| 9 | #include "base/command_line.h" |
| 10 | #include "base/logging.h" |
[email protected] | 8e61d4b | 2013-06-10 22:11:48 | [diff] [blame] | 11 | #include "base/strings/string_number_conversions.h" |
[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 12 | |
| 13 | namespace cc { |
| 14 | |
| 15 | LayerTreeSettings::LayerTreeSettings() |
[email protected] | 36e5ff1 | 2013-06-11 12:19:29 | [diff] [blame] | 16 | : impl_side_painting(false), |
[email protected] | 7205ba4 | 2013-07-22 22:53:55 | [diff] [blame] | 17 | allow_antialiasing(true), |
rosca | 7b73f83 | 2014-10-22 09:54:12 | [diff] [blame] | 18 | force_antialiasing(false), |
[email protected] | c8cbae7 | 2013-05-23 10:45:03 | [diff] [blame] | 19 | throttle_frame_production(true), |
[email protected] | aeeedad | 2014-08-22 18:16:22 | [diff] [blame] | 20 | single_thread_proxy_scheduler(true), |
[email protected] | 3dc0c77 | 2014-04-26 10:06:05 | [diff] [blame] | 21 | begin_frame_scheduling_enabled(false), |
[email protected] | 0c7a561 | 2014-03-12 21:58:22 | [diff] [blame] | 22 | main_frame_before_activation_enabled(false), |
[email protected] | c8cbae7 | 2013-05-23 10:45:03 | [diff] [blame] | 23 | using_synchronous_renderer_compositor(false), |
sunnyps | 34093979 | 2014-10-16 21:59:58 | [diff] [blame] | 24 | disable_hi_res_timer_tasks_on_battery(false), |
[email protected] | e9eb23f | 2014-04-11 13:42:03 | [diff] [blame] | 25 | report_overscroll_only_for_scrollable_axes(false), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 26 | per_tile_painting_enabled(false), |
| 27 | partial_swap_enabled(false), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 28 | accelerated_animation_enabled(true), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 29 | can_use_lcd_text(true), |
hendrikw | cb14368 | 2014-09-25 18:03:01 | [diff] [blame] | 30 | use_distance_field_text(false), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 31 | should_clear_root_render_pass(true), |
[email protected] | 7e03a26 | 2014-05-01 20:26:24 | [diff] [blame] | 32 | gpu_rasterization_enabled(false), |
| 33 | gpu_rasterization_forced(false), |
danakj | 0755155 | 2014-09-11 19:59:27 | [diff] [blame] | 34 | create_low_res_tiling(false), |
[email protected] | fea16187 | 2013-08-27 22:34:59 | [diff] [blame] | 35 | scrollbar_animator(NoAnimator), |
[email protected] | 930ff43b | 2014-05-02 05:24:00 | [diff] [blame] | 36 | scrollbar_fade_delay_ms(0), |
sataya.m | 07f11a8 | 2014-10-07 14:29:18 | [diff] [blame] | 37 | scrollbar_fade_resize_delay_ms(0), |
[email protected] | 930ff43b | 2014-05-02 05:24:00 | [diff] [blame] | 38 | scrollbar_fade_duration_ms(0), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 39 | solid_color_scrollbar_color(SK_ColorWHITE), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 40 | calculate_top_controls_position(false), |
[email protected] | 545dd721 | 2013-04-09 04:37:35 | [diff] [blame] | 41 | timeout_and_draw_when_animation_checkerboards(true), |
[email protected] | 63e61895 | 2013-09-07 01:47:29 | [diff] [blame] | 42 | maximum_number_of_failed_draws_before_draw_is_forced_(3), |
[email protected] | 35a99a1 | 2013-05-09 23:52:29 | [diff] [blame] | 43 | layer_transforms_should_scale_layer_contents(false), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 44 | minimum_contents_scale(0.0625f), |
[email protected] | ce07b78 | 2013-10-02 00:54:50 | [diff] [blame] | 45 | low_res_contents_scale_factor(0.25f), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 46 | top_controls_height(0.f), |
| 47 | top_controls_show_threshold(0.5f), |
| 48 | top_controls_hide_threshold(0.5f), |
[email protected] | 7ddeaab | 2013-04-06 00:47:05 | [diff] [blame] | 49 | refresh_rate(60.0), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 50 | max_partial_texture_updates(std::numeric_limits<size_t>::max()), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 51 | default_tile_size(gfx::Size(256, 256)), |
| 52 | max_untiled_layer_size(gfx::Size(512, 512)), |
epenner | 20650a5 | 2014-10-21 04:28:06 | [diff] [blame] | 53 | default_tile_grid_size(gfx::Size(256, 256)), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 54 | minimum_occlusion_tracking_size(gfx::Size(160, 160)), |
[email protected] | d616de01 | 2013-03-28 07:19:10 | [diff] [blame] | 55 | use_pinch_zoom_scrollbars(false), |
[email protected] | 5879592 | 2013-05-20 05:19:50 | [diff] [blame] | 56 | use_pinch_virtual_viewport(false), |
[email protected] | d616de01 | 2013-03-28 07:19:10 | [diff] [blame] | 57 | // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels. |
[email protected] | 41124c5 | 2013-03-28 23:26:57 | [diff] [blame] | 58 | max_tiles_for_interest_area(128), |
[email protected] | c92195e | 2014-05-07 18:18:49 | [diff] [blame] | 59 | skewport_target_time_multiplier(1.0f), |
[email protected] | 42f14bf | 2014-02-13 16:55:42 | [diff] [blame] | 60 | skewport_extrapolation_limit_in_content_pixels(2000), |
[email protected] | 075d8aa | 2013-04-01 23:03:11 | [diff] [blame] | 61 | max_unused_resource_memory_percentage(100), |
[email protected] | 25489c0 | 2014-02-13 23:18:41 | [diff] [blame] | 62 | max_memory_for_prepaint_percentage(100), |
[email protected] | 445881f | 2013-04-16 01:11:59 | [diff] [blame] | 63 | highp_threshold_min(0), |
[email protected] | 6123930c | 2013-05-23 06:48:37 | [diff] [blame] | 64 | strict_layer_property_change_checking(false), |
[email protected] | 2cccfef | 2014-05-01 06:05:16 | [diff] [blame] | 65 | use_one_copy(false), |
| 66 | use_zero_copy(false), |
[email protected] | 27a41fe | 2013-09-19 05:05:14 | [diff] [blame] | 67 | ignore_root_layer_flings(false), |
[email protected] | 34d4343 | 2013-09-26 20:04:10 | [diff] [blame] | 68 | use_rgba_4444_textures(false), |
[email protected] | 562b7ad | 2014-06-23 22:17:11 | [diff] [blame] | 69 | texture_id_allocation_chunk_size(64), |
enne | 06a2caf | 2014-10-23 20:34:26 | [diff] [blame^] | 70 | scheduled_raster_task_limit(32), |
[email protected] | 8a59280 | 2014-07-02 07:31:33 | [diff] [blame] | 71 | use_occlusion_for_tile_prioritization(false), |
| 72 | record_full_layer(false) { |
[email protected] | 3dc0c77 | 2014-04-26 10:06:05 | [diff] [blame] | 73 | } |
[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 74 | |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 75 | LayerTreeSettings::~LayerTreeSettings() {} |
[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 76 | |
| 77 | } // namespace cc |