| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "blimp/client/compositor/blimp_layer_tree_settings.h" | 5 #include "blimp/client/compositor/blimp_layer_tree_settings.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 settings->single_thread_proxy_scheduler = false; | 45 settings->single_thread_proxy_scheduler = false; |
| 46 settings->initial_debug_state.show_debug_borders = false; | 46 settings->initial_debug_state.show_debug_borders = false; |
| 47 settings->initial_debug_state.show_fps_counter = false; | 47 settings->initial_debug_state.show_fps_counter = false; |
| 48 settings->initial_debug_state.show_layer_animation_bounds_rects = false; | 48 settings->initial_debug_state.show_layer_animation_bounds_rects = false; |
| 49 settings->initial_debug_state.show_paint_rects = false; | 49 settings->initial_debug_state.show_paint_rects = false; |
| 50 settings->initial_debug_state.show_property_changed_rects = false; | 50 settings->initial_debug_state.show_property_changed_rects = false; |
| 51 settings->initial_debug_state.show_surface_damage_rects = false; | 51 settings->initial_debug_state.show_surface_damage_rects = false; |
| 52 settings->initial_debug_state.show_screen_space_rects = false; | 52 settings->initial_debug_state.show_screen_space_rects = false; |
| 53 settings->initial_debug_state.show_replica_screen_space_rects = false; | 53 settings->initial_debug_state.show_replica_screen_space_rects = false; |
| 54 settings->initial_debug_state.SetRecordRenderingStats(false); | 54 settings->initial_debug_state.SetRecordRenderingStats(false); |
| 55 settings->strict_layer_property_change_checking = false; | |
| 56 | 55 |
| 57 #if defined(OS_ANDROID) | 56 #if defined(OS_ANDROID) |
| 58 if (base::SysInfo::IsLowEndDevice()) | 57 if (base::SysInfo::IsLowEndDevice()) |
| 59 settings->gpu_rasterization_enabled = false; | 58 settings->gpu_rasterization_enabled = false; |
| 60 settings->using_synchronous_renderer_compositor = false; | 59 settings->using_synchronous_renderer_compositor = false; |
| 61 settings->scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; | 60 settings->scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; |
| 62 settings->scrollbar_fade_delay_ms = 300; | 61 settings->scrollbar_fade_delay_ms = 300; |
| 63 settings->scrollbar_fade_resize_delay_ms = 2000; | 62 settings->scrollbar_fade_resize_delay_ms = 2000; |
| 64 settings->scrollbar_fade_duration_ms = 300; | 63 settings->scrollbar_fade_duration_ms = 300; |
| 65 settings->solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); | 64 settings->solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // show the pinch scrollbars when at minimum scale. | 98 // show the pinch scrollbars when at minimum scale. |
| 100 // TODO(dtrainor): Update this since https://crrev.com/1267603004 landed. | 99 // TODO(dtrainor): Update this since https://crrev.com/1267603004 landed. |
| 101 // settings->scrollbar_show_scale_threshold = 1.05f; | 100 // settings->scrollbar_show_scale_threshold = 1.05f; |
| 102 #endif | 101 #endif |
| 103 | 102 |
| 104 // Blimp always uses new cc::AnimationHost system. | 103 // Blimp always uses new cc::AnimationHost system. |
| 105 settings->use_compositor_animation_timelines = true; | 104 settings->use_compositor_animation_timelines = true; |
| 106 } | 105 } |
| 107 | 106 |
| 108 } // namespace blimp | 107 } // namespace blimp |
| OLD | NEW |