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

Unified Diff: media/gpu/android_video_decode_accelerator.h

Issue 2084143002: Make AVDA fall back to software decoding if needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed _l to auto_lock Created 4 years, 6 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 e5cc82049cbc2294d94636dbf7d93e93668234f1..69cd6d9d6ecefb97501506b78048cf513ed6cff6 100644
--- a/media/gpu/android_video_decode_accelerator.h
+++ b/media/gpu/android_video_decode_accelerator.h
@@ -203,6 +203,14 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
// is only a hint.
gfx::Size initial_expected_coded_size_;
+ // Should we allow MediaCodec to autodetect the codec type (true), or
+ // select a software decoder manually (false). This is because fallback to
+ // software when autodetecting can sometimes hang mediaserver.
+ bool allow_autodetection_ = false;
+
+ // Should we notify AVDATimerManager when codec configuration completes?
+ bool notify_completion_ = false;
+
protected:
friend class base::RefCountedThreadSafe<CodecConfig>;
virtual ~CodecConfig();

Powered by Google App Engine
This is Rietveld 408576698