Adding binary files for platform_keys tests.
[chromium-blink-merge.git] / cc / trees / layer_tree_settings.cc
blobd3afbe20dceac538438ab4822cbf0fc8f2f11d7c
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.
5 #include "cc/trees/layer_tree_settings.h"
7 #include <GLES2/gl2.h>
8 #include <limits>
10 #include "base/command_line.h"
11 #include "base/logging.h"
12 #include "base/strings/string_number_conversions.h"
14 namespace cc {
16 LayerTreeSettings::LayerTreeSettings()
17 : impl_side_painting(false),
18 throttle_frame_production(true),
19 single_thread_proxy_scheduler(true),
20 use_external_begin_frame_source(false),
21 forward_begin_frames_to_children(false),
22 main_frame_before_activation_enabled(false),
23 using_synchronous_renderer_compositor(false),
24 disable_hi_res_timer_tasks_on_battery(false),
25 report_overscroll_only_for_scrollable_axes(false),
26 per_tile_painting_enabled(false),
27 accelerated_animation_enabled(true),
28 can_use_lcd_text(true),
29 use_distance_field_text(false),
30 gpu_rasterization_enabled(false),
31 gpu_rasterization_forced(false),
32 gpu_rasterization_msaa_sample_count(0),
33 gpu_rasterization_skewport_target_time_in_seconds(0.0f),
34 threaded_gpu_rasterization_enabled(false),
35 create_low_res_tiling(false),
36 scrollbar_animator(NoAnimator),
37 scrollbar_fade_delay_ms(0),
38 scrollbar_fade_resize_delay_ms(0),
39 scrollbar_fade_duration_ms(0),
40 scrollbar_show_scale_threshold(1.0f),
41 solid_color_scrollbar_color(SK_ColorWHITE),
42 calculate_top_controls_position(false),
43 timeout_and_draw_when_animation_checkerboards(true),
44 maximum_number_of_failed_draws_before_draw_is_forced_(3),
45 layer_transforms_should_scale_layer_contents(false),
46 layers_always_allowed_lcd_text(false),
47 minimum_contents_scale(0.0625f),
48 low_res_contents_scale_factor(0.25f),
49 top_controls_show_threshold(0.5f),
50 top_controls_hide_threshold(0.5f),
51 background_animation_rate(1.0),
52 max_partial_texture_updates(std::numeric_limits<size_t>::max()),
53 default_tile_size(gfx::Size(256, 256)),
54 max_untiled_layer_size(gfx::Size(512, 512)),
55 default_tile_grid_size(gfx::Size(256, 256)),
56 minimum_occlusion_tracking_size(gfx::Size(160, 160)),
57 use_pinch_zoom_scrollbars(false),
58 use_pinch_virtual_viewport(false),
59 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels.
60 max_tiles_for_interest_area(128),
61 skewport_target_time_in_seconds(1.0f),
62 skewport_extrapolation_limit_in_content_pixels(2000),
63 max_unused_resource_memory_percentage(100),
64 max_memory_for_prepaint_percentage(100),
65 strict_layer_property_change_checking(false),
66 use_one_copy(false),
67 use_zero_copy(false),
68 enable_elastic_overscroll(false),
69 use_image_texture_target(GL_TEXTURE_2D),
70 ignore_root_layer_flings(false),
71 scheduled_raster_task_limit(32),
72 use_occlusion_for_tile_prioritization(false),
73 record_full_layer(false),
74 use_display_lists(false),
75 verify_property_trees(false) {
78 LayerTreeSettings::~LayerTreeSettings() {}
80 } // namespace cc