diff options
author | kcwu <kcwu@chromium.org> | 2016-01-11 20:51:34 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-12 04:52:46 +0000 |
commit | daa96926c4bd58df2790c0e12fc92d858243ed0a (patch) | |
tree | 1effd67a74868aa12c3de5ef9ab4b410aa9dc474 /components/arc/arc_service_manager.cc | |
parent | 483df9304bb678dd50b435a41c063a3aed96d10f (diff) | |
download | chromium_src-daa96926c4bd58df2790c0e12fc92d858243ed0a.zip chromium_src-daa96926c4bd58df2790c0e12fc92d858243ed0a.tar.gz chromium_src-daa96926c4bd58df2790c0e12fc92d858243ed0a.tar.bz2 |
Implement GpuArcVideoService for arc video accelerator
GpuArcVideoService creates new channel and dispatch IPC to
ArcVideoAccelerator.
BUG=b/25057601
Review URL: https://codereview.chromium.org/1451353002
Cr-Commit-Position: refs/heads/master@{#368797}
Diffstat (limited to 'components/arc/arc_service_manager.cc')
-rw-r--r-- | components/arc/arc_service_manager.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc index 9b8bd81..3f56538 100644 --- a/components/arc/arc_service_manager.cc +++ b/components/arc/arc_service_manager.cc @@ -4,6 +4,8 @@ #include "components/arc/arc_service_manager.h" +#include <utility> + #include "base/sequenced_task_runner.h" #include "base/thread_task_runner_handle.h" #include "components/arc/arc_bridge_bootstrap.h" @@ -13,6 +15,7 @@ #include "components/arc/input/arc_input_bridge.h" #include "components/arc/power/arc_power_bridge.h" #include "components/arc/settings/arc_settings_bridge.h" +#include "components/arc/video/arc_video_bridge.h" namespace arc { @@ -25,19 +28,22 @@ ArcServiceManager* g_arc_service_manager = nullptr; ArcServiceManager::ArcServiceManager( scoped_ptr<ArcAuthService> auth_service, - scoped_ptr<ArcSettingsBridge> settings_bridge) + scoped_ptr<ArcSettingsBridge> settings_bridge, + scoped_ptr<ArcVideoBridge> video_bridge) : arc_bridge_service_( new ArcBridgeServiceImpl(ArcBridgeBootstrap::Create())), arc_auth_service_(std::move(auth_service)), arc_clipboard_bridge_(new ArcClipboardBridge(arc_bridge_service_.get())), arc_input_bridge_(ArcInputBridge::Create(arc_bridge_service_.get())), arc_settings_bridge_(std::move(settings_bridge)), - arc_power_bridge_(new ArcPowerBridge(arc_bridge_service_.get())) { + arc_power_bridge_(new ArcPowerBridge(arc_bridge_service_.get())), + arc_video_bridge_(std::move(video_bridge)) { DCHECK(!g_arc_service_manager); g_arc_service_manager = this; arc_settings_bridge_->StartObservingBridgeServiceChanges(); arc_auth_service_->StartObservingBridgeServiceChanges(); + arc_video_bridge_->StartObservingBridgeServiceChanges(); } ArcServiceManager::~ArcServiceManager() { |