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

Issue 2136103010: Add StreamTextureWrapper/StreamTextureWrapperImpl (Closed)

Created:
4 years, 5 months ago by tguilbert
Modified:
4 years, 4 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add StreamTextureWrapperImpl This change introduces the StreamTextureWrapper interface and its implementation. It is meant to be used as an alternative way to provide an Android Surface to the upcoming MediaPlayerRenderer (see crbug.com/631199). The main advantage of using a StreamTexture is that it allows non-fullscreen playback, as opposed to the SurfaceView. The actual transfering of the underlying SurfaceTexture accross processes will be covered in crbug.com/627658. The StreamTextureWrapper class encapsulates most of the StreamTexture logic from WMPA. TEST=video works in current MediaPlayerRenderer prototype. Added a simple contruction/destruction UT for STW_Impl. BUG=627632 Committed: https://crrev.com/1ed89c4109f83c56b60ede3e3c0b615c20feef37 Cr-Commit-Position: refs/heads/master@{#408279}

Patch Set 1 #

Patch Set 2 #

Total comments: 16

Patch Set 3 #

Patch Set 4 : Addressing comments #

Patch Set 5 : Renamed to StreamTextureWrapper, handled destruction #

Total comments: 34

Patch Set 6 : Addressed comments #

Patch Set 7 : Fixed include guards #

Total comments: 48

Patch Set 8 : Addressing comments #

Total comments: 9

Patch Set 9 : privatized destructors #

Total comments: 2

Patch Set 10 : Added simple UT #

Patch Set 11 : Marking DTor as override instead of virtual #

