| OLD | NEW |
| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/debug/layer_tree_debug_state.h" | 10 #include "cc/debug/layer_tree_debug_state.h" |
| 11 #include "cc/output/renderer_settings.h" |
| 11 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
| 12 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 13 | 14 |
| 14 namespace cc { | 15 namespace cc { |
| 15 | 16 |
| 16 class CC_EXPORT LayerTreeSettings { | 17 class CC_EXPORT LayerTreeSettings { |
| 17 public: | 18 public: |
| 18 LayerTreeSettings(); | 19 LayerTreeSettings(); |
| 19 ~LayerTreeSettings(); | 20 ~LayerTreeSettings(); |
| 20 | 21 |
| 22 RendererSettings renderer_settings; |
| 21 bool impl_side_painting; | 23 bool impl_side_painting; |
| 22 bool allow_antialiasing; | |
| 23 bool force_antialiasing; | |
| 24 bool force_blending_with_shaders; | |
| 25 bool throttle_frame_production; | 24 bool throttle_frame_production; |
| 26 bool single_thread_proxy_scheduler; | 25 bool single_thread_proxy_scheduler; |
| 27 bool use_external_begin_frame_source; | 26 bool use_external_begin_frame_source; |
| 28 bool forward_begin_frames_to_children; | 27 bool forward_begin_frames_to_children; |
| 29 bool main_frame_before_activation_enabled; | 28 bool main_frame_before_activation_enabled; |
| 30 bool using_synchronous_renderer_compositor; | 29 bool using_synchronous_renderer_compositor; |
| 31 bool disable_hi_res_timer_tasks_on_battery; | 30 bool disable_hi_res_timer_tasks_on_battery; |
| 32 bool report_overscroll_only_for_scrollable_axes; | 31 bool report_overscroll_only_for_scrollable_axes; |
| 33 bool per_tile_painting_enabled; | 32 bool per_tile_painting_enabled; |
| 34 bool partial_swap_enabled; | |
| 35 bool accelerated_animation_enabled; | 33 bool accelerated_animation_enabled; |
| 36 bool can_use_lcd_text; | 34 bool can_use_lcd_text; |
| 37 bool use_distance_field_text; | 35 bool use_distance_field_text; |
| 38 bool should_clear_root_render_pass; | |
| 39 bool gpu_rasterization_enabled; | 36 bool gpu_rasterization_enabled; |
| 40 bool gpu_rasterization_forced; | 37 bool gpu_rasterization_forced; |
| 41 bool create_low_res_tiling; | 38 bool create_low_res_tiling; |
| 42 | 39 |
| 43 enum ScrollbarAnimator { | 40 enum ScrollbarAnimator { |
| 44 NoAnimator, | 41 NoAnimator, |
| 45 LinearFade, | 42 LinearFade, |
| 46 Thinning, | 43 Thinning, |
| 47 }; | 44 }; |
| 48 ScrollbarAnimator scrollbar_animator; | 45 ScrollbarAnimator scrollbar_animator; |
| 49 int scrollbar_fade_delay_ms; | 46 int scrollbar_fade_delay_ms; |
| 50 int scrollbar_fade_resize_delay_ms; | 47 int scrollbar_fade_resize_delay_ms; |
| 51 int scrollbar_fade_duration_ms; | 48 int scrollbar_fade_duration_ms; |
| 52 SkColor solid_color_scrollbar_color; | 49 SkColor solid_color_scrollbar_color; |
| 53 bool calculate_top_controls_position; | 50 bool calculate_top_controls_position; |
| 54 bool timeout_and_draw_when_animation_checkerboards; | 51 bool timeout_and_draw_when_animation_checkerboards; |
| 55 int maximum_number_of_failed_draws_before_draw_is_forced_; | 52 int maximum_number_of_failed_draws_before_draw_is_forced_; |
| 56 bool layer_transforms_should_scale_layer_contents; | 53 bool layer_transforms_should_scale_layer_contents; |
| 57 bool layers_always_allowed_lcd_text; | 54 bool layers_always_allowed_lcd_text; |
| 58 float minimum_contents_scale; | 55 float minimum_contents_scale; |
| 59 float low_res_contents_scale_factor; | 56 float low_res_contents_scale_factor; |
| 60 float top_controls_height; | 57 float top_controls_height; |
| 61 float top_controls_show_threshold; | 58 float top_controls_show_threshold; |
| 62 float top_controls_hide_threshold; | 59 float top_controls_hide_threshold; |
| 63 double refresh_rate; | |
| 64 double background_animation_rate; | 60 double background_animation_rate; |
| 65 size_t max_partial_texture_updates; | 61 size_t max_partial_texture_updates; |
| 66 gfx::Size default_tile_size; | 62 gfx::Size default_tile_size; |
| 67 gfx::Size max_untiled_layer_size; | 63 gfx::Size max_untiled_layer_size; |
| 68 gfx::Size default_tile_grid_size; | 64 gfx::Size default_tile_grid_size; |
| 69 gfx::Size minimum_occlusion_tracking_size; | 65 gfx::Size minimum_occlusion_tracking_size; |
| 70 bool use_pinch_zoom_scrollbars; | 66 bool use_pinch_zoom_scrollbars; |
| 71 bool use_pinch_virtual_viewport; | 67 bool use_pinch_virtual_viewport; |
| 72 size_t max_tiles_for_interest_area; | 68 size_t max_tiles_for_interest_area; |
| 73 float skewport_target_time_multiplier; | 69 float skewport_target_time_multiplier; |
| 74 int skewport_extrapolation_limit_in_content_pixels; | 70 int skewport_extrapolation_limit_in_content_pixels; |
| 75 size_t max_unused_resource_memory_percentage; | 71 size_t max_unused_resource_memory_percentage; |
| 76 size_t max_memory_for_prepaint_percentage; | 72 size_t max_memory_for_prepaint_percentage; |
| 77 int highp_threshold_min; | |
| 78 bool strict_layer_property_change_checking; | 73 bool strict_layer_property_change_checking; |
| 79 bool use_one_copy; | 74 bool use_one_copy; |
| 80 bool use_zero_copy; | 75 bool use_zero_copy; |
| 81 bool ignore_root_layer_flings; | 76 bool ignore_root_layer_flings; |
| 82 bool use_rgba_4444_textures; | |
| 83 size_t texture_id_allocation_chunk_size; | |
| 84 size_t scheduled_raster_task_limit; | 77 size_t scheduled_raster_task_limit; |
| 85 bool use_occlusion_for_tile_prioritization; | 78 bool use_occlusion_for_tile_prioritization; |
| 86 bool record_full_layer; | 79 bool record_full_layer; |
| 87 | 80 |
| 88 LayerTreeDebugState initial_debug_state; | 81 LayerTreeDebugState initial_debug_state; |
| 89 }; | 82 }; |
| 90 | 83 |
| 91 } // namespace cc | 84 } // namespace cc |
| 92 | 85 |
| 93 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 86 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |