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

Side by Side Diff: cc/test/remote_channel_impl_for_test.h

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use LayerTreeSettings::ToProtobuf, update comments. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
6 #define CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
7
8 #include "base/macros.h"
9 #include "cc/test/proxy_impl_for_test.h"
10 #include "cc/test/test_hooks.h"
11 #include "cc/trees/remote_channel_impl.h"
12
13 namespace cc {
14
15 class RemoteChannelImplForTest : public RemoteChannelImpl {
16 public:
17 static scoped_ptr<RemoteChannelImplForTest> Create(
18 TestHooks* test_hooks,
19 RemoteChannelHost* remote_channel_host,
20 TaskGraphRunner* task_graph_runner,
21 const LayerTreeSettings& settings,
22 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
23 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
24
25 ProxyImplForTest* proxy_impl_for_test() const { return proxy_impl_for_test_; }
26
27 using RemoteChannelImpl::MainFrameWillHappenForTesting;
28
29 private:
30 RemoteChannelImplForTest(
31 TestHooks* test_hooks,
32 RemoteChannelHost* remote_channel_host,
33 TaskGraphRunner* task_graph_runner,
34 const LayerTreeSettings& settings,
35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
36 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
37
38 scoped_ptr<ProxyImpl> CreateProxyImpl(
39 ChannelImpl* channel_impl,
40 LayerTreeHost* layer_tree_host,
41 TaskRunnerProvider* task_runner_provider,
42 scoped_ptr<BeginFrameSource> external_begin_frame_source) override;
43
44 TestHooks* test_hooks_;
45 ProxyImplForTest* proxy_impl_for_test_;
46 };
47
48 } // namespace cc
49
50 #endif // CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698