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

Unified Diff: components/arc/arc_bridge_service.cc

Issue 1634443002: Revert "Implement GpuArcVideoService for arc video accelerator" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_service_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_service.cc
diff --git a/components/arc/arc_bridge_service.cc b/components/arc/arc_bridge_service.cc
index 62bbcf736f9a65566ad7843792bb2b34e511a7d9..8872e71f34b2e880ac6935aba2cf996a43e3c12b 100644
--- a/components/arc/arc_bridge_service.cc
+++ b/components/arc/arc_bridge_service.cc
@@ -69,8 +69,6 @@ void ArcBridgeService::AddObserver(Observer* observer) {
observer->OnPowerInstanceReady();
if (process_instance())
observer->OnProcessInstanceReady();
- if (video_instance())
- observer->OnVideoInstanceReady();
}
void ArcBridgeService::RemoveObserver(Observer* observer) {
@@ -305,30 +303,6 @@ void ArcBridgeService::OnSettingsInstanceReady(
// Obsolete interface.
}
-void ArcBridgeService::OnVideoInstanceReady(VideoInstancePtr video_ptr) {
- DCHECK(CalledOnValidThread());
- temporary_video_ptr_ = std::move(video_ptr);
- temporary_video_ptr_.QueryVersion(base::Bind(
- &ArcBridgeService::OnVideoVersionReady, weak_factory_.GetWeakPtr()));
-}
-
-void ArcBridgeService::OnVideoVersionReady(int32_t version) {
- DCHECK(CalledOnValidThread());
- video_ptr_ = std::move(temporary_video_ptr_);
- video_ptr_.set_connection_error_handler(base::Bind(
- &ArcBridgeService::CloseVideoChannel, weak_factory_.GetWeakPtr()));
- FOR_EACH_OBSERVER(Observer, observer_list(), OnVideoInstanceReady());
-}
-
-void ArcBridgeService::CloseVideoChannel() {
- DCHECK(CalledOnValidThread());
- if (!video_ptr_)
- return;
-
- video_ptr_.reset();
- FOR_EACH_OBSERVER(Observer, observer_list(), OnVideoInstanceClosed());
-}
-
void ArcBridgeService::SetState(State state) {
DCHECK(CalledOnValidThread());
// DCHECK on enum classes not supported.
@@ -360,7 +334,6 @@ void ArcBridgeService::CloseAllChannels() {
CloseNotificationsChannel();
ClosePowerChannel();
CloseProcessChannel();
- CloseVideoChannel();
}
} // namespace arc
« no previous file with comments | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698