| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 layer_tree_settings_.scrollbar_fade_delay = | 107 layer_tree_settings_.scrollbar_fade_delay = |
| 108 base::TimeDelta::FromMilliseconds(20); | 108 base::TimeDelta::FromMilliseconds(20); |
| 109 layer_tree_settings_.scrollbar_fade_duration = | 109 layer_tree_settings_.scrollbar_fade_duration = |
| 110 base::TimeDelta::FromMilliseconds(20); | 110 base::TimeDelta::FromMilliseconds(20); |
| 111 layer_tree_settings_.verify_clip_tree_calculations = true; | 111 layer_tree_settings_.verify_clip_tree_calculations = true; |
| 112 | 112 |
| 113 scrollbar_layer_id_ = -1; | 113 scrollbar_layer_id_ = -1; |
| 114 | 114 |
| 115 animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN); | 115 animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN); |
| 116 | 116 |
| 117 LayerTreeHostInProcess::InitParams params; | 117 LayerTreeHost::InitParams params; |
| 118 params.client = &fake_client_; | 118 params.client = &fake_client_; |
| 119 params.settings = &layer_tree_settings_; | 119 params.settings = &layer_tree_settings_; |
| 120 params.task_graph_runner = &task_graph_runner_; | 120 params.task_graph_runner = &task_graph_runner_; |
| 121 params.mutator_host = animation_host_.get(); | 121 params.mutator_host = animation_host_.get(); |
| 122 | 122 |
| 123 std::unique_ptr<FakeResourceTrackingUIResourceManager> | 123 std::unique_ptr<FakeResourceTrackingUIResourceManager> |
| 124 fake_ui_resource_manager = | 124 fake_ui_resource_manager = |
| 125 base::MakeUnique<FakeResourceTrackingUIResourceManager>(); | 125 base::MakeUnique<FakeResourceTrackingUIResourceManager>(); |
| 126 fake_ui_resource_manager_ = fake_ui_resource_manager.get(); | 126 fake_ui_resource_manager_ = fake_ui_resource_manager.get(); |
| 127 | 127 |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); | 1170 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); |
| 1171 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); | 1171 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); |
| 1172 | 1172 |
| 1173 // Horizontal Scrollbars. | 1173 // Horizontal Scrollbars. |
| 1174 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); | 1174 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); |
| 1175 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); | 1175 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 } // namespace | 1178 } // namespace |
| 1179 } // namespace cc | 1179 } // namespace cc |
| OLD | NEW |