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

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

Issue 2021433005: cc: Make LayerTreeSettings have in-member initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: header Created 4 years, 6 months 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 | « no previous file | cc/trees/layer_tree_settings.cc » ('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 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_ 5 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_
6 #define CC_TREES_LAYER_TREE_SETTINGS_H_ 6 #define CC_TREES_LAYER_TREE_SETTINGS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 virtual ~LayerTreeSettings(); 30 virtual ~LayerTreeSettings();
31 31
32 bool operator==(const LayerTreeSettings& other) const; 32 bool operator==(const LayerTreeSettings& other) const;
33 33
34 void ToProtobuf(proto::LayerTreeSettings* proto) const; 34 void ToProtobuf(proto::LayerTreeSettings* proto) const;
35 void FromProtobuf(const proto::LayerTreeSettings& proto); 35 void FromProtobuf(const proto::LayerTreeSettings& proto);
36 36
37 SchedulerSettings ToSchedulerSettings() const; 37 SchedulerSettings ToSchedulerSettings() const;
38 38
39 RendererSettings renderer_settings; 39 RendererSettings renderer_settings;
40 bool single_thread_proxy_scheduler; 40 bool single_thread_proxy_scheduler = true;
41 // TODO(enne): Remove this after everything uses output surface begin frames. 41 // TODO(enne): Remove this after everything uses output surface begin frames.
42 bool use_external_begin_frame_source; 42 bool use_external_begin_frame_source = false;
43 // TODO(enne): Temporary staging for unified begin frame source work. 43 // TODO(enne): Temporary staging for unified begin frame source work.
44 bool use_output_surface_begin_frame_source; 44 bool use_output_surface_begin_frame_source = false;
45 bool main_frame_before_activation_enabled; 45 bool main_frame_before_activation_enabled = false;
46 bool using_synchronous_renderer_compositor; 46 bool using_synchronous_renderer_compositor = false;
47 bool can_use_lcd_text; 47 bool can_use_lcd_text = true;
48 bool use_distance_field_text; 48 bool use_distance_field_text = false;
49 bool gpu_rasterization_enabled; 49 bool gpu_rasterization_enabled = false;
50 bool gpu_rasterization_forced; 50 bool gpu_rasterization_forced = false;
51 bool async_worker_context_enabled; 51 bool async_worker_context_enabled = false;
52 int gpu_rasterization_msaa_sample_count; 52 int gpu_rasterization_msaa_sample_count = 0;
53 float gpu_rasterization_skewport_target_time_in_seconds; 53 float gpu_rasterization_skewport_target_time_in_seconds = 0.2f;
54 bool create_low_res_tiling; 54 bool create_low_res_tiling = false;
55 55
56 enum ScrollbarAnimator { 56 enum ScrollbarAnimator {
57 NO_ANIMATOR, 57 NO_ANIMATOR,
58 LINEAR_FADE, 58 LINEAR_FADE,
59 THINNING, 59 THINNING,
60 }; 60 };
61 ScrollbarAnimator scrollbar_animator; 61 ScrollbarAnimator scrollbar_animator = NO_ANIMATOR;
62 int scrollbar_fade_delay_ms; 62 int scrollbar_fade_delay_ms = 0;
63 int scrollbar_fade_resize_delay_ms; 63 int scrollbar_fade_resize_delay_ms = 0;
64 int scrollbar_fade_duration_ms; 64 int scrollbar_fade_duration_ms = 0;
65 SkColor solid_color_scrollbar_color; 65 SkColor solid_color_scrollbar_color = SK_ColorWHITE;
66 bool timeout_and_draw_when_animation_checkerboards; 66 bool timeout_and_draw_when_animation_checkerboards = true;
67 bool layer_transforms_should_scale_layer_contents; 67 bool layer_transforms_should_scale_layer_contents = false;
68 bool layers_always_allowed_lcd_text; 68 bool layers_always_allowed_lcd_text = false;
69 float minimum_contents_scale; 69 float minimum_contents_scale = 0.0625f;
70 float low_res_contents_scale_factor; 70 float low_res_contents_scale_factor = 0.25f;
71 float top_controls_show_threshold; 71 float top_controls_show_threshold = 0.5f;
72 float top_controls_hide_threshold; 72 float top_controls_hide_threshold = 0.5f;
73 double background_animation_rate; 73 double background_animation_rate = 1.0;
74 gfx::Size default_tile_size; 74 gfx::Size default_tile_size;
75 gfx::Size max_untiled_layer_size; 75 gfx::Size max_untiled_layer_size;
76 gfx::Size minimum_occlusion_tracking_size; 76 gfx::Size minimum_occlusion_tracking_size;
77 int tiling_interest_area_padding; 77 // 3000 pixels should give sufficient area for prepainting.
78 float skewport_target_time_in_seconds; 78 // Note this value is specified with an ideal contents scale in mind. That
79 int skewport_extrapolation_limit_in_screen_pixels; 79 // is, the ideal tiling would use this value as the padding.
80 size_t max_memory_for_prepaint_percentage; 80 // TODO(vmpstr): Figure out a better number that doesn't depend on scale.
81 bool use_zero_copy; 81 int tiling_interest_area_padding = 3000;
82 bool use_partial_raster; 82 float skewport_target_time_in_seconds = 1.0f;
83 bool enable_elastic_overscroll; 83 int skewport_extrapolation_limit_in_screen_pixels = 2000;
84 size_t max_memory_for_prepaint_percentage = 100;
85 bool use_zero_copy = false;
86 bool use_partial_raster = false;
87 bool enable_elastic_overscroll = false;
84 // An array of image texture targets for each GpuMemoryBuffer format. 88 // An array of image texture targets for each GpuMemoryBuffer format.
85 std::vector<unsigned> use_image_texture_targets; 89 std::vector<unsigned> use_image_texture_targets;
86 bool ignore_root_layer_flings; 90 bool ignore_root_layer_flings = false;
87 size_t scheduled_raster_task_limit; 91 size_t scheduled_raster_task_limit = 32;
88 bool use_occlusion_for_tile_prioritization; 92 bool use_occlusion_for_tile_prioritization = false;
89 bool verify_clip_tree_calculations; 93 bool verify_clip_tree_calculations = false;
90 bool image_decode_tasks_enabled; 94 bool image_decode_tasks_enabled = false;
91 bool wait_for_beginframe_interval; 95 bool wait_for_beginframe_interval = true;
92 bool abort_commit_before_output_surface_creation; 96 bool abort_commit_before_output_surface_creation = true;
93 bool use_mouse_wheel_gestures; 97 bool use_mouse_wheel_gestures = false;
94 bool use_layer_lists; 98 bool use_layer_lists = false;
95 int max_staging_buffer_usage_in_bytes; 99 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024;
96 ManagedMemoryPolicy memory_policy_; 100 ManagedMemoryPolicy memory_policy_;
97 size_t gpu_decoded_image_budget_bytes; 101 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024;
98 size_t software_decoded_image_budget_bytes; 102 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024;
99 103
100 // If set to true, the display item list will internally cache a SkPicture for 104 // If set to true, the display item list will internally cache a SkPicture for
101 // raster rather than directly using the display items. 105 // raster rather than directly using the display items.
102 bool use_cached_picture_raster; 106 bool use_cached_picture_raster = true;
103 107
104 LayerTreeDebugState initial_debug_state; 108 LayerTreeDebugState initial_debug_state;
105 }; 109 };
106 110
107 } // namespace cc 111 } // namespace cc
108 112
109 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ 113 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698