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

Issue 1131253003: cc: Add support for non-2D texture targets to YUVVideoQuad. (Closed)

Created:
5 years, 7 months ago by reveman
Modified:
5 years, 7 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add support for non-2D texture targets to YUVVideoQuad. This removes the TEXTURE_2D target and normalized coordinates assumption from the YUVVideoQuad code. This is a prerequisite to using IOSurface/SurfaceTexture backed GpuMemoryBuffers for zero-copy transfer of software decoded video frames to the graphics hardware. BUG=485859 TEST=cc_unittests --gtest_filter=VideoGLRendererPixelTest.* Committed: https://crrev.com/b71e399156a93a2ea675c77f1cb98c84dac813eb Cr-Commit-Position: refs/heads/master@{#329524}

Patch Set 1 #

Total comments: 4

Patch Set 2 : invert scale #

Total comments: 10

Patch Set 3 : danakj's review #

Patch Set 4 : fix mojo build issue #

Total comments: 1

Patch Set 5 : add TODOs #

Patch Set 6 : s/jamesr/sky/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -143 lines) Patch
M cc/layers/video_layer_impl.cc View 2 chunks +15 lines, -8 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 7 chunks +83 lines, -37 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 chunk +12 lines, -2 lines 0 comments Download
M cc/output/shader.h View 1 chunk +8 lines, -4 lines 0 comments Download
M cc/output/shader.cc View 8 chunks +26 lines, -14 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 7 chunks +33 lines, -30 lines 0 comments Download
M cc/quads/tile_draw_quad.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.h View 1 2 3 4 3 chunks +12 lines, -4 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/cc_messages.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/cc_messages_unittest.cc View 3 chunks +9 lines, -14 lines 0 comments Download
M mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 4 5 2 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
reveman
5 years, 7 months ago (2015-05-09 00:16:37 UTC) #2
Daniele Castagna
Two nits. LGTM % danakj's review. https://codereview.chromium.org/1131253003/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1131253003/diff/1/cc/output/gl_renderer.cc#newcode1979 cc/output/gl_renderer.cc:1979: sampler == SAMPLER_TYPE_2D_RECT ...
5 years, 7 months ago (2015-05-09 00:43:45 UTC) #3
reveman
+danakj https://codereview.chromium.org/1131253003/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1131253003/diff/1/cc/output/gl_renderer.cc#newcode1979 cc/output/gl_renderer.cc:1979: sampler == SAMPLER_TYPE_2D_RECT ? gfx::Size(1, 1) : quad->ya_tex_size; ...
5 years, 7 months ago (2015-05-09 00:56:39 UTC) #5
danakj
+hendrikw
5 years, 7 months ago (2015-05-11 17:03:51 UTC) #7
hendrikw
https://codereview.chromium.org/1131253003/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/output/gl_renderer.cc#newcode1948 cc/output/gl_renderer.cc:1948: a_texture_location = program->fragment_shader().a_texture_location(); This if/else is getting long, and ...
5 years, 7 months ago (2015-05-11 23:22:21 UTC) #8
reveman
https://codereview.chromium.org/1131253003/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/output/gl_renderer.cc#newcode1948 cc/output/gl_renderer.cc:1948: a_texture_location = program->fragment_shader().a_texture_location(); On 2015/05/11 23:22:20, hendrikw wrote: > ...
5 years, 7 months ago (2015-05-11 23:35:01 UTC) #9
hendrikw
On 2015/05/11 23:35:01, reveman wrote: > https://codereview.chromium.org/1131253003/diff/20001/cc/output/gl_renderer.cc > File cc/output/gl_renderer.cc (right): > > https://codereview.chromium.org/1131253003/diff/20001/cc/output/gl_renderer.cc#newcode1948 > ...
5 years, 7 months ago (2015-05-11 23:37:29 UTC) #10
danakj
https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc#newcode247 cc/layers/video_layer_impl.cc:247: gfx::RectF ya_tex_coord_rect(visible_rect); if these are in pixels not in ...
5 years, 7 months ago (2015-05-12 16:32:12 UTC) #11
danakj
https://codereview.chromium.org/1131253003/diff/20001/cc/test/render_pass_test_common.cc File cc/test/render_pass_test_common.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/test/render_pass_test_common.cc#newcode248 cc/test/render_pass_test_common.cc:248: gfx::RectF(0, 0, 100, 100), gfx::RectF(0, 0, 50, 50), float ...
5 years, 7 months ago (2015-05-12 16:47:41 UTC) #12
reveman
PTAL https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc#newcode247 cc/layers/video_layer_impl.cc:247: gfx::RectF ya_tex_coord_rect(visible_rect); On 2015/05/12 at 16:32:12, danakj wrote: ...
5 years, 7 months ago (2015-05-12 17:09:36 UTC) #13
danakj
https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc#newcode247 cc/layers/video_layer_impl.cc:247: gfx::RectF ya_tex_coord_rect(visible_rect); On 2015/05/12 17:09:35, reveman wrote: > On ...
5 years, 7 months ago (2015-05-12 17:22:11 UTC) #14
reveman
https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc#newcode247 cc/layers/video_layer_impl.cc:247: gfx::RectF ya_tex_coord_rect(visible_rect); On 2015/05/12 17:22:11, danakj wrote: > On ...
5 years, 7 months ago (2015-05-12 17:40:35 UTC) #15
danakj
On Tue, May 12, 2015 at 10:40 AM, <reveman@chromium.org> wrote: > > > https://codereview.chromium.org/1131253003/diff/20001/cc/layers/video_layer_impl.cc > ...
5 years, 7 months ago (2015-05-12 17:45:28 UTC) #16
danakj
https://codereview.chromium.org/1131253003/diff/60001/mojo/converters/surfaces/surfaces_type_converters.cc File mojo/converters/surfaces/surfaces_type_converters.cc (right): https://codereview.chromium.org/1131253003/diff/60001/mojo/converters/surfaces/surfaces_type_converters.cc#newcode176 mojo/converters/surfaces/surfaces_type_converters.cc:176: yuv_state->tex_coord_rect.To<gfx::RectF>(), You need to serialize both rects no? This ...
5 years, 7 months ago (2015-05-12 17:46:40 UTC) #17
reveman
Added TODOs. PTAL. +wfh for content/common/cc_messages.h +jamesr for mojo/converters/surfaces/surfaces_type_converters.cc
5 years, 7 months ago (2015-05-12 21:06:34 UTC) #19
danakj
LGTM
5 years, 7 months ago (2015-05-12 21:13:17 UTC) #20
Will Harris
content/common/cc_messages.h lgtm
5 years, 7 months ago (2015-05-12 21:18:03 UTC) #21
reveman
+sky for mojo/converters/surfaces/surfaces_type_converters.cc
5 years, 7 months ago (2015-05-12 21:42:02 UTC) #23
sky
I have no idea what that is, but I'll try and figure it out. LGTM
5 years, 7 months ago (2015-05-12 21:44:06 UTC) #24
reveman
On 2015/05/12 at 21:44:06, sky wrote: > I have no idea what that is, but ...
5 years, 7 months ago (2015-05-12 21:54:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131253003/100001
5 years, 7 months ago (2015-05-12 21:56:08 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-12 23:02:01 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 23:03:01 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b71e399156a93a2ea675c77f1cb98c84dac813eb
Cr-Commit-Position: refs/heads/master@{#329524}

Powered by Google App Engine
This is Rietveld 408576698