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

Unified Diff: media/video/video_decode_accelerator.h

Issue 2461073002: Use MediaCodec.setOutputSurface() for fullscreen transitions on M. (Closed)
Patch Set: Address comments. Created 4 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
« no previous file with comments | « media/gpu/ipc/service/gpu_video_decode_accelerator.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index b818a05503db22fbdbbadd86d48e31dfee384176..705542f614c124ac9a54bb42caff4defcca9a27f 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -106,8 +106,6 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Config structure contains parameters required for the VDA initialization.
struct MEDIA_EXPORT Config {
- enum { kNoSurfaceID = SurfaceManager::kNoSurfaceID };
-
// Specifies the allocation and handling mode for output PictureBuffers.
// When set to ALLOCATE, the VDA is expected to allocate backing memory
// for PictureBuffers at the time of AssignPictureBuffers() call.
@@ -143,11 +141,6 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Whether the client supports deferred initialization.
bool is_deferred_initialization_allowed = false;
- // An optional graphics surface that the VDA should render to. For setting
- // an output SurfaceView on Android. It's only valid when not equal to
- // |kNoSurfaceID|.
- int surface_id = kNoSurfaceID;
-
// Coded size of the video frame hint, subject to change.
gfx::Size initial_expected_coded_size = gfx::Size(320, 240);
@@ -291,6 +284,11 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// "seek".
virtual void Reset() = 0;
+ // An optional graphics surface that the VDA should render to. For setting
+ // an output SurfaceView on Android. Passing |kNoSurfaceID| will clear any
+ // previously set surface in favor of an internally generated texture.
+ virtual void SetSurface(int32_t surface_id);
+
// Destroys the decoder: all pending inputs are dropped immediately and the
// component is freed. This call may asynchornously free system resources,
// but its client-visible effects are synchronous. After this method returns
« no previous file with comments | « media/gpu/ipc/service/gpu_video_decode_accelerator.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698