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

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

Issue 1859043005: Attempt to fix a crash in the GPU process while determining the max H.264 resolution which can be s… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment 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
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/dxva_video_decode_accelerator_win.h
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator_win.h b/content/common/gpu/media/dxva_video_decode_accelerator_win.h
index 0158e74ed8f92bb9df925b574937473f8473e064..16cc5e554d53c2f1f0ac3bfe6cead66dfb69440e 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator_win.h
+++ b/content/common/gpu/media/dxva_video_decode_accelerator_win.h
@@ -139,6 +139,12 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// Returns the maximum resolution for H264 video.
static std::pair<int, int> GetMaxH264Resolution();
+ // Certain AMD GPU drivers like R600, R700, Evergreen and Cayman and
+ // some second generation Intel GPU drivers crash if we create a video
+ // device with a resolution higher then 1920 x 1088. This function
+ // checks if the GPU is in this list and if yes returns true.
+ static bool IsLegacyGPU(ID3D11Device* device);
+
// Creates and initializes an instance of the D3D device and the
// corresponding device manager. The device manager instance is eventually
// passed to the IMFTransform interface implemented by the decoder.
« no previous file with comments | « no previous file | content/common/gpu/media/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698