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

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1918623002: Use the MediaCodec flush workaround in more cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: content/common/gpu/media/android_video_decode_accelerator.h
diff --git a/content/common/gpu/media/android_video_decode_accelerator.h b/content/common/gpu/media/android_video_decode_accelerator.h
index 9e0d8ab9546e02b2818074abe01c6e3af95fb9c9..576fba9dedd24b6c7c26b18f16915de6c68148f9 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.h
+++ b/content/common/gpu/media/android_video_decode_accelerator.h
@@ -380,6 +380,10 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
// called NotifyInitializationComplete.
bool deferred_initialization_pending_;
+ // Whether the current |media_codec_| supports flush() or needs to be
+ // recreated.
+ bool codec_needs_flush_workaround_;
+
// WeakPtrFactory for posting tasks back to |this|.
base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
« no previous file with comments | « no previous file | content/common/gpu/media/android_video_decode_accelerator.cc » ('j') | media/base/android/media_codec_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698