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

Unified Diff: chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc

Issue 2892863002: ArcBridge: Add VideoEncodeAccelerator implementation. (Closed)
Patch Set: Address nits from Kcwu 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: chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc
diff --git a/chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc b/chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc
index 03c7124e3ad346156f647b3ed603c8443bd11406..2989b731adfd2519eeaafb8245aed949ff79145a 100644
--- a/chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc
+++ b/chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc
@@ -31,6 +31,11 @@ void ConnectToVideoDecodeAcceleratorOnIOThread(
content::BindInterfaceInGpuProcess(std::move(request));
}
+void ConnectToEncodeAcceleratorOnIOThread(
Pawel Osciak 2017/06/14 03:57:38 s/ConnectToEncodeAcceleratorOnIOThread/ConnectToVi
Owen Lin 2017/06/14 09:13:59 Done.
+ mojom::VideoEncodeAcceleratorRequest request) {
+ content::BindInterfaceInGpuProcess(std::move(request));
+}
+
} // namespace
class VideoAcceleratorFactoryService : public mojom::VideoAcceleratorFactory {
@@ -47,7 +52,10 @@ class VideoAcceleratorFactoryService : public mojom::VideoAcceleratorFactory {
void CreateEncodeAccelerator(
mojom::VideoEncodeAcceleratorRequest request) override {
- // TODO(owenlin): Implement this function.
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&ConnectToEncodeAcceleratorOnIOThread,
+ base::Passed(&request)));
}
private:

Powered by Google App Engine
This is Rietveld 408576698