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

Unified Diff: media/gpu/android_video_decode_accelerator.h

Issue 2333983002: Reduce number of active codecs on low end devices. (Closed)
Patch Set: Created 4 years, 3 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/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_;

Powered by Google App Engine
This is Rietveld 408576698