OLD | NEW |
(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_ |
OLD | NEW |