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

Issue 1547873002: Allow GL_TEXTURE_RECTANGLE_ARB to be the destination target for copyTextureCHROMIUM. (Closed)

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

Description

Allow GL_TEXTURE_RECTANGLE_ARB as the destination for copyTextureCHROMIUM. I rewrote the vertex shader to support the new destination target. In the process, I recalculated the transforms for the vertex shader, and fixed mistakes in the original shader (it functioned incorrectly when copying sub-textures). BUG=533617 Committed: https://crrev.com/6b91a5080f1ca2a3c95b1ee9308f6884b33dcd13 Cr-Commit-Position: refs/heads/master@{#367920}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Fix android compile error. #

Patch Set 8 : Test fixes. #

Patch Set 9 : More test fixes. #

Patch Set 10 : Fix shader compile error. #

Total comments: 7

Patch Set 11 : Rebase against https://codereview.chromium.org/1551143002/. #

Total comments: 8

Patch Set 12 : Comments from zmo. #

Total comments: 10

Patch Set 13 : Comments from zmo. #

Patch Set 14 : Fix test. #

Patch Set 15 : Remove changes to decoder unittest. #

Total comments: 6

Patch Set 16 : Comments from kbr. #

Patch Set 17 : Comments from kbr. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -143 lines) Patch
M content/common/gpu/media/android_copying_backing_strategy.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +9 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 1 2 5 chunks +21 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 2 3 4 5 6 7 8 9 10 11 12 18 chunks +140 lines, -95 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 12 13 8 chunks +46 lines, -28 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +119 lines, -9 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 65 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/100001
4 years, 11 months ago (2015-12-29 22:19:46 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/2917)
4 years, 11 months ago (2015-12-29 22:34:46 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/120001
4 years, 11 months ago (2015-12-29 22:41:33 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/96974)
4 years, 11 months ago (2015-12-29 23:04:50 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/140001
4 years, 11 months ago (2015-12-30 01:45:58 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/2974) android_chromium_gn_compile_dbg on ...
4 years, 11 months ago (2015-12-30 02:03:59 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/160001
4 years, 11 months ago (2015-12-30 18:15:53 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/159736)
4 years, 11 months ago (2015-12-30 19:14:33 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/100002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/100002
4 years, 11 months ago (2015-12-30 21:05:36 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/96904)
4 years, 11 months ago (2015-12-30 21:23:07 UTC) #21
erikchen
kbr: Please review. https://codereview.chromium.org/1547873002/diff/100002/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (left): https://codereview.chromium.org/1547873002/diff/100002/gpu/command_buffer/service/texture_manager.cc#oldcode1933 gpu/command_buffer/service/texture_manager.cc:1933: // [Compressed]Tex[Sub]Image2D and related functions. I ...
4 years, 11 months ago (2015-12-30 22:08:00 UTC) #24
Ken Russell (switch to Gerrit)
+zmo for OWNERS review
4 years, 11 months ago (2015-12-30 22:09:53 UTC) #26
Zhenyao Mo
On 2015/12/30 22:09:53, Ken Russell wrote: > +zmo for OWNERS review This CL generally looks ...
4 years, 11 months ago (2015-12-30 23:23:11 UTC) #27
Ken Russell (switch to Gerrit)
On 2015/12/30 23:23:11, Zhenyao Mo wrote: > On 2015/12/30 22:09:53, Ken Russell wrote: > > ...
4 years, 11 months ago (2015-12-31 02:10:46 UTC) #29
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1547873002/diff/100002/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1547873002/diff/100002/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13280 gpu/command_buffer/service/gles2_cmd_decoder.cc:13280: target, 0, &dest_width, &dest_height, nullptr); Is the intent of ...
4 years, 11 months ago (2015-12-31 02:11:58 UTC) #30
Zhenyao Mo
On 2015/12/31 02:11:58, Ken Russell wrote: > https://codereview.chromium.org/1547873002/diff/100002/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/1547873002/diff/100002/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13280 ...
4 years, 11 months ago (2016-01-04 18:19:31 UTC) #31
Ken Russell (switch to Gerrit)
On 2016/01/04 18:19:31, Zhenyao Mo wrote: > On 2015/12/31 02:11:58, Ken Russell wrote: > > ...
4 years, 11 months ago (2016-01-04 21:15:31 UTC) #32
erikchen
On 2016/01/04 21:15:31, Ken Russell wrote: > On 2016/01/04 18:19:31, Zhenyao Mo wrote: > > ...
4 years, 11 months ago (2016-01-04 21:22:28 UTC) #33
erikchen
zmo: PTAL. I rebased this CL against https://codereview.chromium.org/1551143002/, which makes the changes to gles2_cmd_decoder.cc much ...
4 years, 11 months ago (2016-01-04 21:47:11 UTC) #34
Zhenyao Mo
Mostly looks good with a few questions. https://codereview.chromium.org/1547873002/diff/190001/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/1547873002/diff/190001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode303 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:303: glBindTexture(GL_TEXTURE_2D, dest_id); ...
4 years, 11 months ago (2016-01-04 22:43:55 UTC) #35
erikchen
zmo: PTAL https://codereview.chromium.org/1547873002/diff/190001/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/1547873002/diff/190001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode303 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:303: glBindTexture(GL_TEXTURE_2D, dest_id); On 2016/01/04 22:43:54, Zhenyao Mo ...
4 years, 11 months ago (2016-01-04 23:28:52 UTC) #36
Zhenyao Mo
https://codereview.chromium.org/1547873002/diff/210001/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/1547873002/diff/210001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode270 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:270: DCHECK(source_target == GL_TEXTURE_2D); Can we also pass in dest_target ...
4 years, 11 months ago (2016-01-05 00:52:16 UTC) #37
piman
https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (left): https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc#oldcode1939 gpu/command_buffer/service/texture_manager.cc:1939: } Your change seems unrelated to glTexImage2D and friends, ...
4 years, 11 months ago (2016-01-05 01:36:39 UTC) #38
erikchen
https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (left): https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc#oldcode1939 gpu/command_buffer/service/texture_manager.cc:1939: } On 2016/01/05 01:36:39, piman (OOO until 2016-1-4) wrote: ...
4 years, 11 months ago (2016-01-05 01:45:15 UTC) #39
erikchen
https://codereview.chromium.org/1547873002/diff/210001/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/1547873002/diff/210001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode270 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:270: DCHECK(source_target == GL_TEXTURE_2D); On 2016/01/05 00:52:16, Zhenyao Mo wrote: ...
4 years, 11 months ago (2016-01-05 01:46:39 UTC) #40
piman
+ccameron in case he has a better idea https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (left): https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc#oldcode1939 gpu/command_buffer/service/texture_manager.cc:1939: } ...
4 years, 11 months ago (2016-01-05 02:13:23 UTC) #41
Zhenyao Mo
lgtm from my point of view but please wait for ccameron to take a look
4 years, 11 months ago (2016-01-05 17:47:39 UTC) #42
piman
On 2016/01/05 17:47:39, Zhenyao Mo wrote: > lgtm from my point of view > > ...
4 years, 11 months ago (2016-01-05 17:49:45 UTC) #43
ccameron
On 2016/01/05 at 17:49:45, piman wrote: > On 2016/01/05 17:47:39, Zhenyao Mo wrote: > > ...
4 years, 11 months ago (2016-01-05 18:42:51 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/250001
4 years, 11 months ago (2016-01-05 20:55:59 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/132695)
4 years, 11 months ago (2016-01-05 21:10:18 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/270001
4 years, 11 months ago (2016-01-05 22:03:13 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/132715)
4 years, 11 months ago (2016-01-05 22:15:04 UTC) #52
erikchen
piman: PTAL https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (left): https://codereview.chromium.org/1547873002/diff/210001/gpu/command_buffer/service/texture_manager.cc#oldcode1939 gpu/command_buffer/service/texture_manager.cc:1939: } On 2016/01/05 02:13:23, piman (OOO until ...
4 years, 11 months ago (2016-01-05 23:54:04 UTC) #53
Ken Russell (switch to Gerrit)
I don't know whether this still has the problem of potentially breaking the association between ...
4 years, 11 months ago (2016-01-06 02:14:28 UTC) #54
erikchen
https://codereview.chromium.org/1547873002/diff/270001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt File gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt (right): https://codereview.chromium.org/1547873002/diff/270001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt#newcode87 gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt:87: been bound as GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB object. On 2016/01/06 ...
4 years, 11 months ago (2016-01-06 02:23:37 UTC) #55
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1547873002/diff/270001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc File gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc (right): https://codereview.chromium.org/1547873002/diff/270001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc#newcode790 gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc:790: glDeleteFramebuffers(1, &framebuffer_id_); On 2016/01/06 02:23:37, erikchen wrote: > On ...
4 years, 11 months ago (2016-01-06 03:46:28 UTC) #56
piman
lgtm, thanks!
4 years, 11 months ago (2016-01-06 07:19:52 UTC) #57
erikchen
https://codereview.chromium.org/1547873002/diff/270001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc File gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc (right): https://codereview.chromium.org/1547873002/diff/270001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc#newcode790 gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc:790: glDeleteFramebuffers(1, &framebuffer_id_); On 2016/01/06 03:46:28, Ken Russell wrote: > ...
4 years, 11 months ago (2016-01-06 18:08:37 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547873002/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547873002/310001
4 years, 11 months ago (2016-01-06 20:14:22 UTC) #61
commit-bot: I haz the power
Committed patchset #17 (id:310001)
4 years, 11 months ago (2016-01-06 21:34:34 UTC) #63
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 21:35:46 UTC) #65
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/6b91a5080f1ca2a3c95b1ee9308f6884b33dcd13
Cr-Commit-Position: refs/heads/master@{#367920}

Powered by Google App Engine
This is Rietveld 408576698