| 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..689890a04f84cb217e93604e21b3f87b003aea2d 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,10 @@ bool DXVAVideoDecodeAccelerator::Initialize(const Config& config,
|
|
|
| main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get();
|
|
|
| + if (!config.supported_output_formats.empty() &&
|
| + !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) {
|
|
|