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 "cc/test/proxy_impl_for_test.h" | 5 #include "cc/test/proxy_impl_for_test.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 scoped_ptr<ProxyImpl> ProxyImplForTest::Create( | 8 scoped_ptr<ProxyImplForTest> ProxyImplForTest::Create( |
9 TestHooks* test_hooks, | 9 TestHooks* test_hooks, |
10 ChannelImpl* channel_impl, | 10 ChannelImpl* channel_impl, |
11 LayerTreeHost* layer_tree_host, | 11 LayerTreeHost* layer_tree_host, |
12 TaskRunnerProvider* task_runner_provider, | 12 TaskRunnerProvider* task_runner_provider, |
13 scoped_ptr<BeginFrameSource> external_begin_frame_source) { | 13 scoped_ptr<BeginFrameSource> external_begin_frame_source) { |
14 return make_scoped_ptr(new ProxyImplForTest( | 14 return make_scoped_ptr(new ProxyImplForTest( |
15 test_hooks, channel_impl, layer_tree_host, task_runner_provider, | 15 test_hooks, channel_impl, layer_tree_host, task_runner_provider, |
16 std::move(external_begin_frame_source))); | 16 std::move(external_begin_frame_source))); |
17 } | 17 } |
18 | 18 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 LayerTreeHost* layer_tree_host, | 154 LayerTreeHost* layer_tree_host, |
155 base::TimeTicks main_thread_start_time, | 155 base::TimeTicks main_thread_start_time, |
156 bool hold_commit_for_activation) { | 156 bool hold_commit_for_activation) { |
157 test_hooks_->StartCommitOnImpl(); | 157 test_hooks_->StartCommitOnImpl(); |
158 ProxyImpl::StartCommitOnImpl(completion, layer_tree_host, | 158 ProxyImpl::StartCommitOnImpl(completion, layer_tree_host, |
159 main_thread_start_time, | 159 main_thread_start_time, |
160 hold_commit_for_activation); | 160 hold_commit_for_activation); |
161 } | 161 } |
162 | 162 |
163 } // namespace cc | 163 } // namespace cc |
OLD | NEW |