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

Issue 2076423004: Remove calls to MessageLoop::current() in media. (Closed)

Created:
4 years, 6 months ago by fdoray
Modified:
4 years, 5 months ago
Reviewers:
chcunningham
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, piman+watch_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove calls to MessageLoop::current() in media. Why? The fact that there's a MessageLoop on the thread is an unnecessary implementation detail. When browser threads are migrated to base/task_scheduler, tasks will no longer have access to a MessageLoop. These changes were generated manually. BUG=616447 R=chcunningham@chromium.org Committed: https://crrev.com/3f9e59a94ddd7a183c75eef4f4d321e840d2d954 Cr-Commit-Position: refs/heads/master@{#402911}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : self-review #

Total comments: 4

Patch Set 4 : fix build error #

Patch Set 5 : add missing include #

Total comments: 6

Patch Set 6 : CR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -169 lines) Patch
M media/audio/alsa/alsa_output.h View 1 5 chunks +8 lines, -15 lines 0 comments Download
M media/audio/alsa/alsa_output.cc View 15 chunks +18 lines, -20 lines 0 comments Download
M media/audio/sounds/test_data.h View 2 chunks +3 lines, -5 lines 0 comments Download
M media/audio/sounds/test_data.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M media/base/test_helpers.h View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M media/base/test_helpers.cc View 1 2 3 4 5 4 chunks +10 lines, -13 lines 0 comments Download
M media/capture/video/file_video_capture_device.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M media/gpu/v4l2_image_processor.cc View 10 chunks +10 lines, -9 lines 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.cc View 1 29 chunks +31 lines, -30 lines 0 comments Download
M media/gpu/v4l2_video_encode_accelerator.cc View 1 19 chunks +24 lines, -22 lines 0 comments Download
M media/gpu/vaapi_video_decode_accelerator.h View 3 chunks +5 lines, -4 lines 0 comments Download
M media/gpu/vaapi_video_decode_accelerator.cc View 1 2 3 29 chunks +39 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
chcunningham
Looks good, but I'll take another pass after you rebase https://codereview.chromium.org/2076423004/diff/1/media/audio/audio_device_thread.cc File media/audio/audio_device_thread.cc (right): https://codereview.chromium.org/2076423004/diff/1/media/audio/audio_device_thread.cc#newcode47 ...
4 years, 6 months ago (2016-06-21 01:34:36 UTC) #1
chcunningham
Bots are sad about some syntax errors. I found 2, but there may be more ...
4 years, 6 months ago (2016-06-21 21:29:59 UTC) #2
fdoray
PTAnL https://codereview.chromium.org/2076423004/diff/1/media/audio/audio_device_thread.cc File media/audio/audio_device_thread.cc (right): https://codereview.chromium.org/2076423004/diff/1/media/audio/audio_device_thread.cc#newcode47 media/audio/audio_device_thread.cc:47: void Stop(scoped_refptr<base::SingleThreadTaskRunner> task_runner_for_join); On 2016/06/21 01:34:36, chcunningham wrote: ...
4 years, 5 months ago (2016-06-29 15:44:31 UTC) #3
chcunningham
lgtm % nits https://codereview.chromium.org/2076423004/diff/80001/media/base/test_helpers.cc File media/base/test_helpers.cc (right): https://codereview.chromium.org/2076423004/diff/80001/media/base/test_helpers.cc#newcode70 media/base/test_helpers.cc:70: DCHECK(CalledOnValidThread()); This is sort of tautological ...
4 years, 5 months ago (2016-06-29 18:10:05 UTC) #4
fdoray
https://codereview.chromium.org/2076423004/diff/80001/media/base/test_helpers.cc File media/base/test_helpers.cc (right): https://codereview.chromium.org/2076423004/diff/80001/media/base/test_helpers.cc#newcode70 media/base/test_helpers.cc:70: DCHECK(CalledOnValidThread()); On 2016/06/29 18:10:04, chcunningham wrote: > This is ...
4 years, 5 months ago (2016-06-29 18:20:18 UTC) #5
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/2076423004/100001
4 years, 5 months ago (2016-06-29 18:22:03 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-29 19:53:45 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 19:54:45 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 19:55:01 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3f9e59a94ddd7a183c75eef4f4d321e840d2d954
Cr-Commit-Position: refs/heads/master@{#402911}

Powered by Google App Engine
This is Rietveld 408576698