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

Unified Diff: content/common/gpu/media/vt_video_decode_accelerator_mac.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, 9 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/vt_video_decode_accelerator_mac.cc
diff --git a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
index e2f73c0860ffb6e1b1032636340ab61752010b16..621af9b8f8d7fbd9793c6489df0b9d0af4f173c9 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
+++ b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
@@ -326,6 +326,11 @@ bool VTVideoDecodeAccelerator::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;
if (!InitializeVideoToolbox())

Powered by Google App Engine
This is Rietveld 408576698