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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
7
8 #include "content/common/content_export.h"
9
10 #include "content/public/browser/android/video_surface_provider.h"
11
12 namespace content {
13
14 class WebContents;
15
16 class CONTENT_EXPORT VideoSurfaceManager {
17 public:
18 // Returns the Video Surface Manager.
19 static VideoSurfaceManager* GetInstance();
20
21 virtual ~VideoSurfaceManager() {}
22
23 // The default is to create an instance of ContentVideoView if an override
24 // provider has not been set.
25 virtual void SetOverrideVideoSurfaceProvider(
26 VideoSurfaceProvider* provider) = 0;
27 virtual void RemoveOverrideVideoSurfaceProvider(
28 VideoSurfaceProvider* provider) = 0;
29
30 // Returns the current video surface provider (there can only be one).
31 virtual VideoSurfaceProvider* GetVideoSurfaceProvider(
32 WebContents* web_contents) = 0;
33 };
34
35 } // namespace content
36 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_VIDEO_SURFACE_MANAGER_H_
OLDNEW
« 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