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

Issue 138953009: Cast: Fix threading issues in VideoEncoderImpl (Closed)

Created:
6 years, 11 months ago by Alpha Left Google
Modified:
6 years, 11 months ago
Reviewers:
mikhal1
CC:
chromium-reviews, hclam+watch_chromium.org, mikhal+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, pwestin+watch_google.com, feature-media-reviews_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Cast: Fix threading issues in VideoEncoderImpl VideoEncoderImpl can be used after delete. We assumed that main thread out-live video encoder thread. This is not true for some use cases. For example in the renderer when video encoder thread is shared by multiple instances of CastSEnder. To fix this we need to separate Vp8Encoder and VideoEncoderImpl. VideoEncoderImpl will live on the main thread only. And Vp8Encoder will live on the video encoder thread only. Tested this change with vagrind and cast_unittests reports no error. TBR=mikhal@chromium.org BUG=336887 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246974 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247092

Patch Set 1 #

Patch Set 2 : upload again #

Patch Set 3 : upload again #

Patch Set 4 : bad merge now fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -67 lines) Patch
M media/cast/test/encode_decode_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M media/cast/video_sender/codecs/vp8/vp8_encoder.h View 3 chunks +8 lines, -0 lines 0 comments Download
M media/cast/video_sender/codecs/vp8/vp8_encoder.cc View 7 chunks +24 lines, -12 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl.h View 3 chunks +13 lines, -16 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl.cc View 5 chunks +78 lines, -39 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Alpha Left Google
6 years, 11 months ago (2014-01-24 01:44:32 UTC) #1
Alpha Left Google
This had been LGTMed in https://codereview.chromium.org/145443005/. I just split the change in VideoEncoderImpl into this ...
6 years, 11 months ago (2014-01-24 01:45:34 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/138953009/80001
6 years, 11 months ago (2014-01-24 01:46:43 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/138953009/200001
6 years, 11 months ago (2014-01-24 19:30:48 UTC) #4
commit-bot: I haz the power
Change committed as 246974
6 years, 11 months ago (2014-01-24 21:35:41 UTC) #5
Alpha Left Google
A revert of this CL has been created in https://codereview.chromium.org/132283006/ by hclam@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-24 22:26:58 UTC) #6
Alpha Left Google
I know what happened. There's one change that got dropped in the cl. that's why ...
6 years, 11 months ago (2014-01-24 22:39:20 UTC) #7
Alpha Left Google
On 2014/01/24 22:39:20, Alpha wrote: > I know what happened. There's one change that got ...
6 years, 11 months ago (2014-01-24 22:40:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/138953009/560001
6 years, 11 months ago (2014-01-24 22:41:51 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=251668
6 years, 11 months ago (2014-01-25 00:28:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/138953009/560001
6 years, 11 months ago (2014-01-25 01:20:24 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-25 07:42:43 UTC) #12
Message was sent while issue was closed.
Change committed as 247092

Powered by Google App Engine
This is Rietveld 408576698