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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 2682723003: Make disabling accelerated VPX decoding a GPU driver bug workaround. (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.h ('k') | media/gpu/gpu_video_decode_accelerator_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 acf9424c6c8706b7479704073012cf54134a9a9f..ff7fc4b1e891836e3677404aca131d4d781a6d2e 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -504,7 +504,9 @@ DXVAVideoDecodeAccelerator::DXVAVideoDecodeAccelerator(
use_keyed_mutex_(false),
using_angle_device_(false),
enable_accelerated_vpx_decode_(
- gpu_preferences.enable_accelerated_vpx_decode),
+ workarounds.disable_accelerated_vpx_decode
+ ? gpu::GpuPreferences::VpxDecodeVendors::VPX_VENDOR_NONE
+ : gpu_preferences.enable_accelerated_vpx_decode),
processing_config_changed_(false),
weak_this_factory_(this) {
weak_ptr_ = weak_this_factory_.GetWeakPtr();
@@ -1193,7 +1195,8 @@ GLenum DXVAVideoDecodeAccelerator::GetSurfaceInternalFormat() const {
// static
VideoDecodeAccelerator::SupportedProfiles
DXVAVideoDecodeAccelerator::GetSupportedProfiles(
- const gpu::GpuPreferences& preferences) {
+ const gpu::GpuPreferences& preferences,
+ const gpu::GpuDriverBugWorkarounds& workarounds) {
TRACE_EVENT0("gpu,startup",
"DXVAVideoDecodeAccelerator::GetSupportedProfiles");
@@ -1209,7 +1212,8 @@ DXVAVideoDecodeAccelerator::GetSupportedProfiles(
}
}
for (const auto& supported_profile : kSupportedProfiles) {
- if (!preferences.enable_accelerated_vpx_decode &&
+ if ((!preferences.enable_accelerated_vpx_decode ||
+ workarounds.disable_accelerated_vpx_decode) &&
(supported_profile >= VP8PROFILE_MIN) &&
(supported_profile <= VP9PROFILE_MAX)) {
continue;
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.h ('k') | media/gpu/gpu_video_decode_accelerator_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698