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

Unified Diff: chrome/gpu/chrome_content_gpu_client.cc

Issue 2892863002: ArcBridge: Add VideoEncodeAccelerator implementation. (Closed)
Patch Set: add missing public_dep to the typemap file. Created 3 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 | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/gpu/gpu_arc_video_encode_accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/chrome_content_gpu_client.cc
diff --git a/chrome/gpu/chrome_content_gpu_client.cc b/chrome/gpu/chrome_content_gpu_client.cc
index 05cfc43f44e387a34514609ef5cd4b71c21cbccd..e5815ddbfad77f648592a1b037174170b7dd647c 100644
--- a/chrome/gpu/chrome_content_gpu_client.cc
+++ b/chrome/gpu/chrome_content_gpu_client.cc
@@ -21,6 +21,7 @@
#if defined(OS_CHROMEOS)
#include "chrome/gpu/gpu_arc_video_decode_accelerator.h"
+#include "chrome/gpu/gpu_arc_video_encode_accelerator.h"
#include "content/public/common/service_manager_connection.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#endif
@@ -68,6 +69,10 @@ void ChromeContentGpuClient::Initialize(
base::Bind(&ChromeContentGpuClient::CreateArcVideoDecodeAccelerator,
base::Unretained(this)),
base::ThreadTaskRunnerHandle::Get());
+ registry->AddInterface(
+ base::Bind(&ChromeContentGpuClient::CreateArcVideoEncodeAccelerator,
+ base::Unretained(this)),
+ base::ThreadTaskRunnerHandle::Get());
#endif
}
@@ -95,4 +100,12 @@ void ChromeContentGpuClient::CreateArcVideoDecodeAccelerator(
std::move(request));
}
+void ChromeContentGpuClient::CreateArcVideoEncodeAccelerator(
+ const service_manager::BindSourceInfo& source_info,
+ ::arc::mojom::VideoEncodeAcceleratorRequest request) {
+ mojo::MakeStrongBinding(
+ base::MakeUnique<chromeos::arc::GpuArcVideoEncodeAccelerator>(
+ gpu_preferences_),
+ std::move(request));
+}
#endif
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/gpu/gpu_arc_video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698