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

Issue 1559203003: Add GLStreamTextureImage (Closed)

Created:
4 years, 11 months ago by liberato (no reviews please)
Modified:
4 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, binji+watch_chromium.org, bradnelson+warch_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, ihf+watch_chromium.org, jam, kalyank, mcasas+watch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, teravest+watch_chromium.org, tzik, viettrungluu+watch_chromium.org, yusukes+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

Added GLStreamTextureImage : GLImage, which exposes GetTextureMatrix. This provides a texture matrix to convert from hardware-specific texture coordinates. Made AVDACodecImage provide the current matrix from the SurfaceTexture. Updates GLRenderer::DrawStreamVideoQuad to use the current texture matrix from the GLImage if available, else fall back to the one recorded quad. Once stream_texture_android.cc returns the most recent texture matrix, it may be possible to remove the entire DidUpdateMatrix path in VideoFrameProvider. Does not address CopyTextureCHROMIUM. BUG=530681, 226218 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/df64f2cb11bb32d8522fa0ebeeed8653be158533 Cr-Commit-Position: refs/heads/master@{#377150}

Patch Set 1 #

Patch Set 2 : moved new gl command behind an extension. #

Patch Set 3 : removed autogenerated unit tests, since they don't compile. #

Patch Set 4 : rebased #

Patch Set 5 : getCustomMatrix #

Total comments: 10

Patch Set 6 : added enum, removed count parameter. #

Total comments: 17

Patch Set 7 : removed enum, added GLStreamTextureImage : GLImage. #

Total comments: 16

Patch Set 8 : removed shared context check and removed matrix from copier. #

Total comments: 12

Patch Set 9 : cl feedback. #

Total comments: 1

Patch Set 10 : added unit test, made SetLevelInfo clear the stream texture image. #

Patch Set 11 : s/GL_EXPORT/GPU_EXPORT for windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+981 lines, -413 lines) Patch
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -2 lines 0 comments Download
M content/common/gpu/media/android_deferred_rendering_backing_strategy.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/gpu/media/android_deferred_rendering_backing_strategy.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -4 lines 0 comments Download
M content/common/gpu/media/avda_codec_image.h View 1 2 3 4 5 6 7 4 chunks +31 lines, -15 lines 0 comments Download
M content/common/gpu/media/avda_codec_image.cc View 1 2 3 4 5 6 7 6 chunks +69 lines, -53 lines 0 comments Download
M content/common/gpu/media/avda_shared_state.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -1 line 0 comments Download
M content/common/gpu/media/avda_shared_state.cc View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
A gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2chromium_autogen.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_impl_autogen.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 2 3 4 5 6 7 1 chunk +324 lines, -323 lines 0 comments Download
A gpu/command_buffer/service/gl_stream_texture_image.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +33 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +45 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +32 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +56 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +69 lines, -0 lines 0 comments Download
M mojo/gpu/mojo_gles2_impl_autogen.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/gpu/mojo_gles2_impl_autogen.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
liberato (no reviews please)
hi folks this is a WIP. I wanted to see if any of you have ...
4 years, 11 months ago (2016-01-13 02:09:58 UTC) #4
reveman
I'm not a fan of making the same mistake as SurfaceTexture and adding a matrix ...
4 years, 11 months ago (2016-01-13 14:21:27 UTC) #5
liberato (no reviews please)
On 2016/01/13 14:21:27, reveman wrote: > I'm not a fan of making the same mistake ...
4 years, 11 months ago (2016-01-13 16:23:35 UTC) #6
reveman
On 2016/01/13 at 16:23:35, liberato wrote: > On 2016/01/13 14:21:27, reveman wrote: > > I'm ...
4 years, 11 months ago (2016-01-13 19:06:44 UTC) #7
liberato (no reviews please)
On 2016/01/13 19:06:44, reveman wrote: > On 2016/01/13 at 16:23:35, liberato wrote: > > On ...
4 years, 11 months ago (2016-01-19 19:49:36 UTC) #8
reveman
On 2016/01/19 at 19:49:36, liberato wrote: > On 2016/01/13 19:06:44, reveman wrote: > > On ...
4 years, 11 months ago (2016-01-20 04:15:14 UTC) #9
liberato (no reviews please)
hi folks after some offline chat, here's the latest attempt for getting the texture matrix ...
4 years, 10 months ago (2016-02-16 18:37:23 UTC) #10
piman
https://codereview.chromium.org/1559203003/diff/80001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1559203003/diff/80001/cc/output/gl_renderer.cc#newcode2210 cc/output/gl_renderer.cc:2210: 12345 /* TODO(liberato): enum */, false, gl_matrix); The enum ...
4 years, 10 months ago (2016-02-16 23:56:33 UTC) #11
liberato (no reviews please)
thanks for the feedback. -fl https://codereview.chromium.org/1559203003/diff/80001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1559203003/diff/80001/cc/output/gl_renderer.cc#newcode2210 cc/output/gl_renderer.cc:2210: 12345 /* TODO(liberato): enum ...
4 years, 10 months ago (2016-02-17 17:50:32 UTC) #12
piman
Syntactically, the path taken looks reasonable to me. I'll let reveman/sievers comment on whether they ...
4 years, 10 months ago (2016-02-17 21:57:29 UTC) #13
reveman
https://codereview.chromium.org/1559203003/diff/100001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc File content/common/gpu/media/android_deferred_rendering_backing_strategy.cc (right): https://codereview.chromium.org/1559203003/diff/100001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc#newcode51 content/common/gpu/media/android_deferred_rendering_backing_strategy.cc:51: shared_state_->set_share_group(gfx::GLContext::GetCurrent()->share_group()); is this related to this patch? https://codereview.chromium.org/1559203003/diff/100001/gpu/GLES2/gl2extchromium.h File ...
4 years, 10 months ago (2016-02-18 17:16:50 UTC) #14
liberato (no reviews please)
thanks for the feedback. i still need to add a test to TextureManager for the ...
4 years, 10 months ago (2016-02-18 19:34:41 UTC) #15
reveman
https://codereview.chromium.org/1559203003/diff/100001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc File content/common/gpu/media/android_deferred_rendering_backing_strategy.cc (right): https://codereview.chromium.org/1559203003/diff/100001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc#newcode51 content/common/gpu/media/android_deferred_rendering_backing_strategy.cc:51: shared_state_->set_share_group(gfx::GLContext::GetCurrent()->share_group()); On 2016/02/18 at 19:34:41, liberato wrote: > On ...
4 years, 10 months ago (2016-02-18 20:20:57 UTC) #16
liberato (no reviews please)
https://codereview.chromium.org/1559203003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1559203003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7472 gpu/command_buffer/service/gles2_cmd_decoder.cc:7472: if (gl::GLImage* image = texture_ref->texture()->GetLevelImage( On 2016/02/17 21:57:29, piman ...
4 years, 10 months ago (2016-02-19 18:39:56 UTC) #18
reveman
lgtm with nits https://codereview.chromium.org/1559203003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1559203003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13414 gpu/command_buffer/service/gles2_cmd_decoder.cc:13414: transform_matrix); On 2016/02/19 at 18:39:55, liberato ...
4 years, 10 months ago (2016-02-19 19:15:40 UTC) #19
liberato (no reviews please)
sievers, piman: PTAL. reveman: thanks for the feedback. yzshen: can you take a look at ...
4 years, 10 months ago (2016-02-19 19:48:11 UTC) #21
no sievers
Regarding CopyTextureCHROMIUM: Why can't we also just apply the correct matrix there? It's a bit ...
4 years, 10 months ago (2016-02-19 20:51:33 UTC) #22
reveman
On 2016/02/19 at 20:51:33, sievers wrote: > Regarding CopyTextureCHROMIUM: Why can't we also just apply ...
4 years, 10 months ago (2016-02-19 21:26:47 UTC) #23
yzshen1
On 2016/02/19 19:48:11, liberato wrote: > sievers, piman: PTAL. > reveman: thanks for the feedback. ...
4 years, 10 months ago (2016-02-22 17:16:16 UTC) #24
piman
lgtm
4 years, 10 months ago (2016-02-22 19:17:15 UTC) #25
liberato (no reviews please)
thanks for the feedback. mind taking a look at the new unit test in texture_manager_unittest.cc? ...
4 years, 10 months ago (2016-02-22 21:16:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1559203003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1559203003/200001
4 years, 10 months ago (2016-02-23 23:16:13 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 10 months ago (2016-02-24 00:25:05 UTC) #31
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 00:26:08 UTC) #33
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/df64f2cb11bb32d8522fa0ebeeed8653be158533
Cr-Commit-Position: refs/heads/master@{#377150}

Powered by Google App Engine
This is Rietveld 408576698