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

Issue 1746983002: Make Android StreamTexture implement GLStreamTextureImage (Closed)

Created:
4 years, 9 months ago by Tobias Sargeant
Modified:
4 years, 8 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, ccameron, Daniel Kurtz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Android StreamTexture implement GLStreamTextureImage Then make CopySubTextureCHROMIUM use the transform matrix provided by GLStreamTextureImage, and stop informing the compositor of the transform matrix. Video quad drawing applies the matrix automatically via the CHROMIUM_stream_texture_matrix extension. This has has the advantage that we no longer need custom texture copying code in StreamTextureAndroid and we also don't need the IPC that updates the compositor view of the transform matrix (because it is applied transparently when the texture is sampled from). This in turn means that the transform matrix can't get out of sync with the texture data. BUG=226218, 371500, 588837, 599848 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/8f2032aeb81c2a6a48ed2ed622859b59d84fbbaa Cr-Commit-Position: refs/heads/master@{#384122} Committed: https://crrev.com/9268401feeaaa16ffe7719d25e165108bddf9141 Cr-Commit-Position: refs/heads/master@{#385714}

Patch Set 1 #

Patch Set 2 : Remove resolved TODO #

Total comments: 12

Patch Set 3 : Fix webview in-process path to not report the matrix to client_, apply y-flips in texture copy inst… #

Patch Set 4 : Remove DidUpdateMatrix from VideoFrameProvider #

Patch Set 5 : Add convenience method to GLStreamTextureImage for getting a fixed y-orientation matrix, document t… #

Patch Set 6 : Remove a NOTREACHED that was added incorrectly. #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Call UpdateTexImage before fetching the surface texture matrix #

Total comments: 5

Patch Set 9 : Rebase #

Patch Set 10 : Don't remove the default stream texture matrix from cc/layers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -275 lines) Patch
M cc/layers/video_frame_provider.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M cc/layers/video_frame_provider_client_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/video_frame_provider_client_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -11 lines 0 comments Download
M cc/layers/video_frame_provider_client_impl_unittest.cc View 1 2 3 1 chunk +0 lines, -25 lines 0 comments Download
M content/common/gpu/stream_texture_android.h View 4 chunks +5 lines, -4 lines 0 comments Download
M content/common/gpu/stream_texture_android.cc View 1 2 3 4 5 6 7 8 9 7 chunks +13 lines, -116 lines 0 comments Download
M content/renderer/gpu/stream_texture_host_android.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download
M content/renderer/gpu/stream_texture_host_android.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -10 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory_synchronous_impl.cc View 1 2 3 4 5 6 2 chunks +1 line, -23 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gl_stream_texture_image.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 1 chunk +22 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 2 3 4 5 6 1 chunk +30 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 3 chunks +46 lines, -45 lines 0 comments Download
M gpu/ipc/common/gpu_messages.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -25 lines 0 comments Download
M media/blink/video_frame_compositor_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 61 (25 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746983002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746983002/1
4 years, 9 months ago (2016-02-29 21:26:51 UTC) #3
Tobias Sargeant
4 years, 9 months ago (2016-02-29 21:57:20 UTC) #7
liberato (no reviews please)
nice! https://codereview.chromium.org/1746983002/diff/20001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/1746983002/diff/20001/content/common/gpu/stream_texture_android.cc#newcode103 content/common/gpu/stream_texture_android.cc:103: xform[13] += xform[5]; i'm not sure how this ...
4 years, 9 months ago (2016-02-29 22:33:32 UTC) #9
dcheng
rs lgtm for content/common/gpu/gpu_messages.h deletions.
4 years, 9 months ago (2016-02-29 22:38:12 UTC) #10
Tobias Sargeant
https://codereview.chromium.org/1746983002/diff/20001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/1746983002/diff/20001/content/common/gpu/stream_texture_android.cc#newcode103 content/common/gpu/stream_texture_android.cc:103: xform[13] += xform[5]; On 2016/02/29 22:33:32, liberato wrote: > ...
4 years, 9 months ago (2016-02-29 23:57:50 UTC) #12
no sievers
So to remove this entirely (from VideoResourceProvider) we also need to fix the WebView in-process ...
4 years, 9 months ago (2016-03-01 00:50:28 UTC) #13
Tobias Sargeant
On 2016/03/01 00:50:28, sievers wrote: > So to remove this entirely (from VideoResourceProvider) we also ...
4 years, 9 months ago (2016-03-01 01:23:54 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746983002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746983002/60001
4 years, 9 months ago (2016-03-01 02:07:12 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/31238)
4 years, 9 months ago (2016-03-01 03:34:07 UTC) #18
Tobias Sargeant
https://codereview.chromium.org/1746983002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1746983002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13558 gpu/command_buffer/service/gles2_cmd_decoder.cc:13558: memcpy(transform_matrix, kIdentityMatrix, sizeof(transform_matrix)); On 2016/03/01 00:50:27, sievers wrote: > ...
4 years, 9 months ago (2016-03-01 21:56:12 UTC) #19
Tobias Sargeant
Dana: is it ok to remove DidUpdateMatrix from cc/layers now that we can get the ...
4 years, 9 months ago (2016-03-01 22:00:05 UTC) #21
Tobias Sargeant
ping
4 years, 9 months ago (2016-03-17 09:38:09 UTC) #23
liberato (no reviews please)
sorry for the delay. thanks -fl https://codereview.chromium.org/1746983002/diff/120001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/1746983002/diff/120001/content/common/gpu/stream_texture_android.cc#newcode94 content/common/gpu/stream_texture_android.cc:94: surface_texture_->GetTransformMatrix(xform); i think ...
4 years, 9 months ago (2016-03-17 14:38:01 UTC) #24
Tobias Sargeant
https://codereview.chromium.org/1746983002/diff/120001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/1746983002/diff/120001/content/common/gpu/stream_texture_android.cc#newcode94 content/common/gpu/stream_texture_android.cc:94: surface_texture_->GetTransformMatrix(xform); On 2016/03/17 14:38:01, liberato wrote: > i think ...
4 years, 9 months ago (2016-03-17 15:17:58 UTC) #25
liberato (no reviews please)
lgtm
4 years, 9 months ago (2016-03-17 15:23:36 UTC) #26
DaleCurtis
media/ lgtm
4 years, 9 months ago (2016-03-17 17:29:48 UTC) #27
no sievers
Is your patch missing the changes to StreamVideoDrawQuad and GLRenderer (TODO(liberato) there)? and thanks for ...
4 years, 9 months ago (2016-03-18 01:34:12 UTC) #28
Tobias Sargeant
https://codereview.chromium.org/1746983002/diff/140001/content/common/gpu/stream_texture_android.cc File content/common/gpu/stream_texture_android.cc (right): https://codereview.chromium.org/1746983002/diff/140001/content/common/gpu/stream_texture_android.cc#newcode94 content/common/gpu/stream_texture_android.cc:94: UpdateTexImage(); On 2016/03/18 01:34:11, sievers wrote: > Doesn't this ...
4 years, 9 months ago (2016-03-18 10:30:13 UTC) #29
Tobias Sargeant
On 2016/03/18 01:34:12, sievers wrote: > Is your patch missing the changes to StreamVideoDrawQuad and ...
4 years, 9 months ago (2016-03-18 12:00:35 UTC) #30
liberato (no reviews please)
On 2016/03/18 12:00:35, Tobias Sargeant wrote: > On 2016/03/18 01:34:12, sievers wrote: > > Is ...
4 years, 9 months ago (2016-03-19 05:58:56 UTC) #31
Tobias Sargeant
> multiplication: i agree. that thought had also crossed my mind when i was doing ...
4 years, 9 months ago (2016-03-21 15:43:12 UTC) #33
no sievers
lgtm
4 years, 9 months ago (2016-03-24 19:02:41 UTC) #34
Tobias Sargeant
Enne, could I please ask you to take a look at the cc/layers changes? Thanks.
4 years, 8 months ago (2016-03-29 09:50:38 UTC) #36
danakj
Oh, sorry I missed this. Deleting code LGTM
4 years, 8 months ago (2016-03-30 18:29:49 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746983002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746983002/140001
4 years, 8 months ago (2016-03-30 19:42:07 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/11176) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-03-30 19:44:41 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746983002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746983002/180001
4 years, 8 months ago (2016-03-30 21:16:44 UTC) #45
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 8 months ago (2016-03-30 22:38:33 UTC) #47
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/8f2032aeb81c2a6a48ed2ed622859b59d84fbbaa Cr-Commit-Position: refs/heads/master@{#384122}
4 years, 8 months ago (2016-03-30 22:40:40 UTC) #49
Daniel Kurtz
A revert of this CL (patchset #9 id:180001) has been created in https://codereview.chromium.org/1848923003/ by djkurtz@chromium.org. ...
4 years, 8 months ago (2016-04-01 17:24:46 UTC) #50
Tobias Sargeant
On 2016/04/01 17:24:46, Daniel Kurtz wrote: > A revert of this CL (patchset #9 id:180001) ...
4 years, 8 months ago (2016-04-06 13:08:38 UTC) #52
liberato (no reviews please)
lgtm
4 years, 8 months ago (2016-04-06 14:15:35 UTC) #53
no sievers
On 2016/04/06 13:08:38, Tobias Sargeant wrote: > On 2016/04/01 17:24:46, Daniel Kurtz wrote: > > ...
4 years, 8 months ago (2016-04-06 23:23:29 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746983002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746983002/200001
4 years, 8 months ago (2016-04-07 09:50:08 UTC) #57
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 8 months ago (2016-04-07 11:49:09 UTC) #59
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 11:51:37 UTC) #61
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9268401feeaaa16ffe7719d25e165108bddf9141
Cr-Commit-Position: refs/heads/master@{#385714}

Powered by Google App Engine
This is Rietveld 408576698