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

Unified Diff: components/arc/arc_bridge_service.h

Issue 1451353002: Implement GpuArcVideoService for arc video accelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use GpuProcessHost instead of GpuChannelHost Created 5 years, 1 month 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.h
diff --git a/components/arc/arc_bridge_service.h b/components/arc/arc_bridge_service.h
index e3417bc985756c0db52044b339df84c9da3d350b..e8f91571fd93a4fe91de42a1ae29d937537d489d 100644
--- a/components/arc/arc_bridge_service.h
+++ b/components/arc/arc_bridge_service.h
@@ -67,6 +67,9 @@ class ArcBridgeService : public IPC::Listener {
// Called whenever ARC's availability has changed for this system.
virtual void OnAvailableChanged(bool available) {}
+ // Called whenever to create video accelerator connection.
+ virtual void OnCreateArcVideoAcceleratorConnection() {}
Owen Lin 2015/12/07 09:05:23 How about rename it as OnRequestArcVideoAccelerato
kcwu 2015/12/10 10:17:37 Revised to use new ArcBridgeService's new observer
+
protected:
virtual ~Observer() {}
};
@@ -115,6 +118,8 @@ class ArcBridgeService : public IPC::Listener {
const std::string& device_type,
base::ScopedFD fd);
+ bool NotifyVideoAcceleratorConnectionCreated(IPC::ChannelHandle handle);
+
private:
friend class ArcBridgeTest;
FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Basic);
@@ -148,6 +153,8 @@ class ArcBridgeService : public IPC::Listener {
// interaction.
void OnInstanceReady();
+ void OnCreateArcVideoAcceleratorConnection();
+
// Changes the current state and notifies all observers.
void SetState(State state);

Powered by Google App Engine
This is Rietveld 408576698