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

Issue 1553603002: Use IDXGIKeyedMutex to synchronize between DXVA decoder and main context (Closed)

Created:
4 years, 11 months ago by jbauman
Modified:
4 years, 11 months ago
Reviewers:
ananta
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use IDXGIKeyedMutex to synchronize between DXVA decoder and main context When EGL_ANGLE_keyed_mutex is available, DXVAVideoDecodeAccelerator will create the picture buffer with D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX and use that instead of a fence to synchronize between the decoder context and GPU context. This has saved up to 0.2W in my testing (out of 5W), though the number is not entirely consistent. Chrome will create the texture itself and share it into ANGLE (rather than vice versa) so it can choose whether or not to use a keyed mutex. This helps in particular with D3D9Ex, which is incompatible with keyed mutexes. EGL_ANGLE_keyed_mutex is not yet enabled in ANGLE for chrome, so this won't do anything yet. BUG=337606 Committed: https://crrev.com/ca5b9de50edf9f8d00cbfd43d593691d259818dc Cr-Commit-Position: refs/heads/master@{#371998}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -71 lines) Patch
M content/common/gpu/media/dxva_video_decode_accelerator_win.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator_win.cc View 1 2 3 4 21 chunks +150 lines, -71 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
jbauman
4 years, 11 months ago (2015-12-30 02:27:11 UTC) #3
jbauman
ananta: ping
4 years, 11 months ago (2016-01-20 22:40:21 UTC) #4
ananta
https://codereview.chromium.org/1553603002/diff/20001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc File content/common/gpu/media/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/1553603002/diff/20001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc#newcode431 content/common/gpu/media/dxva_video_decode_accelerator_win.cc:431: if (decoder.d3d11_device_) { Please update the patch description to ...
4 years, 11 months ago (2016-01-22 00:40:19 UTC) #5
jbauman
PTAL. On 2016/01/22 00:40:19, ananta wrote: > https://codereview.chromium.org/1553603002/diff/20001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc > File content/common/gpu/media/dxva_video_decode_accelerator_win.cc (right): > > https://codereview.chromium.org/1553603002/diff/20001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc#newcode431 ...
4 years, 11 months ago (2016-01-26 00:04:06 UTC) #7
ananta
https://codereview.chromium.org/1553603002/diff/40001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc File content/common/gpu/media/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/1553603002/diff/40001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc#newcode558 content/common/gpu/media/dxva_video_decode_accelerator_win.cc:558: return false; Should we be logging errors here? https://codereview.chromium.org/1553603002/diff/40001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc#newcode642 ...
4 years, 11 months ago (2016-01-26 23:09:16 UTC) #8
jbauman
PTAL. Added logging. On 2016/01/26 23:09:16, ananta wrote: > https://codereview.chromium.org/1553603002/diff/40001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc > File content/common/gpu/media/dxva_video_decode_accelerator_win.cc (right): > ...
4 years, 11 months ago (2016-01-27 22:52:54 UTC) #9
ananta
lgtm % nit https://codereview.chromium.org/1553603002/diff/60001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc File content/common/gpu/media/dxva_video_decode_accelerator_win.cc (right): https://codereview.chromium.org/1553603002/diff/60001/content/common/gpu/media/dxva_video_decode_accelerator_win.cc#newcode1304 content/common/gpu/media/dxva_video_decode_accelerator_win.cc:1304: use_keyed_mutex_ = Please initialize this member ...
4 years, 11 months ago (2016-01-28 02:32:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553603002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553603002/80001
4 years, 11 months ago (2016-01-28 03:04:15 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-28 03:49:03 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2016-01-28 03:50:52 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ca5b9de50edf9f8d00cbfd43d593691d259818dc
Cr-Commit-Position: refs/heads/master@{#371998}

Powered by Google App Engine
This is Rietveld 408576698