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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator.cc

Issue 890603004: Support low latency mode decoding in the H/W video decoder on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | no next file » | 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.cc
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc
index 69ea9f7d72938268c4e9f9c182e9a29d0a157739..fb51f598811cc2a92f60922a9f49bc126b0660f0 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc
@@ -884,6 +884,12 @@ bool DXVAVideoDecodeAccelerator::CheckDecoderDxvaSupport() {
RETURN_ON_HR_FAILURE(hr, "Failed to enable DXVA H/W decoding", false);
}
+ hr = attributes->SetUINT32(CODECAPI_AVLowLatencyMode, TRUE);
+ if (SUCCEEDED(hr)) {
+ DVLOG(1) << "Successfully set Low latency mode on decoder.";
+ } else {
+ DVLOG(1) << "Failed to set Low latency mode on decoder. Error: " << hr;
+ }
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698