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

Issue 864513004: gpu: introduce glCopySubTextureCHROMIUM (Closed)

Created:
5 years, 11 months ago by dshwang
Modified:
5 years, 9 months ago
CC:
chromium-reviews, piman+watch_chromium.org, cc-bugs_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: introduce glCopySubTextureCHROMIUM Introduce glCopySubTextureCHROMIUM to support immutable texture as well as to optimize WebGL texSubImage2D(video | canvas). This CL changes gl_renderer to use glCopySubTextureCHROMIUM because the destination texture is immutable. TEST=GLCopyTextureCHROMIUMTest BUG=443151 Committed: https://crrev.com/fac6a2d44323ad51429ee728e241fe22242f5ebd Cr-Commit-Position: refs/heads/master@{#318855}

Patch Set 1 #

Total comments: 12

Patch Set 2 : address nits #

Total comments: 12

Patch Set 3 : address concerns of owners #

Total comments: 4

Patch Set 4 : remove level altogether #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1173 lines, -319 lines) Patch
M cc/resources/resource_provider.cc View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 2 chunks +14 lines, -3 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt View 1 2 3 2 chunks +41 lines, -9 lines 0 comments Download
M gpu/GLES2/gl2chromium_autogen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 2 3 1 chunk +23 lines, -7 lines 0 comments Download
M gpu/blink/webgraphicscontext3d_impl.h View 1 2 3 1 chunk +24 lines, -2 lines 0 comments Download
M gpu/blink/webgraphicscontext3d_impl.cc View 1 2 3 1 chunk +33 lines, -2 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 1 chunk +13 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_implementation_impl_autogen.h View 1 2 3 1 chunk +19 lines, -5 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest_autogen.h View 1 2 3 1 chunk +13 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 3 1 chunk +10 lines, -2 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 chunks +67 lines, -14 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 1 chunk +22 lines, -7 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 2 3 1 chunk +36 lines, -35 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 1 2 3 4 chunks +46 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 2 3 11 chunks +158 lines, -38 lines 1 comment Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 11 chunks +252 lines, -97 lines 1 comment Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 2 3 2 chunks +16 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 3 27 chunks +278 lines, -63 lines 1 comment Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M media/blink/skcanvas_video_renderer.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M media/blink/skcanvas_video_renderer.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
dshwang
@sievers, @piman could you review? This CL introduces glCopySubTextureCHROMIUM as discussed in Issue 443151 It ...
5 years, 11 months ago (2015-01-20 22:34:27 UTC) #2
piman
https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode10553 gpu/command_buffer/service/gles2_cmd_decoder.cc:10553: } Why do we disallow >0 levels? https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode10555 gpu/command_buffer/service/gles2_cmd_decoder.cc:10555: ...
5 years, 11 months ago (2015-01-21 00:01:32 UTC) #3
dshwang
Thank you for reviewing. I address nits and answer the question about level. https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
5 years, 11 months ago (2015-01-21 13:36:38 UTC) #4
piman
https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode10553 gpu/command_buffer/service/gles2_cmd_decoder.cc:10553: } On 2015/01/21 13:36:38, dshwang wrote: > On 2015/01/21 ...
5 years, 11 months ago (2015-01-21 18:05:55 UTC) #5
dshwang
On 2015/01/21 18:05:55, piman (Very slow to review) wrote: > https://codereview.chromium.org/864513004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): ...
5 years, 11 months ago (2015-01-21 18:35:51 UTC) #6
Ken Russell (switch to Gerrit)
Looks generally good. A few comments. I'm not an OWNER so you'll need others' reviews. ...
5 years, 11 months ago (2015-01-24 01:33:24 UTC) #7
dshwang
Sorry for delaying response. @kbr, @piman thx for reviewing. @piman @sievers, could you review again? ...
5 years, 10 months ago (2015-02-10 18:11:56 UTC) #8
dshwang
hi piman and kbr, could you review again?
5 years, 10 months ago (2015-02-25 14:16:20 UTC) #9
piman
https://codereview.chromium.org/864513004/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/864513004/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode10755 gpu/command_buffer/service/gles2_cmd_decoder.cc:10755: // because glFramebufferTexture2D() doesn't support level > 0. On ...
5 years, 10 months ago (2015-02-25 21:32:17 UTC) #10
Ken Russell (switch to Gerrit)
Still looks good to me overall. Again, you'll need OWNERS reviews. https://codereview.chromium.org/864513004/diff/40001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt File gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt (right): ...
5 years, 10 months ago (2015-02-25 22:19:10 UTC) #11
dshwang
Thanks for reviewing. Could you review again? On 2015/02/25 21:32:17, piman (Very slow to review) ...
5 years, 10 months ago (2015-02-26 13:43:49 UTC) #12
piman
https://codereview.chromium.org/864513004/diff/80001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://codereview.chromium.org/864513004/diff/80001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode492 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:492: DCHECK(yoffset >= 0 && yoffset + source_height <= dest_height); ...
5 years, 10 months ago (2015-02-26 19:52:31 UTC) #14
piman
5 years, 10 months ago (2015-02-26 19:52:34 UTC) #15
dshwang
Thx for reviewing. https://codereview.chromium.org/864513004/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/864513004/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11213 gpu/command_buffer/service/gles2_cmd_decoder.cc:11213: if (!dest_texture->ValidForTexture(dest_texture->target(), 0, xoffset, On 2015/02/26 ...
5 years, 9 months ago (2015-02-27 11:56:42 UTC) #16
piman
OK, thanks, LGTM.
5 years, 9 months ago (2015-02-27 21:58:52 UTC) #17
dshwang
On 2015/02/27 21:58:52, piman (Very slow to review) wrote: > OK, thanks, LGTM. thx! scherkus@, ...
5 years, 9 months ago (2015-02-28 05:57:09 UTC) #19
scherkus (not reviewing)
lgtm
5 years, 9 months ago (2015-03-02 18:46:48 UTC) #20
dshwang
On 2015/03/02 18:46:48, scherkus wrote: > lgtm thx for reviewing!
5 years, 9 months ago (2015-03-03 07:37:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/864513004/80001
5 years, 9 months ago (2015-03-03 07:39:24 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 9 months ago (2015-03-03 08:43:08 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/fac6a2d44323ad51429ee728e241fe22242f5ebd Cr-Commit-Position: refs/heads/master@{#318855}
5 years, 9 months ago (2015-03-03 08:44:11 UTC) #25
ulan
On 2015/03/03 08:44:11, I haz the power (commit-bot) wrote: > Patchset 4 (id:??) landed as ...
5 years, 9 months ago (2015-03-03 10:09:18 UTC) #26
ulan
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/972833004/ by ulan@chromium.org. ...
5 years, 9 months ago (2015-03-03 10:12:00 UTC) #27
dshwang
5 years, 9 months ago (2015-03-03 14:20:57 UTC) #28
Message was sent while issue was closed.
thx for handling it. I'll figure out and reland

Powered by Google App Engine
This is Rietveld 408576698