Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(889)

Side by Side Diff: cc/trees/layer_tree_settings.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_settings.h" 5 #include "cc/trees/layer_tree_settings.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 LayerTreeSettings::LayerTreeSettings() 15 LayerTreeSettings::LayerTreeSettings()
16 : impl_side_painting(false), 16 : impl_side_painting(false),
17 allow_antialiasing(true), 17 allow_antialiasing(true),
18 force_antialiasing(false), 18 force_antialiasing(false),
19 force_blending_with_shaders(false),
19 throttle_frame_production(true), 20 throttle_frame_production(true),
20 single_thread_proxy_scheduler(true), 21 single_thread_proxy_scheduler(true),
21 begin_frame_scheduling_enabled(false), 22 use_external_begin_frame_source(false),
23 forward_begin_frames_to_children(false),
22 main_frame_before_activation_enabled(false), 24 main_frame_before_activation_enabled(false),
23 using_synchronous_renderer_compositor(false), 25 using_synchronous_renderer_compositor(false),
24 disable_hi_res_timer_tasks_on_battery(false), 26 disable_hi_res_timer_tasks_on_battery(false),
25 report_overscroll_only_for_scrollable_axes(false), 27 report_overscroll_only_for_scrollable_axes(false),
26 per_tile_painting_enabled(false), 28 per_tile_painting_enabled(false),
27 partial_swap_enabled(false), 29 partial_swap_enabled(false),
28 accelerated_animation_enabled(true), 30 accelerated_animation_enabled(true),
29 can_use_lcd_text(true), 31 can_use_lcd_text(true),
30 use_distance_field_text(false), 32 use_distance_field_text(false),
31 should_clear_root_render_pass(true), 33 should_clear_root_render_pass(true),
32 gpu_rasterization_enabled(false), 34 gpu_rasterization_enabled(false),
33 gpu_rasterization_forced(false), 35 gpu_rasterization_forced(false),
34 create_low_res_tiling(false), 36 create_low_res_tiling(false),
35 scrollbar_animator(NoAnimator), 37 scrollbar_animator(NoAnimator),
36 scrollbar_fade_delay_ms(0), 38 scrollbar_fade_delay_ms(0),
37 scrollbar_fade_resize_delay_ms(0), 39 scrollbar_fade_resize_delay_ms(0),
38 scrollbar_fade_duration_ms(0), 40 scrollbar_fade_duration_ms(0),
39 solid_color_scrollbar_color(SK_ColorWHITE), 41 solid_color_scrollbar_color(SK_ColorWHITE),
40 calculate_top_controls_position(false), 42 calculate_top_controls_position(false),
41 timeout_and_draw_when_animation_checkerboards(true), 43 timeout_and_draw_when_animation_checkerboards(true),
42 maximum_number_of_failed_draws_before_draw_is_forced_(3), 44 maximum_number_of_failed_draws_before_draw_is_forced_(3),
43 layer_transforms_should_scale_layer_contents(false), 45 layer_transforms_should_scale_layer_contents(false),
44 minimum_contents_scale(0.0625f), 46 minimum_contents_scale(0.0625f),
45 low_res_contents_scale_factor(0.25f), 47 low_res_contents_scale_factor(0.25f),
46 top_controls_height(0.f), 48 top_controls_height(0.f),
47 top_controls_show_threshold(0.5f), 49 top_controls_show_threshold(0.5f),
48 top_controls_hide_threshold(0.5f), 50 top_controls_hide_threshold(0.5f),
49 refresh_rate(60.0), 51 refresh_rate(60.0),
52 background_animation_rate(1.0),
50 max_partial_texture_updates(std::numeric_limits<size_t>::max()), 53 max_partial_texture_updates(std::numeric_limits<size_t>::max()),
51 default_tile_size(gfx::Size(256, 256)), 54 default_tile_size(gfx::Size(256, 256)),
52 max_untiled_layer_size(gfx::Size(512, 512)), 55 max_untiled_layer_size(gfx::Size(512, 512)),
53 default_tile_grid_size(gfx::Size(256, 256)), 56 default_tile_grid_size(gfx::Size(256, 256)),
54 minimum_occlusion_tracking_size(gfx::Size(160, 160)), 57 minimum_occlusion_tracking_size(gfx::Size(160, 160)),
55 use_pinch_zoom_scrollbars(false), 58 use_pinch_zoom_scrollbars(false),
56 use_pinch_virtual_viewport(false), 59 use_pinch_virtual_viewport(false),
57 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels. 60 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels.
58 max_tiles_for_interest_area(128), 61 max_tiles_for_interest_area(128),
59 skewport_target_time_multiplier(1.0f), 62 skewport_target_time_multiplier(1.0f),
60 skewport_extrapolation_limit_in_content_pixels(2000), 63 skewport_extrapolation_limit_in_content_pixels(2000),
61 max_unused_resource_memory_percentage(100), 64 max_unused_resource_memory_percentage(100),
62 max_memory_for_prepaint_percentage(100), 65 max_memory_for_prepaint_percentage(100),
63 highp_threshold_min(0), 66 highp_threshold_min(0),
64 strict_layer_property_change_checking(false), 67 strict_layer_property_change_checking(false),
65 use_one_copy(false), 68 use_one_copy(false),
66 use_zero_copy(false), 69 use_zero_copy(false),
67 ignore_root_layer_flings(false), 70 ignore_root_layer_flings(false),
68 use_rgba_4444_textures(false), 71 use_rgba_4444_textures(false),
69 texture_id_allocation_chunk_size(64), 72 texture_id_allocation_chunk_size(64),
70 scheduled_raster_task_limit(32), 73 scheduled_raster_task_limit(32),
71 use_occlusion_for_tile_prioritization(false), 74 use_occlusion_for_tile_prioritization(false),
72 record_full_layer(false) { 75 record_full_layer(false) {
73 } 76 }
74 77
75 LayerTreeSettings::~LayerTreeSettings() {} 78 LayerTreeSettings::~LayerTreeSettings() {}
76 79
77 } // namespace cc 80 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698