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: |