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

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed)

Created:
4 years, 6 months ago by erikchen
Modified:
4 years, 5 months ago
Reviewers:
Fady Samuel, piman
CC:
chromium-reviews, rjkroege, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement native GMB backbuffers in the GLES2 Command Decoder. This will allow pepper apps to draw directly into a native GMB, which allows them to use the new CoreAnimation compositor. * Add a new method to ImageFactory to allow the creation of anonymous images. * Add logic to BackTexture to allow storage allocation via Image. * Use existing logic to implement RGB emulation. BUG=602484 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/7ea4608d71ab856d422381c5fd99920f67b80d23 Cr-Commit-Position: refs/heads/master@{#402387}

Patch Set 1 #

Patch Set 2 : initial implementation...still missing some stuff. #

Patch Set 3 : Rebase. #

Patch Set 4 : Implement native GMB backbuffers. #

Patch Set 5 : Nits. #

Patch Set 6 : Analyze error. #

Patch Set 7 : Dependency error. #

Patch Set 8 : Small errors. #

Patch Set 9 : More test fixes. #

Patch Set 10 : Adding tests...wip. #

Patch Set 11 : Fix multisample renderbuffers. #

Patch Set 12 : Expand tests. #

Patch Set 13 : Compile error on Windows. #

Total comments: 20

Patch Set 14 : Comments from piman. #

Patch Set 15 : Nit. #

Patch Set 16 : removing change to gpu_param_traits_macros.h, since there are no consumers of it yet. #

Total comments: 2

Patch Set 17 : Comments from piman. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+599 lines, -110 lines) Patch
M components/mus/gles2/command_buffer_driver.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M gpu/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M gpu/command_buffer/service/context_group.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -1 line 0 comments Download
M gpu/command_buffer/service/context_group.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/context_group_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 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 42 chunks +269 lines, -92 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/image_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/image_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +19 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -2 lines 0 comments Download
A gpu/command_buffer/tests/gl_native_gmb_backbuffer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +82 lines, -0 lines 0 comments Download
A gpu/command_buffer/tests/texture_image_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +32 lines, -0 lines 0 comments Download
A gpu/command_buffer/tests/texture_image_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +81 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/context.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory_io_surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory_io_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +33 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 72 (36 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/2061743004/1
4 years, 6 months ago (2016-06-14 01:49:19 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-14 04:02:09 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061743004/80001
4 years, 6 months ago (2016-06-24 00:41:28 UTC) #8
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/86392) android_clang_dbg_recipe on ...
4 years, 6 months ago (2016-06-24 00:47:06 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061743004/100001
4 years, 6 months ago (2016-06-24 00:50:24 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/224086) mac_chromium_rel_ng on ...
4 years, 6 months ago (2016-06-24 00:54:44 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061743004/120001
4 years, 6 months ago (2016-06-24 01:14:36 UTC) #16
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/206415)
4 years, 6 months ago (2016-06-24 01:25:58 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/140001
4 years, 6 months ago (2016-06-24 18:50:18 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/206915)
4 years, 6 months ago (2016-06-24 19:03:33 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/160001
4 years, 6 months ago (2016-06-24 20:28:32 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/207008)
4 years, 6 months ago (2016-06-24 20:38:17 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/160001
4 years, 6 months ago (2016-06-24 23:24:11 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/207137)
4 years, 6 months ago (2016-06-24 23:32:56 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/190001
4 years, 5 months ago (2016-06-27 15:53:08 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/207659)
4 years, 5 months ago (2016-06-27 16:02:25 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/210001
4 years, 5 months ago (2016-06-27 16:12:21 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/207668)
4 years, 5 months ago (2016-06-27 16:20:17 UTC) #41
erikchen
piman: Please review.
4 years, 5 months ago (2016-06-27 18:11:34 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/230001
4 years, 5 months ago (2016-06-27 18:11:53 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/207772)
4 years, 5 months ago (2016-06-27 18:21:43 UTC) #47
piman
https://codereview.chromium.org/2061743004/diff/230001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2061743004/diff/230001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode2410 gpu/command_buffer/service/gles2_cmd_decoder.cc:2410: glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, targetid); nit: this was already done on l.2406 ...
4 years, 5 months ago (2016-06-27 19:37:37 UTC) #48
erikchen
piman: PTAL https://codereview.chromium.org/2061743004/diff/230001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2061743004/diff/230001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode2410 gpu/command_buffer/service/gles2_cmd_decoder.cc:2410: glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, targetid); On 2016/06/27 19:37:36, piman wrote: ...
4 years, 5 months ago (2016-06-27 22:16:04 UTC) #49
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/240029
4 years, 5 months ago (2016-06-27 22:16:54 UTC) #51
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/208001)
4 years, 5 months ago (2016-06-27 22:27:56 UTC) #53
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/280001
4 years, 5 months ago (2016-06-27 22:37:42 UTC) #55
piman
lgtm https://codereview.chromium.org/2061743004/diff/280001/gpu/command_buffer/service/image_factory.cc File gpu/command_buffer/service/image_factory.cc (right): https://codereview.chromium.org/2061743004/diff/280001/gpu/command_buffer/service/image_factory.cc#newcode26 gpu/command_buffer/service/image_factory.cc:26: NOTREACHED(); nit: this is reached on !mac if ...
4 years, 5 months ago (2016-06-27 22:46:15 UTC) #56
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_optional_gpu_tests_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_optional_gpu_tests_rel/builds/1005)
4 years, 5 months ago (2016-06-28 01:27:29 UTC) #58
erikchen
https://codereview.chromium.org/2061743004/diff/280001/gpu/command_buffer/service/image_factory.cc File gpu/command_buffer/service/image_factory.cc (right): https://codereview.chromium.org/2061743004/diff/280001/gpu/command_buffer/service/image_factory.cc#newcode26 gpu/command_buffer/service/image_factory.cc:26: NOTREACHED(); On 2016/06/27 22:46:15, piman wrote: > nit: this ...
4 years, 5 months ago (2016-06-28 01:38:42 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/300001
4 years, 5 months ago (2016-06-28 01:39:52 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/208171)
4 years, 5 months ago (2016-06-28 01:49:08 UTC) #64
erikchen
fsamuel: Please review components/mus/gles2/command_buffer_driver.cc
4 years, 5 months ago (2016-06-28 02:47:42 UTC) #66
Fady Samuel
mus lgtm
4 years, 5 months ago (2016-06-28 02:52:50 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2061743004/300001
4 years, 5 months ago (2016-06-28 03:29:10 UTC) #69
commit-bot: I haz the power
Committed patchset #17 (id:300001)
4 years, 5 months ago (2016-06-28 03:37:27 UTC) #70
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 03:39:05 UTC) #72
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/7ea4608d71ab856d422381c5fd99920f67b80d23
Cr-Commit-Position: refs/heads/master@{#402387}

Powered by Google App Engine
This is Rietveld 408576698