Index: media/gpu/android_video_decode_accelerator.h |
diff --git a/media/gpu/android_video_decode_accelerator.h b/media/gpu/android_video_decode_accelerator.h |
index 8470efaa40a18870e08009a19cc27b3e10bd1ad4..ec04094ae0d5ded80ccb32c29fe7e10d8c4b4c32 100644 |
--- a/media/gpu/android_video_decode_accelerator.h |
+++ b/media/gpu/android_video_decode_accelerator.h |
@@ -143,7 +143,7 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator |
// false on failure, and true if initialization was successful. This includes |
// synchronous and asynchronous init; the AVDA might not yet have a codec on |
// success, but async init will at least be in progress. |
- bool InitializePictureBufferManager(); |
+ bool InitializePictureBufferManager(bool force_async_init); |
liberato (no reviews please)
2016/09/13 15:34:28
i think that it's almost the same if one has Initi
DaleCurtis
2016/09/15 23:03:55
Good point. Done.
|
// A part of destruction process that is sometimes postponed after the drain. |
void ActualDestroy(); |
@@ -374,6 +374,10 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator |
// when the EOS buffer is received. |
bool codec_needs_reset_; |
+ // True if surface creation and |picture_buffer_manager_| initialization has |
+ // been defered until the first Decode() call. |
+ bool defer_surface_creation_; |
+ |
// Copy of the VDA::Config we were given. |
Config config_; |