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

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: 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
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..4496d4aeeccbf0db6ca5600df5a9d063dcdeb163 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 {
+ static const int kNullSurfaceID = -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
+ // |kNullSurfaceID|.
+ int surface_id = kNullSurfaceID;
};
// Interface for collaborating with picture interface to provide memory for
« content/common/gpu/media/avda_codec_image.h ('K') | « 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