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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index dc399e05fbdd9c0f0cfdfa3ef37f69f8dedafa68..ac79e6025466da89da771811a116be8542e47f0c 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -116,9 +116,11 @@ GpuChildThread::GpuChildThread(
bool dead_on_arrival,
const gpu::GPUInfo& gpu_info,
const DeferredMessages& deferred_messages,
- GpuMemoryBufferFactory* gpu_memory_buffer_factory)
+ GpuMemoryBufferFactory* gpu_memory_buffer_factory,
+ gpu::SyncPointManager* sync_point_manager)
: ChildThreadImpl(GetOptions(gpu_memory_buffer_factory)),
dead_on_arrival_(dead_on_arrival),
+ sync_point_manager_(sync_point_manager),
gpu_info_(gpu_info),
deferred_messages_(deferred_messages),
in_browser_process_(false),
@@ -132,13 +134,15 @@ GpuChildThread::GpuChildThread(
GpuChildThread::GpuChildThread(
const InProcessChildThreadParams& params,
- GpuMemoryBufferFactory* gpu_memory_buffer_factory)
+ GpuMemoryBufferFactory* gpu_memory_buffer_factory,
+ gpu::SyncPointManager* sync_point_manager)
: ChildThreadImpl(ChildThreadImpl::Options::Builder()
.InBrowserProcess(params)
.AddStartupFilter(new GpuMemoryBufferMessageFilter(
gpu_memory_buffer_factory))
.Build()),
dead_on_arrival_(false),
+ sync_point_manager_(sync_point_manager),
in_browser_process_(true),
gpu_memory_buffer_factory_(gpu_memory_buffer_factory) {
#if defined(OS_WIN)
@@ -245,7 +249,8 @@ void GpuChildThread::OnInitialize() {
GetRouter(), watchdog_thread_.get(),
ChildProcess::current()->io_task_runner(),
ChildProcess::current()->GetShutDownEvent(), channel(),
- GetAttachmentBroker(), gpu_memory_buffer_factory_));
+ GetAttachmentBroker(), sync_point_manager_,
+ gpu_memory_buffer_factory_));
#if defined(USE_OZONE)
ui::OzonePlatform::GetInstance()
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698