blob: 56e18a23ca6481b2956da7c184c6109f2262be3f [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),
[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),
[email protected]3dc0c772014-04-26 10:06:0520 begin_frame_scheduling_enabled(false),
[email protected]0c7a5612014-03-12 21:58:2221 main_frame_before_draw_enabled(true),
22 main_frame_before_activation_enabled(false),
[email protected]c8cbae72013-05-23 10:45:0323 using_synchronous_renderer_compositor(false),
[email protected]e9eb23f2014-04-11 13:42:0324 report_overscroll_only_for_scrollable_axes(false),
[email protected]8e0176d2013-03-21 03:14:5225 per_tile_painting_enabled(false),
26 partial_swap_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),
29 should_clear_root_render_pass(true),
[email protected]7e03a262014-05-01 20:26:2430 gpu_rasterization_enabled(false),
31 gpu_rasterization_forced(false),
[email protected]8b023d82014-05-06 13:49:4632 recording_mode(RecordNormally),
[email protected]cf5e9892014-03-18 22:36:5533 create_low_res_tiling(true),
[email protected]fea161872013-08-27 22:34:5934 scrollbar_animator(NoAnimator),
[email protected]930ff43b2014-05-02 05:24:0035 scrollbar_fade_delay_ms(0),
36 scrollbar_fade_duration_ms(0),
[email protected]8e0176d2013-03-21 03:14:5237 solid_color_scrollbar_color(SK_ColorWHITE),
[email protected]8e0176d2013-03-21 03:14:5238 calculate_top_controls_position(false),
[email protected]545dd7212013-04-09 04:37:3539 timeout_and_draw_when_animation_checkerboards(true),
[email protected]63e618952013-09-07 01:47:2940 maximum_number_of_failed_draws_before_draw_is_forced_(3),
[email protected]35a99a12013-05-09 23:52:2941 layer_transforms_should_scale_layer_contents(false),
[email protected]8e0176d2013-03-21 03:14:5242 minimum_contents_scale(0.0625f),
[email protected]ce07b782013-10-02 00:54:5043 low_res_contents_scale_factor(0.25f),
[email protected]8e0176d2013-03-21 03:14:5244 top_controls_height(0.f),
45 top_controls_show_threshold(0.5f),
46 top_controls_hide_threshold(0.5f),
[email protected]7ddeaab2013-04-06 00:47:0547 refresh_rate(60.0),
[email protected]8e0176d2013-03-21 03:14:5248 max_partial_texture_updates(std::numeric_limits<size_t>::max()),
[email protected]8e0176d2013-03-21 03:14:5249 default_tile_size(gfx::Size(256, 256)),
50 max_untiled_layer_size(gfx::Size(512, 512)),
51 minimum_occlusion_tracking_size(gfx::Size(160, 160)),
[email protected]d616de012013-03-28 07:19:1052 use_pinch_zoom_scrollbars(false),
[email protected]58795922013-05-20 05:19:5053 use_pinch_virtual_viewport(false),
[email protected]d616de012013-03-28 07:19:1054 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels.
[email protected]41124c52013-03-28 23:26:5755 max_tiles_for_interest_area(128),
[email protected]c92195e2014-05-07 18:18:4956 skewport_target_time_multiplier(1.0f),
[email protected]42f14bf2014-02-13 16:55:4257 skewport_extrapolation_limit_in_content_pixels(2000),
[email protected]075d8aa2013-04-01 23:03:1158 max_unused_resource_memory_percentage(100),
[email protected]25489c02014-02-13 23:18:4159 max_memory_for_prepaint_percentage(100),
[email protected]445881f2013-04-16 01:11:5960 highp_threshold_min(0),
[email protected]6123930c2013-05-23 06:48:3761 strict_layer_property_change_checking(false),
[email protected]2cccfef2014-05-01 06:05:1662 use_one_copy(false),
63 use_zero_copy(false),
[email protected]27a41fe2013-09-19 05:05:1464 ignore_root_layer_flings(false),
[email protected]34d43432013-09-26 20:04:1065 use_rgba_4444_textures(false),
[email protected]562b7ad2014-06-23 22:17:1166 texture_id_allocation_chunk_size(64),
[email protected]8a592802014-07-02 07:31:3367 use_occlusion_for_tile_prioritization(false),
68 record_full_layer(false) {
[email protected]3dc0c772014-04-26 10:06:0569}
[email protected]ff762fb2012-12-12 19:18:3770
[email protected]8e0176d2013-03-21 03:14:5271LayerTreeSettings::~LayerTreeSettings() {}
[email protected]ff762fb2012-12-12 19:18:3772
73} // namespace cc