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

Unified Diff: cc/trees/remote_channel_impl.cc

Issue 2158973002: cc: Clean up LayerTreeTest and TestHooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proxy-impls: android-build Created 4 years, 5 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
Index: cc/trees/remote_channel_impl.cc
diff --git a/cc/trees/remote_channel_impl.cc b/cc/trees/remote_channel_impl.cc
index a71c362129c81435de44baffc94f3d8bf344330d..5d1efc352f1929d175bab7854b0b11dbe860dca9 100644
--- a/cc/trees/remote_channel_impl.cc
+++ b/cc/trees/remote_channel_impl.cc
@@ -17,14 +17,6 @@
namespace cc {
-std::unique_ptr<RemoteChannelImpl> RemoteChannelImpl::Create(
- LayerTreeHost* layer_tree_host,
- RemoteProtoChannel* remote_proto_channel,
- TaskRunnerProvider* task_runner_provider) {
- return base::WrapUnique(new RemoteChannelImpl(
- layer_tree_host, remote_proto_channel, task_runner_provider));
-}
-
RemoteChannelImpl::RemoteChannelImpl(LayerTreeHost* layer_tree_host,
RemoteProtoChannel* remote_proto_channel,
TaskRunnerProvider* task_runner_provider)
@@ -51,8 +43,9 @@ std::unique_ptr<ProxyImpl> RemoteChannelImpl::CreateProxyImpl(
std::unique_ptr<BeginFrameSource> external_begin_frame_source) {
DCHECK(task_runner_provider_->IsImplThread());
DCHECK(!external_begin_frame_source);
- return ProxyImpl::Create(channel_impl, layer_tree_host, task_runner_provider,
- std::move(external_begin_frame_source));
+ return base::MakeUnique<ProxyImpl>(channel_impl, layer_tree_host,
+ task_runner_provider,
+ std::move(external_begin_frame_source));
}
void RemoteChannelImpl::OnProtoReceived(

Powered by Google App Engine
This is Rietveld 408576698