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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2924573002: [NotForReview] Convert accelerated JPEG Decoder IPC to Mojo
Patch Set: Created 3 years, 6 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: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 92f6e6fdc2783ccd81a2eab5350135e345fa3858..d1fce4cf8440492e533bd1d59f56385e4e6cfd9a 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -26,6 +26,7 @@
#include "gpu/command_buffer/common/activity_flags.h"
#include "gpu/ipc/service/gpu_watchdog_thread.h"
#include "ipc/ipc_sync_message_filter.h"
+#include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h"
#include "media/gpu/ipc/service/media_gpu_channel_manager.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/connector.h"
@@ -208,6 +209,11 @@ void GpuChildThread::Init(const base::Time& process_start_time) {
registry->AddInterface(base::Bind(&GpuChildThread::BindServiceFactoryRequest,
weak_factory_.GetWeakPtr()),
base::ThreadTaskRunnerHandle::Get());
+
+ registry->AddInterface(base::Bind(
+ &media::GpuJpegDecodeAccelerator::Create,
+ make_scoped_refptr(ChildProcess::current()->io_task_runner())));
+
if (GetContentClient()->gpu()) // NULL in tests.
GetContentClient()->gpu()->Initialize(this, registry.get());

Powered by Google App Engine
This is Rietveld 408576698