| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/time/time.h" |
| 12 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
| 13 #include "cc/debug/layer_tree_debug_state.h" | 14 #include "cc/debug/layer_tree_debug_state.h" |
| 14 #include "cc/output/managed_memory_policy.h" | 15 #include "cc/output/managed_memory_policy.h" |
| 15 #include "cc/output/renderer_settings.h" | 16 #include "cc/output/renderer_settings.h" |
| 16 #include "cc/scheduler/scheduler_settings.h" | 17 #include "cc/scheduler/scheduler_settings.h" |
| 17 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
| 18 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
| 19 | 20 |
| 20 namespace cc { | 21 namespace cc { |
| 21 | 22 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 int gpu_rasterization_msaa_sample_count = 0; | 50 int gpu_rasterization_msaa_sample_count = 0; |
| 50 float gpu_rasterization_skewport_target_time_in_seconds = 0.2f; | 51 float gpu_rasterization_skewport_target_time_in_seconds = 0.2f; |
| 51 bool create_low_res_tiling = false; | 52 bool create_low_res_tiling = false; |
| 52 | 53 |
| 53 enum ScrollbarAnimator { | 54 enum ScrollbarAnimator { |
| 54 NO_ANIMATOR, | 55 NO_ANIMATOR, |
| 55 LINEAR_FADE, | 56 LINEAR_FADE, |
| 56 THINNING, | 57 THINNING, |
| 57 }; | 58 }; |
| 58 ScrollbarAnimator scrollbar_animator = NO_ANIMATOR; | 59 ScrollbarAnimator scrollbar_animator = NO_ANIMATOR; |
| 59 int scrollbar_fade_delay_ms = 0; | 60 base::TimeDelta scrollbar_fade_delay; |
| 60 int scrollbar_fade_resize_delay_ms = 0; | 61 base::TimeDelta scrollbar_fade_resize_delay; |
| 61 int scrollbar_fade_duration_ms = 0; | 62 base::TimeDelta scrollbar_fade_duration; |
| 63 base::TimeDelta scrollbar_thinning_duration; |
| 62 SkColor solid_color_scrollbar_color = SK_ColorWHITE; | 64 SkColor solid_color_scrollbar_color = SK_ColorWHITE; |
| 63 bool timeout_and_draw_when_animation_checkerboards = true; | 65 bool timeout_and_draw_when_animation_checkerboards = true; |
| 64 bool layer_transforms_should_scale_layer_contents = false; | 66 bool layer_transforms_should_scale_layer_contents = false; |
| 65 bool layers_always_allowed_lcd_text = false; | 67 bool layers_always_allowed_lcd_text = false; |
| 66 float minimum_contents_scale = 0.0625f; | 68 float minimum_contents_scale = 0.0625f; |
| 67 float low_res_contents_scale_factor = 0.25f; | 69 float low_res_contents_scale_factor = 0.25f; |
| 68 float top_controls_show_threshold = 0.5f; | 70 float top_controls_show_threshold = 0.5f; |
| 69 float top_controls_hide_threshold = 0.5f; | 71 float top_controls_hide_threshold = 0.5f; |
| 70 double background_animation_rate = 1.0; | 72 double background_animation_rate = 1.0; |
| 71 gfx::Size default_tile_size; | 73 gfx::Size default_tile_size; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 101 // raster rather than directly using the display items. | 103 // raster rather than directly using the display items. |
| 102 bool use_cached_picture_raster = true; | 104 bool use_cached_picture_raster = true; |
| 103 bool enable_color_correct_rendering = false; | 105 bool enable_color_correct_rendering = false; |
| 104 | 106 |
| 105 LayerTreeDebugState initial_debug_state; | 107 LayerTreeDebugState initial_debug_state; |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace cc | 110 } // namespace cc |
| 109 | 111 |
| 110 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 112 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |