| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <unordered_map> | 7 #include <unordered_map> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 public: | 103 public: |
| 104 ScrollbarLayerTest() { | 104 ScrollbarLayerTest() { |
| 105 layer_tree_settings_.single_thread_proxy_scheduler = false; | 105 layer_tree_settings_.single_thread_proxy_scheduler = false; |
| 106 layer_tree_settings_.use_zero_copy = true; | 106 layer_tree_settings_.use_zero_copy = true; |
| 107 layer_tree_settings_.scrollbar_animator = | 107 layer_tree_settings_.scrollbar_animator = |
| 108 LayerTreeSettings::ANDROID_OVERLAY; | 108 LayerTreeSettings::ANDROID_OVERLAY; |
| 109 layer_tree_settings_.scrollbar_show_delay = | 109 layer_tree_settings_.scrollbar_show_delay = |
| 110 base::TimeDelta::FromMilliseconds(20); | 110 base::TimeDelta::FromMilliseconds(20); |
| 111 layer_tree_settings_.scrollbar_fade_out_delay = | 111 layer_tree_settings_.scrollbar_fade_out_delay = |
| 112 base::TimeDelta::FromMilliseconds(20); | 112 base::TimeDelta::FromMilliseconds(20); |
| 113 layer_tree_settings_.scrollbar_fade_in_duration = |
| 114 base::TimeDelta::FromMilliseconds(20); |
| 113 layer_tree_settings_.scrollbar_fade_out_duration = | 115 layer_tree_settings_.scrollbar_fade_out_duration = |
| 114 base::TimeDelta::FromMilliseconds(20); | 116 base::TimeDelta::FromMilliseconds(20); |
| 115 | 117 |
| 116 scrollbar_layer_id_ = -1; | 118 scrollbar_layer_id_ = -1; |
| 117 | 119 |
| 118 animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN); | 120 animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN); |
| 119 | 121 |
| 120 LayerTreeHost::InitParams params; | 122 LayerTreeHost::InitParams params; |
| 121 params.client = &fake_client_; | 123 params.client = &fake_client_; |
| 122 params.settings = &layer_tree_settings_; | 124 params.settings = &layer_tree_settings_; |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); | 1237 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); |
| 1236 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); | 1238 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); |
| 1237 | 1239 |
| 1238 // Horizontal Scrollbars. | 1240 // Horizontal Scrollbars. |
| 1239 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); | 1241 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); |
| 1240 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); | 1242 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); |
| 1241 } | 1243 } |
| 1242 | 1244 |
| 1243 } // namespace | 1245 } // namespace |
| 1244 } // namespace cc | 1246 } // namespace cc |
| OLD | NEW |