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

Unified Diff: components/arc/arc_bridge_service.cc

Issue 1451353002: Implement GpuArcVideoService for arc video accelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Owen's comments: split GpuArcVideoServiceHost and named the new code arc::ArcVideoBridge Created 5 years 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: components/arc/arc_bridge_service.cc
diff --git a/components/arc/arc_bridge_service.cc b/components/arc/arc_bridge_service.cc
index 3c5f391482c31b691da219c83ac3ec743abceacf..1c62fda739aa17827bd308d21037b01f189ce1f7 100644
--- a/components/arc/arc_bridge_service.cc
+++ b/components/arc/arc_bridge_service.cc
@@ -94,6 +94,12 @@ void ArcBridgeService::OnSettingsInstanceReady(
FOR_EACH_OBSERVER(Observer, observer_list(), OnSettingsInstanceReady());
}
+void ArcBridgeService::OnVideoInstanceReady(VideoInstancePtr video_ptr) {
+ DCHECK(CalledOnValidThread());
+ video_ptr_ = std::move(video_ptr);
+ FOR_EACH_OBSERVER(Observer, observer_list(), OnVideoInstanceReady());
+}
+
void ArcBridgeService::SetState(State state) {
DCHECK(CalledOnValidThread());
// DCHECK on enum classes not supported.

Powered by Google App Engine
This is Rietveld 408576698