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

Issue 2627173002: Adds locks for CommandBufferProxyImpl invalidation (Closed)

Created:
3 years, 11 months ago by emircan
Modified:
3 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds locks for CommandBufferProxyImpl invalidation This CL tries to fix the race condition between the destruction of CommandBufferProxyImpl and GpuVideo{En,De}codeAcceleratorHost. CommandBufferProxyImpl is destroyed on main_thread whereas the other is destroyed on media thread. - OnWillDeleteImpl() is called on main thread and the thread check is wrong. - Added lock around |impl_| use. - Post a task on media thread for OnChannelError(). BUG=627295, 674674 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2627173002 Cr-Commit-Position: refs/heads/master@{#443695} Committed: https://chromium.googlesource.com/chromium/src/+/ddd5cb6aad0421c0fa7f82207531ada865bfe7f0

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -11 lines) Patch
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc View 1 2 6 chunks +14 lines, -8 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_encode_accelerator_host.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_encode_accelerator_host.cc View 1 2 5 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 44 (33 generated)
emircan
sandersd@, I believe crbug.com/674674 is due to the same underlying issue you described on https://bugs.chromium.org/p/chromium/issues/detail?id=627295#c2. ...
3 years, 11 months ago (2017-01-12 00:31:17 UTC) #6
sandersd (OOO until July 31)
lgtm
3 years, 11 months ago (2017-01-12 19:06:53 UTC) #9
emircan
Thanks. danakj@ can you PTAL as well based on our discussion yesterday?
3 years, 11 months ago (2017-01-12 19:07:53 UTC) #11
danakj
LGTM https://codereview.chromium.org/2627173002/diff/1/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc File media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc (right): https://codereview.chromium.org/2627173002/diff/1/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc#newcode30 media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc:30: channel_error_cb_ = media::BindToCurrentLoop( Just store a task runner ...
3 years, 11 months ago (2017-01-13 18:27:51 UTC) #13
emircan
https://codereview.chromium.org/2627173002/diff/1/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc File media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc (right): https://codereview.chromium.org/2627173002/diff/1/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc#newcode30 media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc:30: channel_error_cb_ = media::BindToCurrentLoop( On 2017/01/13 18:27:50, danakj (slow) wrote: ...
3 years, 11 months ago (2017-01-13 19:08:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627173002/40001
3 years, 11 months ago (2017-01-13 19:26:43 UTC) #23
danakj
cool! thanks LGTM even more https://codereview.chromium.org/2627173002/diff/40001/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc File media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc (right): https://codereview.chromium.org/2627173002/diff/40001/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc#newcode15 media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc:15: #include "media/base/bind_to_current_loop.h" unused then ...
3 years, 11 months ago (2017-01-13 19:32:04 UTC) #24
emircan
https://codereview.chromium.org/2627173002/diff/40001/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc File media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc (right): https://codereview.chromium.org/2627173002/diff/40001/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc#newcode15 media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc:15: #include "media/base/bind_to_current_loop.h" On 2017/01/13 19:32:04, danakj (slow) wrote: > ...
3 years, 11 months ago (2017-01-13 19:41:09 UTC) #27
danakj
Super great, thanks.
3 years, 11 months ago (2017-01-13 19:42:03 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627173002/100001
3 years, 11 months ago (2017-01-13 22:11:10 UTC) #41
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 22:17:51 UTC) #44
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ddd5cb6aad0421c0fa7f82207531...

Powered by Google App Engine
This is Rietveld 408576698