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

Issue 1456993004: media::FFmpegVideoDecoder: remove ctor param |task_runner| and use a ThreadChecker instead. (Closed)

Created:
5 years, 1 month ago by mcasas
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media::FFmpegVideoDecoder: remove ctor param |task_runner| and use a ThreadChecker instead. This CL removed the |task_runner| passed on construction to FFmpegVideoDecoder since: "... is used in just one location for PostTask()ing. The class itself is otherwise mostly single threaded (except perhaps construction), and passing a |task_runner| as ctor argument is confusingly indicating the opposite. A |thread_checker_| basically tells that a(ll) methods are run in a given thread, whichever this is." (from discussion in http://crrev.com/1438233003, which has sadly been reverted for unrelated issues, and is going to be relanded as http://crrev.com/1447343004). Removal of this |task_runner| is also necessary for using these two classes from WebRtc, see the linekd bug. BUG=554737 TEST=This is a tiny change, all unittest and content_browsertests should cover it. Committed: https://crrev.com/97e43b3e9b64da825f925a047b8d91e75260fd82 Cr-Commit-Position: refs/heads/master@{#360628}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -19 lines) Patch
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 3 chunks +3 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/default_renderer_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/test/pipeline_integration_test_base.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
mcasas
dalecurtis@/chcunningham@ PTAL
5 years, 1 month ago (2015-11-19 01:30:24 UTC) #3
DaleCurtis
Seems fine, lgtm
5 years, 1 month ago (2015-11-19 02:09:00 UTC) #5
mcasas
bbudge@ tiny thing in content/renderer/pepper/video_decoder_shim.cc
5 years, 1 month ago (2015-11-19 15:44:44 UTC) #7
bbudge
content/renderer/pepper lgtm
5 years, 1 month ago (2015-11-19 17:06:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456993004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456993004/20001
5 years, 1 month ago (2015-11-19 17:07:44 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:20001)
5 years, 1 month ago (2015-11-19 18:21:39 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/97e43b3e9b64da825f925a047b8d91e75260fd82 Cr-Commit-Position: refs/heads/master@{#360628}
5 years, 1 month ago (2015-11-19 18:22:44 UTC) #12
mcasas
5 years, 1 month ago (2015-11-19 20:09:48 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:20001) has been created in
https://codereview.chromium.org/1459163003/ by mcasas@chromium.org.

The reason for reverting is: Broke compilation in a Mac bot
(https://chromegw.corp.google.com/i/official.desktop.continuous/builders/mac%2...)
(I wonder why the CQ passed)
http://crbug.com/558587.

Powered by Google App Engine
This is Rietveld 408576698