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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2923933004: [NotForReview] Move GJDAH and GJDA to media/gpu/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
« no previous file with comments | « content/gpu/BUILD.gn ('k') | media/gpu/BUILD.gn » ('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 92f6e6fdc2783ccd81a2eab5350135e345fa3858..5c6397226d0733059e1c80e4ee40389901d23ad5 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -27,6 +27,7 @@
#include "gpu/ipc/service/gpu_watchdog_thread.h"
#include "ipc/ipc_sync_message_filter.h"
#include "media/gpu/ipc/service/media_gpu_channel_manager.h"
+#include "media/gpu/mojo/service/gpu_jpeg_decode_accelerator.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/connector.h"
#include "services/ui/gpu/interfaces/gpu_service.mojom.h"
@@ -208,6 +209,12 @@ 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())),
+ base::ThreadTaskRunnerHandle::Get());
+
if (GetContentClient()->gpu()) // NULL in tests.
GetContentClient()->gpu()->Initialize(this, registry.get());
« no previous file with comments | « content/gpu/BUILD.gn ('k') | media/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698