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

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

Issue 1822983002: Support external buffer import in VDA interface and add a V4L2SVDA impl. (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 b4ee8f0b682e59b2309eac1898e05a2b30f5146c..2f270108550b78b543d306c1a134cadc7bd902f8 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
+++ b/content/common/gpu/media/dxva_video_decode_accelerator_win.cc
@@ -940,6 +940,11 @@ bool DXVAVideoDecodeAccelerator::Initialize(const Config& config,
return false;
}
+ if (config.output_mode != Config::OutputMode::ALLOCATE) {
+ NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA";
+ return false;
+ }
+
client_ = client;
main_thread_task_runner_ = base::MessageLoop::current()->task_runner();
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | content/common/gpu/media/generic_v4l2_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698