blob: 2702d7a9a27458479abe72c508265e3210f57545 [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
dongseong.hwang72183b02014-12-08 10:41:557#include <GLES2/gl2.h>
[email protected]ff762fb2012-12-12 19:18:378#include <limits>
9
10#include "base/command_line.h"
11#include "base/logging.h"
[email protected]8e61d4b2013-06-10 22:11:4812#include "base/strings/string_number_conversions.h"
[email protected]ff762fb2012-12-12 19:18:3713
14namespace cc {
15
16LayerTreeSettings::LayerTreeSettings()
[email protected]36e5ff12013-06-11 12:19:2917 : impl_side_painting(false),
[email protected]c8cbae72013-05-23 10:45:0318 throttle_frame_production(true),
[email protected]aeeedad2014-08-22 18:16:2219 single_thread_proxy_scheduler(true),
simonhong2880b8e2014-11-11 23:25:3620 use_external_begin_frame_source(false),
21 forward_begin_frames_to_children(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),
[email protected]8e0176d2013-03-21 03:14:5227 accelerated_animation_enabled(true),
[email protected]8e0176d2013-03-21 03:14:5228 can_use_lcd_text(true),
hendrikwcb143682014-09-25 18:03:0129 use_distance_field_text(false),
[email protected]7e03a262014-05-01 20:26:2430 gpu_rasterization_enabled(false),
31 gpu_rasterization_forced(false),
senorblancob60ba952015-01-27 19:12:3632 gpu_rasterization_msaa_sample_count(0),
danakj07551552014-09-11 19:59:2733 create_low_res_tiling(false),
[email protected]fea161872013-08-27 22:34:5934 scrollbar_animator(NoAnimator),
[email protected]930ff43b2014-05-02 05:24:0035 scrollbar_fade_delay_ms(0),
sataya.m07f11a82014-10-07 14:29:1836 scrollbar_fade_resize_delay_ms(0),
[email protected]930ff43b2014-05-02 05:24:0037 scrollbar_fade_duration_ms(0),
[email protected]8e0176d2013-03-21 03:14:5238 solid_color_scrollbar_color(SK_ColorWHITE),
[email protected]8e0176d2013-03-21 03:14:5239 calculate_top_controls_position(false),
[email protected]545dd7212013-04-09 04:37:3540 timeout_and_draw_when_animation_checkerboards(true),
[email protected]63e618952013-09-07 01:47:2941 maximum_number_of_failed_draws_before_draw_is_forced_(3),
[email protected]35a99a12013-05-09 23:52:2942 layer_transforms_should_scale_layer_contents(false),
danakj3f76ace2014-11-18 16:56:0043 layers_always_allowed_lcd_text(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_show_threshold(0.5f),
47 top_controls_hide_threshold(0.5f),
mithro719bf6792014-11-10 15:36:4748 background_animation_rate(1.0),
[email protected]8e0176d2013-03-21 03:14:5249 max_partial_texture_updates(std::numeric_limits<size_t>::max()),
[email protected]8e0176d2013-03-21 03:14:5250 default_tile_size(gfx::Size(256, 256)),
51 max_untiled_layer_size(gfx::Size(512, 512)),
epenner20650a52014-10-21 04:28:0652 default_tile_grid_size(gfx::Size(256, 256)),
[email protected]8e0176d2013-03-21 03:14:5253 minimum_occlusion_tracking_size(gfx::Size(160, 160)),
[email protected]d616de012013-03-28 07:19:1054 use_pinch_zoom_scrollbars(false),
[email protected]58795922013-05-20 05:19:5055 use_pinch_virtual_viewport(false),
[email protected]d616de012013-03-28 07:19:1056 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels.
[email protected]41124c52013-03-28 23:26:5757 max_tiles_for_interest_area(128),
vmpstrabd4d0ce32014-12-09 20:24:3858 skewport_target_time_in_seconds(1.0f),
[email protected]42f14bf2014-02-13 16:55:4259 skewport_extrapolation_limit_in_content_pixels(2000),
[email protected]075d8aa2013-04-01 23:03:1160 max_unused_resource_memory_percentage(100),
[email protected]25489c02014-02-13 23:18:4161 max_memory_for_prepaint_percentage(100),
[email protected]6123930c2013-05-23 06:48:3762 strict_layer_property_change_checking(false),
[email protected]2cccfef2014-05-01 06:05:1663 use_one_copy(false),
64 use_zero_copy(false),
ccamerona7644752014-12-30 01:16:3165 enable_elastic_overscroll(false),
dongseong.hwang72183b02014-12-08 10:41:5566 use_image_texture_target(GL_TEXTURE_2D),
[email protected]27a41fe2013-09-19 05:05:1467 ignore_root_layer_flings(false),
enne06a2caf2014-10-23 20:34:2668 scheduled_raster_task_limit(32),
[email protected]8a592802014-07-02 07:31:3369 use_occlusion_for_tile_prioritization(false),
ajuma5e77f7d42014-11-27 14:19:1470 record_full_layer(false),
vollick51ed1a22014-12-17 02:03:0071 use_display_lists(false),
72 verify_property_trees(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