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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 2045273005: Have VDA clients inform decoder of supported picture buffer formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: media/gpu/dxva_video_decode_accelerator_win.cc
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc
index cf841fa5342748c5adc1beba4a9b9738bc7b6d99..4f471f727aa462a35bb2dd3f088c9a5d83094a98 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -32,6 +32,7 @@
#include "base/memory/shared_memory.h"
#include "base/path_service.h"
#include "base/single_thread_task_runner.h"
+#include "base/stl_util.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "base/win/windows_version.h"
@@ -623,6 +624,9 @@ bool DXVAVideoDecodeAccelerator::Initialize(const Config& config,
main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get();
+ if (!ContainsValue(config.supported_output_formats, PIXEL_FORMAT_NV12))
+ share_nv12_textures_ = false;
+
bool profile_supported = false;
for (const auto& supported_profile : kSupportedProfiles) {
if (config.profile == supported_profile) {

Powered by Google App Engine
This is Rietveld 408576698