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

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

Issue 1816203003: Add an additional VDA::Flush() mode to return all allocated buffers. (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.cc
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
index c097811c2d3d82186cb110012a6807a431631df4..5b48d6075f9eb0b23084e34238e22035d6fccf22 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -332,6 +332,11 @@ bool AndroidVideoDecodeAccelerator::Initialize(const Config& config,
return false;
}
+ if (config.flush_mode != Config::FlushMode::KEEP_OUTPUT_BUFFERS) {
+ NOTIMPLEMENTED() << "Modes other than KEEP_OUTPUT_BUFFERS not implemented";
+ return false;
+ }
+
DCHECK(client);
client_ = client;
codec_config_ = new CodecConfig();
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | media/video/video_decode_accelerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698