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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator_win.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/dxva_video_decode_accelerator_win.cc
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator_win.cc b/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
index adb2f9e3f0f0e38b7f3dff65b5b0af6c77f31221..154e52026b5120e5741618e6535275bee0a0d83e 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
+++ b/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
@@ -942,6 +942,11 @@ bool DXVAVideoDecodeAccelerator::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;
+ }
+
client_ = client;
main_thread_task_runner_ = base::MessageLoop::current()->task_runner();

Powered by Google App Engine
This is Rietveld 408576698