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

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed)

Created:
4 years, 9 months ago by Tobias Sargeant
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. Regardless of whether we have a stream texture matrix, we should apply the transformation matrix held by the StreamTextureDrawQuad instance. Change the implementation of the extension to always premultiply either the stream texture matrix or the identity matrix by the passed transformation matrix. BUG=597681 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/5897d75b89294c388df2ec16b7519ecd635cc148 Committed: https://crrev.com/fc9d613c03b8e72ddfbc9f43d87119d29f96fdee Cr-Original-Commit-Position: refs/heads/master@{#405507} Cr-Commit-Position: refs/heads/master@{#409543}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reorder UV transformations so that the transformation to SurfaceTexture texel space is done last. #

Patch Set 3 : Rebase #

Total comments: 7

Patch Set 4 : Remove y-flip from shader, rename GetFlippedTextureMatrix to GetChromiumTextureMatrix #

Patch Set 5 : GetTextureMatrix should be the only available method #

Total comments: 3

Patch Set 6 : Rebase, and remove the default y-flip matrix from cc/layers #

Patch Set 7 : remove stream_texture_matrix_ entirely #

Patch Set 8 : use gfx::Transform for matrix multiply #

Total comments: 1

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Patch Set 11 : Re-run build_gles2_cmd_buffer.py #

