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

Unified Diff: media/video/video_decode_accelerator.h

Issue 1639963002: AndroidVideoDecodeAccelerator can now render to a SurfaceView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 4 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
« no previous file with comments | « content/common/gpu/media/avda_codec_image.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 87fac216057b8bd64ad71702c5c8bb76b225c0aa..f638ce4934338cd844b32d67d9cbb7609c6c5866 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -82,6 +82,8 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Config structure contains parameters required for the VDA initialization.
struct MEDIA_EXPORT Config {
+ enum { kNoSurfaceID = -1 };
+
Config() = default;
Config(VideoCodecProfile profile);
Config(const VideoDecoderConfig& video_decoder_config);
@@ -93,6 +95,11 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// The flag indicating whether the stream is encrypted.
bool is_encrypted = 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;
};
// Interface for collaborating with picture interface to provide memory for
« no previous file with comments | « content/common/gpu/media/avda_codec_image.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698