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

Unified Diff: media/video/video_decode_accelerator.h

Issue 1655083002: Enable SurfaceView fullscreen video on Android with WebMediaPlayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@avda-sv
Patch Set: Add an empty destructor to satisfy chromium-style Created 4 years, 10 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
« no previous file with comments | « media/renderers/default_renderer_factory.cc ('k') | no next file » | 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 f638ce4934338cd844b32d67d9cbb7609c6c5866..2b5f21131ac5659f4ff9be14e3bf70a3d72ab18c 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -11,6 +11,7 @@
#include <vector>
#include "media/base/bitstream_buffer.h"
+#include "media/base/surface_manager.h"
#include "media/base/video_decoder_config.h"
#include "media/video/picture.h"
#include "ui/gfx/geometry/size.h"
@@ -55,6 +56,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// client must return PictureBuffers to be sure that new frames will be
// provided via PictureReady.
NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0,
+
+ // Whether the VDA supports being configured with an output surface for
+ // it to render frames to. For example, SurfaceViews on Android.
+ SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1,
};
SupportedProfiles supported_profiles;
@@ -82,7 +87,7 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Config structure contains parameters required for the VDA initialization.
struct MEDIA_EXPORT Config {
- enum { kNoSurfaceID = -1 };
+ enum { kNoSurfaceID = SurfaceManager::kNoSurfaceID };
Config() = default;
Config(VideoCodecProfile profile);
« no previous file with comments | « media/renderers/default_renderer_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698