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

Issue 1846913004: MediaLog: Replace task posting in AddEvent with lock (Closed)

Created:
4 years, 8 months ago by wolenetz
Modified:
4 years, 8 months ago
Reviewers:
watk
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, xhwang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaLog: Replace task posting in AddEvent with lock Uses a lock to maintain coherency of sequence of AddEvent(). This change will help upcoming change(s) that need a coherent view of the most recently added pipeline and medialog error messages, regardless of which thread calls AddEvent() and which thread queries for the error message. BUG=472253 Committed: https://crrev.com/5038b564d4d05a4e52b0091e005dc86de9bbb4d6 Cr-Commit-Position: refs/heads/master@{#385024}

Patch Set 1 #

Patch Set 2 : Initializes |ipc_send_pending_|. Comment clean-ups. #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Addresses all comments so far. #

Total comments: 6

Patch Set 5 : Addresses watk@'s comments from PS4. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -39 lines) Patch
M content/renderer/media/render_media_log.h View 1 2 3 4 2 chunks +13 lines, -4 lines 0 comments Download
M content/renderer/media/render_media_log.cc View 1 2 3 4 3 chunks +43 lines, -35 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (14 generated)
wolenetz
Please take a look at patch set 2. Thanks!
4 years, 8 months ago (2016-03-31 23:02:46 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846913004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846913004/20001
4 years, 8 months ago (2016-03-31 23:03:50 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 00:27:56 UTC) #7
xhwang
Looking good. I just have a few nits/discussions. https://chromiumcodereview.appspot.com/1846913004/diff/20001/content/renderer/media/render_media_log.cc File content/renderer/media/render_media_log.cc (right): https://chromiumcodereview.appspot.com/1846913004/diff/20001/content/renderer/media/render_media_log.cc#newcode48 content/renderer/media/render_media_log.cc:48: Log(event.get()); ...
4 years, 8 months ago (2016-04-01 05:42:55 UTC) #8
wolenetz
Thanks for comments xhwang@. I believe I have addressed all of them in PS4. watk@, ...
4 years, 8 months ago (2016-04-04 18:30:32 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846913004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846913004/60001
4 years, 8 months ago (2016-04-04 18:31:40 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-04 19:45:10 UTC) #14
watk
https://codereview.chromium.org/1846913004/diff/60001/content/renderer/media/render_media_log.cc File content/renderer/media/render_media_log.cc (right): https://codereview.chromium.org/1846913004/diff/60001/content/renderer/media/render_media_log.cc#newcode67 content/renderer/media/render_media_log.cc:67: task_runner_->PostDelayedTask( Looks like this doesn't necessarily have to be ...
4 years, 8 months ago (2016-04-04 20:32:21 UTC) #15
wolenetz
Thanks for review. Please take a look at patch set 5. https://codereview.chromium.org/1846913004/diff/60001/content/renderer/media/render_media_log.cc File content/renderer/media/render_media_log.cc (right): ...
4 years, 8 months ago (2016-04-04 20:47:55 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846913004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846913004/80001
4 years, 8 months ago (2016-04-04 20:48:28 UTC) #18
watk
lgtm
4 years, 8 months ago (2016-04-04 20:52:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846913004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846913004/80001
4 years, 8 months ago (2016-04-04 20:57:06 UTC) #22
wolenetz
I'm going to hold off on landing this - I'm seeing some unexpected crashes in ...
4 years, 8 months ago (2016-04-04 21:20:07 UTC) #24
wolenetz
On 2016/04/04 21:20:07, wolenetz wrote: > I'm going to hold off on landing this - ...
4 years, 8 months ago (2016-04-04 21:31:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846913004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846913004/80001
4 years, 8 months ago (2016-04-04 21:32:25 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-04 22:07:25 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 22:08:49 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5038b564d4d05a4e52b0091e005dc86de9bbb4d6
Cr-Commit-Position: refs/heads/master@{#385024}

Powered by Google App Engine
This is Rietveld 408576698