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

Issue 868803007: [Cast] Refactor ExternalVideoEncoder for cleaner/simpler encapsulation. (Closed)

Created:
5 years, 10 months ago by miu
Modified:
5 years, 10 months ago
Reviewers:
hubbe
CC:
chromium-reviews, hclam+watch_chromium.org, posciak+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, mcasas+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cast] Refactor ExternalVideoEncoder for cleaner/simpler encapsulation. There was a lot of hopping around between two classes, each class having code that executes on two threads. This change makes ExternalVideoEncoder live entirely on the cast MAIN thread, and the VEA client live entirely on the VEA's own thread. This greatly simplified the code and improved readability (especially the create/init sequence). Also added a new FakeVideoEncodeAcceleratorFactory class to provide common functionality for multiple unit test modules. In a soon-upcoming change, the video_sender_unittest.cc code will start using it. BUG=325998, 451277 Committed: https://crrev.com/7ccf0ef39c36bed75b19ad08a87a0e93c60893ba Cr-Commit-Position: refs/heads/master@{#313852}

Patch Set 1 #

Patch Set 2 : No need to have create_vea_cb_ member. #

Total comments: 4

Patch Set 3 : Add clarification comments and TODOs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -357 lines) Patch
M media/cast/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M media/cast/cast_testing.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M media/cast/sender/external_video_encoder.h View 1 2 chunks +23 lines, -31 lines 0 comments Download
M media/cast/sender/external_video_encoder.cc View 1 2 9 chunks +179 lines, -239 lines 0 comments Download
M media/cast/sender/external_video_encoder_unittest.cc View 7 chunks +53 lines, -87 lines 0 comments Download
A media/cast/sender/fake_video_encode_accelerator_factory.h View 1 chunk +90 lines, -0 lines 0 comments Download
A media/cast/sender/fake_video_encode_accelerator_factory.cc View 1 chunk +81 lines, -0 lines 0 comments Download
M media/cast/sender/video_sender.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
miu
hubbe: PTAL.
5 years, 10 months ago (2015-01-29 01:27:04 UTC) #2
hubbe
LGTM https://codereview.chromium.org/868803007/diff/20001/media/cast/sender/external_video_encoder.cc File media/cast/sender/external_video_encoder.cc (right): https://codereview.chromium.org/868803007/diff/20001/media/cast/sender/external_video_encoder.cc#newcode102 media/cast/sender/external_video_encoder.cc:102: base::Bind(initialization_cb, Looks like there is a change in ...
5 years, 10 months ago (2015-01-29 23:29:15 UTC) #3
miu
Thanks. Addressed your comments: https://codereview.chromium.org/868803007/diff/20001/media/cast/sender/external_video_encoder.cc File media/cast/sender/external_video_encoder.cc (right): https://codereview.chromium.org/868803007/diff/20001/media/cast/sender/external_video_encoder.cc#newcode102 media/cast/sender/external_video_encoder.cc:102: base::Bind(initialization_cb, On 2015/01/29 23:29:15, hubbe ...
5 years, 10 months ago (2015-01-30 00:20:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868803007/40001
5 years, 10 months ago (2015-01-30 00:22:01 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-01-30 01:24:56 UTC) #7
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 01:25:39 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7ccf0ef39c36bed75b19ad08a87a0e93c60893ba
Cr-Commit-Position: refs/heads/master@{#313852}

Powered by Google App Engine
This is Rietveld 408576698