| 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
|
|
|