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

Unified Diff: content/public/browser/android/video_surface_manager.h

Issue 2567233002: Use GVR async reprojection video surface for fullscreen in VR shell
Patch Set: Refactor using new interface and manager, also rebased Created 3 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
Index: content/public/browser/android/video_surface_manager.h
diff --git a/content/public/browser/android/video_surface_manager.h b/content/public/browser/android/video_surface_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..186748fd7fa7352d53397b0dd820b64b573e63d8
--- /dev/null
+++ b/content/public/browser/android/video_surface_manager.h
@@ -0,0 +1,36 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
+
+#include "content/common/content_export.h"
+
+#include "content/public/browser/android/video_surface_provider.h"
+
+namespace content {
+
+class WebContents;
+
+class CONTENT_EXPORT VideoSurfaceManager {
+ public:
+ // Returns the Video Surface Manager.
+ static VideoSurfaceManager* GetInstance();
+
+ virtual ~VideoSurfaceManager() {}
+
+ // The default is to create an instance of ContentVideoView if an override
+ // provider has not been set.
+ virtual void SetOverrideVideoSurfaceProvider(
+ VideoSurfaceProvider* provider) = 0;
+ virtual void RemoveOverrideVideoSurfaceProvider(
+ VideoSurfaceProvider* provider) = 0;
+
+ // Returns the current video surface provider (there can only be one).
+ virtual VideoSurfaceProvider* GetVideoSurfaceProvider(
+ WebContents* web_contents) = 0;
+};
+
+} // namespace content
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
« no previous file with comments | « content/browser/media/android/video_surface_manager_impl.cc ('k') | content/public/browser/android/video_surface_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698