[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 | |
dongseong.hwang | 72183b0 | 2014-12-08 10:41:55 | [diff] [blame] | 7 | #include <GLES2/gl2.h> |
[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 8 | #include <limits> |
| 9 | |
| 10 | #include "base/command_line.h" |
| 11 | #include "base/logging.h" |
[email protected] | 8e61d4b | 2013-06-10 22:11:48 | [diff] [blame] | 12 | #include "base/strings/string_number_conversions.h" |
[email protected] | ff762fb | 2012-12-12 19:18:37 | [diff] [blame] | 13 | |
| 14 | namespace cc { |
| 15 | |
| 16 | LayerTreeSettings::LayerTreeSettings() |
[email protected] | 36e5ff1 | 2013-06-11 12:19:29 | [diff] [blame] | 17 | : impl_side_painting(false), |
[email protected] | c8cbae7 | 2013-05-23 10:45:03 | [diff] [blame] | 18 | throttle_frame_production(true), |
[email protected] | aeeedad | 2014-08-22 18:16:22 | [diff] [blame] | 19 | single_thread_proxy_scheduler(true), |
simonhong | 2880b8e | 2014-11-11 23:25:36 | [diff] [blame] | 20 | use_external_begin_frame_source(false), |
| 21 | forward_begin_frames_to_children(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), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 27 | accelerated_animation_enabled(true), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 28 | can_use_lcd_text(true), |
hendrikw | cb14368 | 2014-09-25 18:03:01 | [diff] [blame] | 29 | use_distance_field_text(false), |
[email protected] | 7e03a26 | 2014-05-01 20:26:24 | [diff] [blame] | 30 | gpu_rasterization_enabled(false), |
| 31 | gpu_rasterization_forced(false), |
senorblanco | b60ba95 | 2015-01-27 19:12:36 | [diff] [blame^] | 32 | gpu_rasterization_msaa_sample_count(0), |
danakj | 0755155 | 2014-09-11 19:59:27 | [diff] [blame] | 33 | create_low_res_tiling(false), |
[email protected] | fea16187 | 2013-08-27 22:34:59 | [diff] [blame] | 34 | scrollbar_animator(NoAnimator), |
[email protected] | 930ff43b | 2014-05-02 05:24:00 | [diff] [blame] | 35 | scrollbar_fade_delay_ms(0), |
sataya.m | 07f11a8 | 2014-10-07 14:29:18 | [diff] [blame] | 36 | scrollbar_fade_resize_delay_ms(0), |
[email protected] | 930ff43b | 2014-05-02 05:24:00 | [diff] [blame] | 37 | scrollbar_fade_duration_ms(0), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 38 | solid_color_scrollbar_color(SK_ColorWHITE), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 39 | calculate_top_controls_position(false), |
[email protected] | 545dd721 | 2013-04-09 04:37:35 | [diff] [blame] | 40 | timeout_and_draw_when_animation_checkerboards(true), |
[email protected] | 63e61895 | 2013-09-07 01:47:29 | [diff] [blame] | 41 | maximum_number_of_failed_draws_before_draw_is_forced_(3), |
[email protected] | 35a99a1 | 2013-05-09 23:52:29 | [diff] [blame] | 42 | layer_transforms_should_scale_layer_contents(false), |
danakj | 3f76ace | 2014-11-18 16:56:00 | [diff] [blame] | 43 | layers_always_allowed_lcd_text(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_show_threshold(0.5f), |
| 47 | top_controls_hide_threshold(0.5f), |
mithro | 719bf679 | 2014-11-10 15:36:47 | [diff] [blame] | 48 | background_animation_rate(1.0), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 49 | max_partial_texture_updates(std::numeric_limits<size_t>::max()), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 50 | default_tile_size(gfx::Size(256, 256)), |
| 51 | max_untiled_layer_size(gfx::Size(512, 512)), |
epenner | 20650a5 | 2014-10-21 04:28:06 | [diff] [blame] | 52 | default_tile_grid_size(gfx::Size(256, 256)), |
[email protected] | 8e0176d | 2013-03-21 03:14:52 | [diff] [blame] | 53 | minimum_occlusion_tracking_size(gfx::Size(160, 160)), |
[email protected] | d616de01 | 2013-03-28 07:19:10 | [diff] [blame] | 54 | use_pinch_zoom_scrollbars(false), |
[email protected] | 5879592 | 2013-05-20 05:19:50 | [diff] [blame] | 55 | use_pinch_virtual_viewport(false), |
[email protected] | d616de01 | 2013-03-28 07:19:10 | [diff] [blame] | 56 | // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels. |
[email protected] | 41124c5 | 2013-03-28 23:26:57 | [diff] [blame] | 57 | max_tiles_for_interest_area(128), |
vmpstr | abd4d0ce3 | 2014-12-09 20:24:38 | [diff] [blame] | 58 | skewport_target_time_in_seconds(1.0f), |
[email protected] | 42f14bf | 2014-02-13 16:55:42 | [diff] [blame] | 59 | skewport_extrapolation_limit_in_content_pixels(2000), |
[email protected] | 075d8aa | 2013-04-01 23:03:11 | [diff] [blame] | 60 | max_unused_resource_memory_percentage(100), |
[email protected] | 25489c0 | 2014-02-13 23:18:41 | [diff] [blame] | 61 | max_memory_for_prepaint_percentage(100), |
[email protected] | 6123930c | 2013-05-23 06:48:37 | [diff] [blame] | 62 | strict_layer_property_change_checking(false), |
[email protected] | 2cccfef | 2014-05-01 06:05:16 | [diff] [blame] | 63 | use_one_copy(false), |
| 64 | use_zero_copy(false), |
ccameron | a764475 | 2014-12-30 01:16:31 | [diff] [blame] | 65 | enable_elastic_overscroll(false), |
dongseong.hwang | 72183b0 | 2014-12-08 10:41:55 | [diff] [blame] | 66 | use_image_texture_target(GL_TEXTURE_2D), |
[email protected] | 27a41fe | 2013-09-19 05:05:14 | [diff] [blame] | 67 | ignore_root_layer_flings(false), |
enne | 06a2caf | 2014-10-23 20:34:26 | [diff] [blame] | 68 | scheduled_raster_task_limit(32), |
[email protected] | 8a59280 | 2014-07-02 07:31:33 | [diff] [blame] | 69 | use_occlusion_for_tile_prioritization(false), |
ajuma | 5e77f7d4 | 2014-11-27 14:19:14 | [diff] [blame] | 70 | record_full_layer(false), |
vollick | 51ed1a2 | 2014-12-17 02:03:00 | [diff] [blame] | 71 | use_display_lists(false), |
| 72 | verify_property_trees(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 |