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

Side by Side Diff: content/gpu/gpu_child_thread.cc

Issue 2143343002: Re-land: Use ChannelMojo for the Browser-GPU IPC channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/gpu/gpu_child_thread.h" 5 #include "content/gpu/gpu_child_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 g_thread_safe_sender.Get() = thread_safe_sender(); 166 g_thread_safe_sender.Get() = thread_safe_sender();
167 g_lazy_tls.Pointer()->Set(this); 167 g_lazy_tls.Pointer()->Set(this);
168 } 168 }
169 169
170 GpuChildThread::GpuChildThread( 170 GpuChildThread::GpuChildThread(
171 const gpu::GpuPreferences& gpu_preferences, 171 const gpu::GpuPreferences& gpu_preferences,
172 const InProcessChildThreadParams& params, 172 const InProcessChildThreadParams& params,
173 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory) 173 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory)
174 : ChildThreadImpl(ChildThreadImpl::Options::Builder() 174 : ChildThreadImpl(ChildThreadImpl::Options::Builder()
175 .InBrowserProcess(params) 175 .InBrowserProcess(params)
176 .UseMojoChannel(true)
176 .AddStartupFilter(new GpuMemoryBufferMessageFilter( 177 .AddStartupFilter(new GpuMemoryBufferMessageFilter(
177 gpu_memory_buffer_factory)) 178 gpu_memory_buffer_factory))
178 .Build()), 179 .Build()),
179 gpu_preferences_(gpu_preferences), 180 gpu_preferences_(gpu_preferences),
180 dead_on_arrival_(false), 181 dead_on_arrival_(false),
181 in_browser_process_(true), 182 in_browser_process_(true),
182 gpu_memory_buffer_factory_(gpu_memory_buffer_factory) { 183 gpu_memory_buffer_factory_(gpu_memory_buffer_factory) {
183 #if defined(OS_WIN) 184 #if defined(OS_WIN)
184 target_services_ = NULL; 185 target_services_ = NULL;
185 #endif 186 #endif
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 586
586 void GpuChildThread::BindProcessControlRequest( 587 void GpuChildThread::BindProcessControlRequest(
587 mojo::InterfaceRequest<mojom::ProcessControl> request) { 588 mojo::InterfaceRequest<mojom::ProcessControl> request) {
588 DVLOG(1) << "GPU: Binding ProcessControl request"; 589 DVLOG(1) << "GPU: Binding ProcessControl request";
589 DCHECK(process_control_); 590 DCHECK(process_control_);
590 process_control_bindings_.AddBinding(process_control_.get(), 591 process_control_bindings_.AddBinding(process_control_.get(),
591 std::move(request)); 592 std::move(request));
592 } 593 }
593 594
594 } // namespace content 595 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698