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

Issue 2192823004: Update StreamTextureProxy to accept a base::Closure (Closed)

Created:
4 years, 4 months ago by tguilbert
Modified:
4 years, 4 months ago
Reviewers:
watk
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, mlamouri+watch-media_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

Update StreamTextureProxy to accept a base::Closure StreamTextureProxy (STP) is currently tightly coupled to the VideoFrameProvider::Client (VFP::C). This forces classes that use STP to be aware of the VFP::C, and forces them to include files from cc/layers. This change updates STP to accept a custom callback to be triggered when the STP's OnFrameAvailable() is signaled. It also moves StreamTextureWrapper from media/blink to media/base/android, now that it no longer needs to include cc/layers/video_frame_provider.h. TEST= Made sure we could still use WMPA (opened an HLS stream on an android device) BUG=631178 Committed: https://crrev.com/f4d502c5ec011e3b5b3aea1669b1d6149d5b9aed Cr-Commit-Position: refs/heads/master@{#409100}

Patch Set 1 #

Patch Set 2 : Fixed comments #

Patch Set 3 : Fixed include guards #

Total comments: 26

Patch Set 4 : Addressing comments #

Total comments: 2

Patch Set 5 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -111 lines) Patch
M content/renderer/media/android/stream_texture_factory.h View 1 2 3 4 2 chunks +10 lines, -9 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory.cc View 1 2 3 4 2 chunks +19 lines, -22 lines 0 comments Download
M content/renderer/media/android/stream_texture_wrapper_impl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/android/stream_texture_wrapper_impl.cc View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 3 chunks +23 lines, -8 lines 0 comments Download
M media/base/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + media/base/android/stream_texture_wrapper.h View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M media/blink/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D media/blink/stream_texture_wrapper.h View 1 chunk +0 lines, -56 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
tguilbert
PTAL :) Thank you! Thomas
4 years, 4 months ago (2016-07-28 21:42:41 UTC) #2
watk
Nice one. I have about 50% confidence this is correct :) But that's about as ...
4 years, 4 months ago (2016-07-29 19:03:16 UTC) #3
tguilbert
TY for the comments. PTAL! (We can discuss thread safety offline if need be). https://codereview.chromium.org/2192823004/diff/40001/content/renderer/media/android/stream_texture_factory.cc ...
4 years, 4 months ago (2016-08-01 22:05:57 UTC) #4
watk
lgtm https://codereview.chromium.org/2192823004/diff/40001/content/renderer/media/android/stream_texture_factory.h File content/renderer/media/android/stream_texture_factory.h (right): https://codereview.chromium.org/2192823004/diff/40001/content/renderer/media/android/stream_texture_factory.h#newcode42 content/renderer/media/android/stream_texture_factory.h:42: void BindToLoop(int32_t stream_id, On 2016/08/01 22:05:57, ThomasGuilbert wrote: ...
4 years, 4 months ago (2016-08-01 22:30:04 UTC) #5
tguilbert
Thanks for the review! https://codereview.chromium.org/2192823004/diff/40001/content/renderer/media/android/stream_texture_factory.h File content/renderer/media/android/stream_texture_factory.h (right): https://codereview.chromium.org/2192823004/diff/40001/content/renderer/media/android/stream_texture_factory.h#newcode44 content/renderer/media/android/stream_texture_factory.h:44: scoped_refptr<base::SingleThreadTaskRunner> loop); On 2016/08/01 22:30:03, ...
4 years, 4 months ago (2016-08-01 23:03:18 UTC) #6
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/2192823004/80001
4 years, 4 months ago (2016-08-01 23:03:41 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-02 00:20:33 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 00:24:41 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f4d502c5ec011e3b5b3aea1669b1d6149d5b9aed
Cr-Commit-Position: refs/heads/master@{#409100}

Powered by Google App Engine
This is Rietveld 408576698