Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: cc/test/threaded_channel_for_test.cc

Issue 1506023008: [NOT LANDED] Revert of cc: Split ThreadProxy into ProxyMain and ProxyImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/threaded_channel_for_test.h ('k') | cc/trees/channel_main.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/test/threaded_channel_for_test.h"
6
7 #include "cc/test/proxy_impl_for_test.h"
8
9 namespace cc {
10
11 scoped_ptr<ThreadedChannel> ThreadedChannelForTest::Create(
12 TestHooks* test_hooks,
13 ProxyMain* proxy_main,
14 TaskRunnerProvider* task_runner_provider) {
15 return make_scoped_ptr(
16 new ThreadedChannelForTest(test_hooks, proxy_main, task_runner_provider));
17 }
18
19 ThreadedChannelForTest::ThreadedChannelForTest(
20 TestHooks* test_hooks,
21 ProxyMain* proxy_main,
22 TaskRunnerProvider* task_runner_provider)
23 : ThreadedChannel(proxy_main, task_runner_provider),
24 test_hooks_(test_hooks) {}
25
26 scoped_ptr<ProxyImpl> ThreadedChannelForTest::CreateProxyImpl(
27 ChannelImpl* channel_impl,
28 LayerTreeHost* layer_tree_host,
29 TaskRunnerProvider* task_runner_provider,
30 scoped_ptr<BeginFrameSource> external_begin_frame_source) {
31 return ProxyImplForTest::Create(test_hooks_, channel_impl, layer_tree_host,
32 task_runner_provider,
33 std::move(external_begin_frame_source));
34 }
35
36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/threaded_channel_for_test.h ('k') | cc/trees/channel_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698