Patch Set 12 : rebase [If you wait by the river long enough, the bodies of your gyp files will float by] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -92 lines) Patch
M cc/layers/video_frame_provider_client_impl.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M cc/layers/video_frame_provider_client_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -14 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -7 lines 0 comments Download
M cc/output/shader.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt View 1 2 chunks +8 lines, -8 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_implementation_impl_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gl_stream_texture_image.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/ipc/service/stream_texture_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/avda_codec_image.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 86 (39 generated)
Tobias Sargeant
PTAL. I decided that this was best done as a separate CL.
4 years, 9 months ago (2016-03-21 15:42:32 UTC) #4
liberato (no reviews please)
https://codereview.chromium.org/1818073002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1818073002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7548 gpu/command_buffer/service/gles2_cmd_decoder.cc:7548: // Pre-multiply |gl_matrix| by |post_transform|. are you sure that ...
4 years, 9 months ago (2016-03-21 16:21:57 UTC) #6
Tobias Sargeant
On 2016/03/21 16:21:57, liberato wrote: > https://codereview.chromium.org/1818073002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/1818073002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7548 > ...
4 years, 9 months ago (2016-03-21 17:29:05 UTC) #7
Tobias Sargeant
In the vertex shader we have: v_texCoord = vec2(texMatrix * vec4(a_texCoord.x, 1.0 - a_texCoord.y, 0.0, ...
4 years, 9 months ago (2016-03-22 14:26:43 UTC) #8
Tobias Sargeant
This needs to land after https://codereview.chromium.org/1746983002 because the correctness of this CL depends on not ...
4 years, 9 months ago (2016-03-22 15:21:10 UTC) #10
liberato (no reviews please)
On 2016/03/22 14:26:43, Tobias Sargeant wrote: > In the vertex shader we have: > > ...
4 years, 9 months ago (2016-03-22 15:29:11 UTC) #11
Tobias Sargeant
> we have some devices that have non-trivial ST matrices. don't those tell us if ...
4 years, 9 months ago (2016-03-22 15:33:11 UTC) #12
liberato (no reviews please)
On 2016/03/22 15:33:11, Tobias Sargeant wrote: > > we have some devices that have non-trivial ...
4 years, 9 months ago (2016-03-22 15:44:25 UTC) #13
liberato (no reviews please)
https://codereview.chromium.org/1818073002/diff/60001/cc/output/shader.cc File cc/output/shader.cc (right): https://codereview.chromium.org/1818073002/diff/60001/cc/output/shader.cc#newcode756 cc/output/shader.cc:756: vec2(1.0, -1.0) * (texMatrix * vec4(a_texCoord.xy, 0.0, 1.0)).xy; is ...
4 years, 8 months ago (2016-03-31 15:03:16 UTC) #15
Tobias Sargeant
Ok, I think what we need to do is even more subtle. The transform pipeline ...
4 years, 8 months ago (2016-03-31 20:46:13 UTC) #16
liberato (no reviews please)
On 2016/03/31 20:46:13, Tobias Sargeant wrote: > Ok, I think what we need to do ...
4 years, 8 months ago (2016-03-31 21:41:40 UTC) #17
Tobias Sargeant
I think this is good to go now. PTAL. +sky for mojo autogen stamp. +enne ...
4 years, 8 months ago (2016-04-01 11:59:10 UTC) #19
liberato (no reviews please)
lgtm, nice! -fl https://codereview.chromium.org/1818073002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1818073002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7629 gpu/command_buffer/service/gles2_cmd_decoder.cc:7629: image->GetTextureMatrix(gl_matrix); On 2016/04/01 11:59:10, Tobias Sargeant ...
4 years, 8 months ago (2016-04-01 14:07:13 UTC) #20
no sievers
This looks good, but +ccameron to help with checking this for Mac. I didn't know ...
4 years, 8 months ago (2016-04-01 21:39:54 UTC) #22
no sievers
> [v]quad coords -> [A]SVDQ transform (chromium texcoords) -> [B]y-flip (SurfaceTexture texcoords) -> [C]SurfaceTexture matrix ...
4 years, 8 months ago (2016-04-01 21:46:01 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818073002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818073002/140001
4 years, 8 months ago (2016-04-08 17:45:58 UTC) #25
commit-bot: I haz the power
Dry run: 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/16363) ios_dbg_simulator_ninja on ...
4 years, 8 months ago (2016-04-08 17:49:02 UTC) #27
Tobias Sargeant
On 2016/04/01 21:46:01, sievers wrote: > > [v]quad coords -> [A]SVDQ transform (chromium texcoords) -> ...
4 years, 8 months ago (2016-04-08 17:52:57 UTC) #28
no sievers
https://codereview.chromium.org/1818073002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1818073002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7632 gpu/command_buffer/service/gles2_cmd_decoder.cc:7632: for (int r = 0; r < 4; ++r) ...
4 years, 8 months ago (2016-04-11 18:08:50 UTC) #29
Tobias Sargeant
https://codereview.chromium.org/1818073002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1818073002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7632 gpu/command_buffer/service/gles2_cmd_decoder.cc:7632: for (int r = 0; r < 4; ++r) ...
4 years, 8 months ago (2016-04-12 11:05:24 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818073002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818073002/160001
4 years, 8 months ago (2016-04-12 11:05:58 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/49140)
4 years, 8 months ago (2016-04-12 11:22:49 UTC) #34
Tobias Sargeant
On 2016/04/12 11:22:49, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 8 months ago (2016-04-12 12:48:02 UTC) #35
no sievers
Yea the failed Android builds seem to be component builds, so it looks like there ...
4 years, 8 months ago (2016-04-12 18:12:02 UTC) #36
Tobias Sargeant
On 2016/04/12 18:12:02, sievers wrote: > Yea the failed Android builds seem to be component ...
4 years, 8 months ago (2016-04-12 18:43:36 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818073002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818073002/180001
4 years, 7 months ago (2016-05-24 10:49:16 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/208379)
4 years, 7 months ago (2016-05-24 11:18:46 UTC) #41
no sievers
lgtm
4 years, 5 months ago (2016-07-01 20:44:51 UTC) #42
Tobias Sargeant
Enne, are you ok with the cc/ changes?
4 years, 5 months ago (2016-07-11 11:15:53 UTC) #43
enne (OOO)
lgtm
4 years, 5 months ago (2016-07-11 18:05:12 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/1818073002/220001
4 years, 5 months ago (2016-07-14 10:30:24 UTC) #53
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 11:31:25 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/255800)
4 years, 5 months ago (2016-07-14 13:45:59 UTC) #56
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/1818073002/220001
4 years, 5 months ago (2016-07-14 15:35:33 UTC) #58
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 15:35:37 UTC) #59
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 5 months ago (2016-07-14 17:08:10 UTC) #61
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 17:08:14 UTC) #62
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/5897d75b89294c388df2ec16b7519ecd635cc148 Cr-Commit-Position: refs/heads/master@{#405507}
4 years, 5 months ago (2016-07-14 17:10:17 UTC) #64
pdr.
On 2016/07/14 at 17:10:17, commit-bot wrote: > Patchset 11 (id:??) landed as https://crrev.com/5897d75b89294c388df2ec16b7519ecd635cc148 > Cr-Commit-Position: ...
4 years, 5 months ago (2016-07-14 17:35:44 UTC) #65
pdr.
Looks like the debug bot is failing as well: https://build.chromium.org/p/chromium.mac/waterfall?builder=Mac%20GYP%20(dbg)
4 years, 5 months ago (2016-07-14 17:37:36 UTC) #66
wjmaclean
A revert of this CL (patchset #11 id:220001) has been created in https://codereview.chromium.org/2150993002/ by wjmaclean@chromium.org. ...
4 years, 5 months ago (2016-07-14 17:40:30 UTC) #67
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-08-03 13:29:22 UTC) #71
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-08-03 13:41:37 UTC) #76
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/1818073002/240001
4 years, 4 months ago (2016-08-03 16:51:34 UTC) #81
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 4 months ago (2016-08-03 16:51:38 UTC) #82
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 4 months ago (2016-08-03 16:56:28 UTC) #84
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 16:58:32 UTC) #86
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/fc9d613c03b8e72ddfbc9f43d87119d29f96fdee
Cr-Commit-Position: refs/heads/master@{#409543}

Powered by Google App Engine
This is Rietveld 408576698