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

Unified Diff: cc/test/threaded_channel_for_test.cc

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed vmpstr's comments. Created 4 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/threaded_channel_for_test.h ('k') | cc/trees/compositor_mode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/threaded_channel_for_test.cc
diff --git a/cc/test/threaded_channel_for_test.cc b/cc/test/threaded_channel_for_test.cc
index 35489bdae4973bb4cdc5366ae1e608c7abbfe234..468eec3b66a2cd5cd2a324a2688be67179cba738 100644
--- a/cc/test/threaded_channel_for_test.cc
+++ b/cc/test/threaded_channel_for_test.cc
@@ -8,7 +8,7 @@
namespace cc {
-scoped_ptr<ThreadedChannel> ThreadedChannelForTest::Create(
+scoped_ptr<ThreadedChannelForTest> ThreadedChannelForTest::Create(
TestHooks* test_hooks,
ProxyMain* proxy_main,
TaskRunnerProvider* task_runner_provider) {
@@ -21,16 +21,19 @@ ThreadedChannelForTest::ThreadedChannelForTest(
ProxyMain* proxy_main,
TaskRunnerProvider* task_runner_provider)
: ThreadedChannel(proxy_main, task_runner_provider),
- test_hooks_(test_hooks) {}
+ test_hooks_(test_hooks),
+ proxy_impl_for_test_(nullptr) {}
scoped_ptr<ProxyImpl> ThreadedChannelForTest::CreateProxyImpl(
ChannelImpl* channel_impl,
LayerTreeHost* layer_tree_host,
TaskRunnerProvider* task_runner_provider,
scoped_ptr<BeginFrameSource> external_begin_frame_source) {
- return ProxyImplForTest::Create(test_hooks_, channel_impl, layer_tree_host,
- task_runner_provider,
- std::move(external_begin_frame_source));
+ scoped_ptr<ProxyImplForTest> proxy_impl = ProxyImplForTest::Create(
+ test_hooks_, channel_impl, layer_tree_host, task_runner_provider,
+ std::move(external_begin_frame_source));
+ proxy_impl_for_test_ = proxy_impl.get();
+ return std::move(proxy_impl);
}
} // namespace cc
« no previous file with comments | « cc/test/threaded_channel_for_test.h ('k') | cc/trees/compositor_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698