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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 55 settings->strict_layer_property_change_checking = false; |
56 | 56 |
57 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
58 if (base::SysInfo::IsLowEndDevice()) | 58 if (base::SysInfo::IsLowEndDevice()) |
59 settings->gpu_rasterization_enabled = false; | 59 settings->gpu_rasterization_enabled = false; |
60 settings->using_synchronous_renderer_compositor = false; | 60 settings->using_synchronous_renderer_compositor = false; |
61 settings->record_full_layer = false; | |
62 settings->scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; | 61 settings->scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; |
63 settings->scrollbar_fade_delay_ms = 300; | 62 settings->scrollbar_fade_delay_ms = 300; |
64 settings->scrollbar_fade_resize_delay_ms = 2000; | 63 settings->scrollbar_fade_resize_delay_ms = 2000; |
65 settings->scrollbar_fade_duration_ms = 300; | 64 settings->scrollbar_fade_duration_ms = 300; |
66 settings->solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); | 65 settings->solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); |
67 settings->renderer_settings.highp_threshold_min = 2048; | 66 settings->renderer_settings.highp_threshold_min = 2048; |
68 settings->ignore_root_layer_flings = false; | 67 settings->ignore_root_layer_flings = false; |
69 bool use_low_memory_policy = base::SysInfo::IsLowEndDevice(); | 68 bool use_low_memory_policy = base::SysInfo::IsLowEndDevice(); |
70 settings->renderer_settings.use_rgba_4444_textures = use_low_memory_policy; | 69 settings->renderer_settings.use_rgba_4444_textures = use_low_memory_policy; |
71 if (use_low_memory_policy) { | 70 if (use_low_memory_policy) { |
(...skipping 28 matching lines...) Expand all Loading... |
100 // show the pinch scrollbars when at minimum scale. | 99 // show the pinch scrollbars when at minimum scale. |
101 // TODO(dtrainor): Update this since https://crrev.com/1267603004 landed. | 100 // TODO(dtrainor): Update this since https://crrev.com/1267603004 landed. |
102 // settings->scrollbar_show_scale_threshold = 1.05f; | 101 // settings->scrollbar_show_scale_threshold = 1.05f; |
103 #endif | 102 #endif |
104 | 103 |
105 // Blimp always uses new cc::AnimationHost system. | 104 // Blimp always uses new cc::AnimationHost system. |
106 settings->use_compositor_animation_timelines = true; | 105 settings->use_compositor_animation_timelines = true; |
107 } | 106 } |
108 | 107 |
109 } // namespace blimp | 108 } // namespace blimp |
OLD | NEW |