blob: 1d5cf1bb2ebbc5976f4ebfe7dfd7e2b25b85a8ec [file] [log] [blame]
[email protected]ff762fb2012-12-12 19:18:371// 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]556fd292013-03-18 08:03:045#include "cc/trees/layer_tree_settings.h"
[email protected]ff762fb2012-12-12 19:18:376
7#include <limits>
8
9#include "base/command_line.h"
10#include "base/logging.h"
[email protected]8e61d4b2013-06-10 22:11:4811#include "base/strings/string_number_conversions.h"
[email protected]ff762fb2012-12-12 19:18:3712
13namespace cc {
14
15LayerTreeSettings::LayerTreeSettings()
[email protected]36e5ff12013-06-11 12:19:2916 : impl_side_painting(false),
[email protected]7205ba42013-07-22 22:53:5517 allow_antialiasing(true),
rosca7b73f832014-10-22 09:54:1218 force_antialiasing(false),
[email protected]c8cbae72013-05-23 10:45:0319 throttle_frame_production(true),
[email protected]aeeedad2014-08-22 18:16:2220 single_thread_proxy_scheduler(true),
[email protected]3dc0c772014-04-26 10:06:0521 begin_frame_scheduling_enabled(false),
[email protected]0c7a5612014-03-12 21:58:2222 main_frame_before_activation_enabled(false),
[email protected]c8cbae72013-05-23 10:45:0323 using_synchronous_renderer_compositor(false),
sunnyps340939792014-10-16 21:59:5824 disable_hi_res_timer_tasks_on_battery(false),
[email protected]e9eb23f2014-04-11 13:42:0325 report_overscroll_only_for_scrollable_axes(false),
[email protected]8e0176d2013-03-21 03:14:5226 per_tile_painting_enabled(false),
27 partial_swap_enabled(false),
[email protected]8e0176d2013-03-21 03:14:5228 accelerated_animation_enabled(true),
[email protected]8e0176d2013-03-21 03:14:5229 can_use_lcd_text(true),
hendrikwcb143682014-09-25 18:03:0130 use_distance_field_text(false),
[email protected]8e0176d2013-03-21 03:14:5231 should_clear_root_render_pass(true),
[email protected]7e03a262014-05-01 20:26:2432 gpu_rasterization_enabled(false),
33 gpu_rasterization_forced(false),
danakj07551552014-09-11 19:59:2734 create_low_res_tiling(false),
[email protected]fea161872013-08-27 22:34:5935 scrollbar_animator(NoAnimator),
[email protected]930ff43b2014-05-02 05:24:0036 scrollbar_fade_delay_ms(0),
sataya.m07f11a82014-10-07 14:29:1837 scrollbar_fade_resize_delay_ms(0),
[email protected]930ff43b2014-05-02 05:24:0038 scrollbar_fade_duration_ms(0),
[email protected]8e0176d2013-03-21 03:14:5239 solid_color_scrollbar_color(SK_ColorWHITE),
[email protected]8e0176d2013-03-21 03:14:5240 calculate_top_controls_position(false),
[email protected]545dd7212013-04-09 04:37:3541 timeout_and_draw_when_animation_checkerboards(true),
[email protected]63e618952013-09-07 01:47:2942 maximum_number_of_failed_draws_before_draw_is_forced_(3),
[email protected]35a99a12013-05-09 23:52:2943 layer_transforms_should_scale_layer_contents(false),
[email protected]8e0176d2013-03-21 03:14:5244 minimum_contents_scale(0.0625f),
[email protected]ce07b782013-10-02 00:54:5045 low_res_contents_scale_factor(0.25f),
[email protected]8e0176d2013-03-21 03:14:5246 top_controls_height(0.f),
47 top_controls_show_threshold(0.5f),
48 top_controls_hide_threshold(0.5f),
[email protected]7ddeaab2013-04-06 00:47:0549 refresh_rate(60.0),
[email protected]8e0176d2013-03-21 03:14:5250 max_partial_texture_updates(std::numeric_limits<size_t>::max()),
[email protected]8e0176d2013-03-21 03:14:5251 default_tile_size(gfx::Size(256, 256)),
52 max_untiled_layer_size(gfx::Size(512, 512)),
epenner20650a52014-10-21 04:28:0653 default_tile_grid_size(gfx::Size(256, 256)),
[email protected]8e0176d2013-03-21 03:14:5254 minimum_occlusion_tracking_size(gfx::Size(160, 160)),
[email protected]d616de012013-03-28 07:19:1055 use_pinch_zoom_scrollbars(false),
[email protected]58795922013-05-20 05:19:5056 use_pinch_virtual_viewport(false),
[email protected]d616de012013-03-28 07:19:1057 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels.
[email protected]41124c52013-03-28 23:26:5758 max_tiles_for_interest_area(128),
[email protected]c92195e2014-05-07 18:18:4959 skewport_target_time_multiplier(1.0f),
[email protected]42f14bf2014-02-13 16:55:4260 skewport_extrapolation_limit_in_content_pixels(2000),
[email protected]075d8aa2013-04-01 23:03:1161 max_unused_resource_memory_percentage(100),
[email protected]25489c02014-02-13 23:18:4162 max_memory_for_prepaint_percentage(100),
[email protected]445881f2013-04-16 01:11:5963 highp_threshold_min(0),
[email protected]6123930c2013-05-23 06:48:3764 strict_layer_property_change_checking(false),
[email protected]2cccfef2014-05-01 06:05:1665 use_one_copy(false),
66 use_zero_copy(false),
[email protected]27a41fe2013-09-19 05:05:1467 ignore_root_layer_flings(false),
[email protected]34d43432013-09-26 20:04:1068 use_rgba_4444_textures(false),
[email protected]562b7ad2014-06-23 22:17:1169 texture_id_allocation_chunk_size(64),
enne06a2caf2014-10-23 20:34:2670 scheduled_raster_task_limit(32),
[email protected]8a592802014-07-02 07:31:3371 use_occlusion_for_tile_prioritization(false),
72 record_full_layer(false) {
[email protected]3dc0c772014-04-26 10:06:0573}
[email protected]ff762fb2012-12-12 19:18:3774
[email protected]8e0176d2013-03-21 03:14:5275LayerTreeSettings::~LayerTreeSettings() {}
[email protected]ff762fb2012-12-12 19:18:3776
77} // namespace cc