Patch Set 12 : Adding CONTENT_EXPORT to StreamTextureFactory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -1 line) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
A content/renderer/media/android/stream_texture_wrapper_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +129 lines, -0 lines 0 comments Download
A content/renderer/media/android/stream_texture_wrapper_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +186 lines, -0 lines 0 comments Download
A content/renderer/media/android/stream_texture_wrapper_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
M media/blink/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A media/blink/stream_texture_wrapper.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (22 generated)
tguilbert
PTAL :) N.B: I am currently investigating a bug related to WMPI crashing on destruction, ...
4 years, 5 months ago (2016-07-13 00:41:56 UTC) #2
liberato (no reviews please)
looks nice. i could use a little more high-level info about how this is going ...
4 years, 5 months ago (2016-07-13 16:42:50 UTC) #3
tguilbert
https://codereview.chromium.org/2136103010/diff/20001/content/renderer/media/android/surface_texture_frame_provider_impl.cc File content/renderer/media/android/surface_texture_frame_provider_impl.cc (right): https://codereview.chromium.org/2136103010/diff/20001/content/renderer/media/android/surface_texture_frame_provider_impl.cc#newcode19 content/renderer/media/android/surface_texture_frame_provider_impl.cc:19: void OnReleaseTexture( On 2016/07/13 16:42:50, liberato wrote: > static ...
4 years, 5 months ago (2016-07-14 02:47:03 UTC) #4
liberato (no reviews please)
i'm not sure that being a VideoFrameProvider buys much, to be honest. we can chat ...
4 years, 5 months ago (2016-07-14 16:41:30 UTC) #5
tguilbert
PTAL! - I renamed the classes to StreamTextureWrapper* - I added a default_deleter and deletion ...
4 years, 5 months ago (2016-07-21 22:03:38 UTC) #6
tguilbert
On 2016/07/21 22:03:38, ThomasGuilbert wrote: > PTAL! > > - I renamed the classes to ...
4 years, 5 months ago (2016-07-21 22:04:29 UTC) #7
DaleCurtis
Bunch of nits. https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode15 content/renderer/media/android/stream_texture_wrapper_impl.cc:15: static const uint32_t kGLTextureExternalOES = 0x8D65; ...
4 years, 5 months ago (2016-07-21 22:14:23 UTC) #9
tguilbert
Addressed Dale's comments. https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode15 content/renderer/media/android/stream_texture_wrapper_impl.cc:15: static const uint32_t kGLTextureExternalOES = 0x8D65; ...
4 years, 5 months ago (2016-07-21 23:06:42 UTC) #10
liberato (no reviews please)
lgtm % nits. https://codereview.chromium.org/2136103010/diff/120001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2136103010/diff/120001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode143 content/renderer/media/android/stream_texture_wrapper_impl.cc:143: main_task_runner_->PostTask( not sure if this matters ...
4 years, 5 months ago (2016-07-22 16:13:58 UTC) #11
DaleCurtis
https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.h File content/renderer/media/android/stream_texture_wrapper_impl.h (right): https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.h#newcode90 content/renderer/media/android/stream_texture_wrapper_impl.h:90: unsigned int texture_id_; On 2016/07/21 at 23:06:42, ThomasGuilbert wrote: ...
4 years, 5 months ago (2016-07-22 18:09:31 UTC) #12
watk
I mostly had nits. Also, reminder to remove your comments in the CL description that ...
4 years, 5 months ago (2016-07-23 03:13:41 UTC) #13
watk
https://codereview.chromium.org/2136103010/diff/120001/media/blink/stream_texture_wrapper.h File media/blink/stream_texture_wrapper.h (right): https://codereview.chromium.org/2136103010/diff/120001/media/blink/stream_texture_wrapper.h#newcode41 media/blink/stream_texture_wrapper.h:41: // Safely destroys the StreamTextureWrapper on the appropritate thread. ...
4 years, 5 months ago (2016-07-25 21:47:14 UTC) #14
tguilbert
https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.h File content/renderer/media/android/stream_texture_wrapper_impl.h (right): https://codereview.chromium.org/2136103010/diff/80001/content/renderer/media/android/stream_texture_wrapper_impl.h#newcode90 content/renderer/media/android/stream_texture_wrapper_impl.h:90: unsigned int texture_id_; On 2016/07/22 18:09:31, DaleCurtis wrote: > ...
4 years, 5 months ago (2016-07-26 00:13:52 UTC) #16
watk
https://codereview.chromium.org/2136103010/diff/140001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2136103010/diff/140001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode137 content/renderer/media/android/stream_texture_wrapper_impl.cc:137: InitializeOnMainThread(client, init_cb); It's worth noting in the header that ...
4 years, 4 months ago (2016-07-26 20:02:33 UTC) #17
DaleCurtis
Should we have a media/blink/android directory? https://codereview.chromium.org/2136103010/diff/140001/content/renderer/media/android/stream_texture_wrapper_impl.cc File content/renderer/media/android/stream_texture_wrapper_impl.cc (right): https://codereview.chromium.org/2136103010/diff/140001/content/renderer/media/android/stream_texture_wrapper_impl.cc#newcode20 content/renderer/media/android/stream_texture_wrapper_impl.cc:20: const scoped_refptr<content::StreamTextureFactory>& factories, ...
4 years, 4 months ago (2016-07-26 20:13:40 UTC) #18
tguilbert
@Dale we should not have a media/blink/android folder. I am planning on moving StreamTextureWrapper back ...
4 years, 4 months ago (2016-07-26 22:20:20 UTC) #19
DaleCurtis
sgtm, seems like you could write a tiny unit test for the impl class. Just ...
4 years, 4 months ago (2016-07-26 22:33:09 UTC) #20
tguilbert
@Dale I added a simple UT that creates and destroys a StreamTextureWrapperImpl. It is a ...
4 years, 4 months ago (2016-07-27 00:35:09 UTC) #22
DaleCurtis
lgtm
4 years, 4 months ago (2016-07-27 03:13:33 UTC) #23
watk
lgtm
4 years, 4 months ago (2016-07-27 19:01:20 UTC) #24
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/2136103010/200001
4 years, 4 months ago (2016-07-27 20:53:37 UTC) #34
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/2136103010/220001
4 years, 4 months ago (2016-07-27 22:04:12 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/197882) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-07-27 22:08:50 UTC) #40
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/2136103010/220001
4 years, 4 months ago (2016-07-27 22:13:31 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/237615) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-07-27 22:18:27 UTC) #44
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/2136103010/220001
4 years, 4 months ago (2016-07-27 22:38:21 UTC) #46
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-07-27 23:50:21 UTC) #48
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 23:51:35 UTC) #50
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/1ed89c4109f83c56b60ede3e3c0b615c20feef37
Cr-Commit-Position: refs/heads/master@{#408279}

Powered by Google App Engine
This is Rietveld 408576698