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

Issue 977853002: Reland of Revert of gpu: introduce glCopySubTextureCHROMIUM (patchset #1 id:1 of https://codereview… (Closed)

Created:
5 years, 9 months ago by dshwang
Modified:
5 years, 9 months ago
CC:
avayvod+watch_chromium.org, cc-bugs_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Revert of gpu: introduce glCopySubTextureCHROMIUM (patchset #1 id:1 of https://codereview.chromium.org/972833004/) Reason for revert: Fix OSX failure. glValidateProgram() in OSX has very strange behavior. It validates FBO unexpectedly. So glValidateProgram() falsely fails if FBO is not bound. Move the validation code after FBO binding. In addition, previous patch hits one-copy performance badly because CopySubTextureCHROMIUM didn't use image copy optimization like CopyTextureCHROMIUM. This CL applied it. Original issue's description: > Revert of gpu: introduce glCopySubTextureCHROMIUM (patchset #4 id:80001 of https://codereview.chromium.org/864513004/) > > Reason for revert: > This broke telemetry_unittests and content_browsertests on Mac (see issue 463439) > > Original issue's 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} > > TBR=sievers@chromium.org,piman@chromium.org,kbr@chromium.org,zmo@chromium.org,scherkus@chromium.org,dongseong.hwang@intel.com > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=443151 > > Review URL: https://codereview.chromium.org/972833004 > > Cr-Commit-Position: refs/heads/master@{#318858} BUG=443151, 463439 Committed: https://crrev.com/46305b130beb809b98d02830c857dc3dfaf5b98b Cr-Commit-Position: refs/heads/master@{#319288}

Patch Set 1 #

Patch Set 2 : Apply image optimization to CopySubTexture. move glValidateProgram #

Total comments: 7

Patch Set 3 : Apply image opt when offsets are zero #

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

Messages

Total messages: 23 (6 generated)
dshwang
@piman, could you review again? https://codereview.chromium.org/977853002/diff/60001/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/977853002/diff/60001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode559 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:559: // glValidateProgram must be ...
5 years, 9 months ago (2015-03-04 09:35:42 UTC) #4
dshwang
@scherkus could you review media/ ? The patch set 1 is same to reverted patch ...
5 years, 9 months ago (2015-03-04 09:36:43 UTC) #5
dshwang
https://codereview.chromium.org/977853002/diff/60001/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/977853002/diff/60001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode559 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:559: // glValidateProgram must be called after FBO binding. crbug.com/463439 ...
5 years, 9 months ago (2015-03-04 09:39:36 UTC) #6
scherkus (not reviewing)
lgtm (doesn't look like media/ changed at all)
5 years, 9 months ago (2015-03-04 18:00:23 UTC) #8
dshwang
On 2015/03/04 18:00:23, scherkus wrote: > lgtm (doesn't look like media/ changed at all) Thx! ...
5 years, 9 months ago (2015-03-04 18:09:35 UTC) #9
piman
LGTM+nit, but make sure you have the ok from reveman@ before landing. https://codereview.chromium.org/977853002/diff/60001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc ...
5 years, 9 months ago (2015-03-04 20:38:39 UTC) #10
dshwang
On 2015/03/04 20:38:39, piman (Very slow to review) wrote: > LGTM+nit, but make sure you ...
5 years, 9 months ago (2015-03-04 20:51:45 UTC) #11
reveman
https://codereview.chromium.org/977853002/diff/60001/ui/gl/gl_image.h File ui/gl/gl_image.h (right): https://codereview.chromium.org/977853002/diff/60001/ui/gl/gl_image.h#newcode37 ui/gl/gl_image.h:37: virtual bool CopyTexSubImage(unsigned target, int xoffset, int yoffset) = ...
5 years, 9 months ago (2015-03-04 20:56:46 UTC) #12
dshwang
https://codereview.chromium.org/977853002/diff/60001/ui/gl/gl_image.h File ui/gl/gl_image.h (right): https://codereview.chromium.org/977853002/diff/60001/ui/gl/gl_image.h#newcode37 ui/gl/gl_image.h:37: virtual bool CopyTexSubImage(unsigned target, int xoffset, int yoffset) = ...
5 years, 9 months ago (2015-03-04 21:02:15 UTC) #13
dshwang
On 2015/03/04 20:56:46, reveman wrote: > https://codereview.chromium.org/977853002/diff/60001/ui/gl/gl_image.h > File ui/gl/gl_image.h (right): > > https://codereview.chromium.org/977853002/diff/60001/ui/gl/gl_image.h#newcode37 > ...
5 years, 9 months ago (2015-03-05 06:59:42 UTC) #14
reveman
lgtm. just one question https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11145 gpu/command_buffer/service/gles2_cmd_decoder.cc:11145: if (image->CopyTexImage(GL_TEXTURE_2D)) Are we still ...
5 years, 9 months ago (2015-03-05 13:46:23 UTC) #15
dshwang
https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11145 gpu/command_buffer/service/gles2_cmd_decoder.cc:11145: if (image->CopyTexImage(GL_TEXTURE_2D)) On 2015/03/05 13:46:23, reveman wrote: > Are ...
5 years, 9 months ago (2015-03-05 14:55:59 UTC) #16
reveman
https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11145 gpu/command_buffer/service/gles2_cmd_decoder.cc:11145: if (image->CopyTexImage(GL_TEXTURE_2D)) On 2015/03/05 14:55:59, dshwang wrote: > On ...
5 years, 9 months ago (2015-03-05 18:20:01 UTC) #17
dshwang
On 2015/03/05 18:20:01, reveman wrote: > https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/977853002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11145 > ...
5 years, 9 months ago (2015-03-05 18:22:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/977853002/80001
5 years, 9 months ago (2015-03-05 18:24:10 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 9 months ago (2015-03-05 18:28:16 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 18:30:22 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/46305b130beb809b98d02830c857dc3dfaf5b98b
Cr-Commit-Position: refs/heads/master@{#319288}

Powered by Google App Engine
This is Rietveld 408576698