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

Issue 1354483004: Re-land: ui: Add GLImage unit test framework. (Closed)

Created:
5 years, 3 months ago by reveman
Modified:
5 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, 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

Re-land: ui: Add GLImage unit test framework. This makes it possible to test GLImage implementations without requiring multi-process GpuMemoryBuffer support. This initial version is limited to testing CopyTexSubImage with the default buffer format but testing of more functionality and formats will be added in follow up patches. Also includes some minor cleanup needed to not have GLImage implementations depend on GpuMemoryBuffer API. BUG=538325 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/8aa0fb1d78963610ab62a349d1dff9bd2e065a3e Cr-Commit-Position: refs/heads/master@{#353735}

Patch Set 1 #

Patch Set 2 : fix gl init and enable tests #

Patch Set 3 : build fixes #

Patch Set 4 : android build fix #

Patch Set 5 : another build fix #

Total comments: 8

Patch Set 6 : refactor to use a test template #

Patch Set 7 : gn build fix #

Patch Set 8 : fix ozone build and remove unused functions #

Patch Set 9 : rebase #

Patch Set 10 : use glGetAttribLocation #

Patch Set 11 : Add clean up code #

Total comments: 31

Patch Set 12 : lsan suppression and other fixes #

Total comments: 1

Patch Set 13 : rebase #

Patch Set 14 : deps fix #

Total comments: 11

Patch Set 15 : fix cleanup #

Patch Set 16 : still need lsan suppression #

Total comments: 2

Patch Set 17 : add link to bug for swrast.so leak #

Patch Set 18 : add osmesa deps #

Patch Set 19 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+682 lines, -50 lines) Patch
M build/sanitizers/lsan_suppressions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/test_image_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -9 lines 0 comments Download
M components/mus/mus_app.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/vm/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +18 lines, -0 lines 0 comments Download
M ui/gl/gl.gyp View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M ui/gl/gl_api_unittest.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gl/gl_context.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ui/gl/gl_image_io_surface.mm View 3 chunks +4 lines, -4 lines 0 comments Download
A ui/gl/gl_image_ref_counted_memory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
M ui/gl/gl_image_shared_memory.h View 3 chunks +5 lines, -4 lines 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 2 chunks +7 lines, -5 lines 0 comments Download
A ui/gl/gl_image_shared_memory_unittest.cc View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 2 3 4 5 3 chunks +1 line, -3 lines 0 comments Download
M ui/gl/gl_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
A ui/gl/test/gl_image_test_support.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A ui/gl/test/gl_image_test_support.cc View 1 2 3 4 5 6 7 8 9 1 chunk +102 lines, -0 lines 0 comments Download
A ui/gl/test/gl_image_test_template.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +182 lines, -0 lines 0 comments Download
M ui/gl/test/gl_surface_test_support.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gl/test/gl_surface_test_support.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -5 lines 0 comments Download
A ui/gl/test/gl_test_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A ui/gl/test/gl_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +141 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (27 generated)
reveman
5 years, 3 months ago (2015-09-21 22:08:47 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/20001
5 years, 3 months ago (2015-09-22 02:43:36 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/122406)
5 years, 3 months ago (2015-09-22 03:00:33 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/1354483004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/40001
5 years, 3 months ago (2015-09-22 03:45:41 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/135323)
5 years, 3 months ago (2015-09-22 04:17:46 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/1354483004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/60001
5 years, 3 months ago (2015-09-22 04:36:25 UTC) #12
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/116178)
5 years, 3 months ago (2015-09-22 05:12:40 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/1354483004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/80001
5 years, 3 months ago (2015-09-22 05:19:24 UTC) #16
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/55886)
5 years, 3 months ago (2015-09-22 06:01:53 UTC) #18
Daniele Castagna
https://codereview.chromium.org/1354483004/diff/80001/ui/gl/gl_image_unittest.cc File ui/gl/gl_image_unittest.cc (right): https://codereview.chromium.org/1354483004/diff/80001/ui/gl/gl_image_unittest.cc#newcode44 ui/gl/gl_image_unittest.cc:44: enum class GLImageType { Have you considered having one ...
5 years, 3 months ago (2015-09-22 15:55:33 UTC) #19
reveman
ptal https://codereview.chromium.org/1354483004/diff/80001/ui/gl/gl_image_unittest.cc File ui/gl/gl_image_unittest.cc (right): https://codereview.chromium.org/1354483004/diff/80001/ui/gl/gl_image_unittest.cc#newcode44 ui/gl/gl_image_unittest.cc:44: enum class GLImageType { On 2015/09/22 at 15:55:32, ...
5 years, 3 months ago (2015-09-24 00:31:42 UTC) #20
Daniele Castagna
On 2015/09/24 at 00:31:42, reveman wrote: > ptal > > https://codereview.chromium.org/1354483004/diff/80001/ui/gl/gl_image_unittest.cc > File ui/gl/gl_image_unittest.cc (right): ...
5 years, 2 months ago (2015-09-25 19:32:26 UTC) #21
reveman
On 2015/09/25 at 19:32:26, dcastagna wrote: > On 2015/09/24 at 00:31:42, reveman wrote: > > ...
5 years, 2 months ago (2015-09-30 10:13:56 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/180001
5 years, 2 months ago (2015-09-30 10:14:59 UTC) #24
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/59473)
5 years, 2 months ago (2015-09-30 11:49:03 UTC) #26
Daniele Castagna
https://codereview.chromium.org/1354483004/diff/200001/ui/gl/gl_image_ref_counted_memory_unittest.cc File ui/gl/gl_image_ref_counted_memory_unittest.cc (right): https://codereview.chromium.org/1354483004/diff/200001/ui/gl/gl_image_ref_counted_memory_unittest.cc#newcode21 ui/gl/gl_image_ref_counted_memory_unittest.cc:21: DCHECK_EQ(NumberOfPlanesForBufferFormat(format), 1u); ASSERT_EQ? https://codereview.chromium.org/1354483004/diff/200001/ui/gl/gl_image_ref_counted_memory_unittest.cc#newcode22 ui/gl/gl_image_ref_counted_memory_unittest.cc:22: std::vector<uint8_t> data(BufferSizeForBufferFormat(size, format), 0); ...
5 years, 2 months ago (2015-09-30 19:17:36 UTC) #27
reveman
https://codereview.chromium.org/1354483004/diff/200001/ui/gl/gl_image_ref_counted_memory_unittest.cc File ui/gl/gl_image_ref_counted_memory_unittest.cc (right): https://codereview.chromium.org/1354483004/diff/200001/ui/gl/gl_image_ref_counted_memory_unittest.cc#newcode21 ui/gl/gl_image_ref_counted_memory_unittest.cc:21: DCHECK_EQ(NumberOfPlanesForBufferFormat(format), 1u); On 2015/09/30 at 19:17:35, Daniele Castagna wrote: ...
5 years, 2 months ago (2015-10-01 04:01:37 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/220001
5 years, 2 months ago (2015-10-01 04:02:46 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/76069) mac_chromium_compile_dbg_ng on ...
5 years, 2 months ago (2015-10-01 04:04:29 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/240001
5 years, 2 months ago (2015-10-01 10:23:11 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/120990)
5 years, 2 months ago (2015-10-01 10:26:53 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/260001
5 years, 2 months ago (2015-10-01 10:42:04 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-01 11:56:34 UTC) #40
reveman
+piman Fyi, I'll move GLContext/Surface changes needed to run real GL tests as part of ...
5 years, 2 months ago (2015-10-01 13:28:16 UTC) #42
piman
Couple of small things, but otherwise LGTM. https://codereview.chromium.org/1354483004/diff/260001/ui/gl/test/gl_image_test_template.h File ui/gl/test/gl_image_test_template.h (right): https://codereview.chromium.org/1354483004/diff/260001/ui/gl/test/gl_image_test_template.h#newcode171 ui/gl/test/gl_image_test_template.h:171: glDeleteTextures(1, &texture); ...
5 years, 2 months ago (2015-10-06 01:23:56 UTC) #43
reveman
+glider for build/sanitizers/ +sky for components/mus/ https://codereview.chromium.org/1354483004/diff/260001/ui/gl/test/gl_image_test_template.h File ui/gl/test/gl_image_test_template.h (right): https://codereview.chromium.org/1354483004/diff/260001/ui/gl/test/gl_image_test_template.h#newcode171 ui/gl/test/gl_image_test_template.h:171: glDeleteTextures(1, &texture); On ...
5 years, 2 months ago (2015-10-06 13:53:47 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/300001
5 years, 2 months ago (2015-10-06 13:54:16 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-06 15:12:52 UTC) #49
Alexander Potapenko
lsan_suppressions.cc - LGTM with a nit. https://codereview.chromium.org/1354483004/diff/300001/build/sanitizers/lsan_suppressions.cc File build/sanitizers/lsan_suppressions.cc (right): https://codereview.chromium.org/1354483004/diff/300001/build/sanitizers/lsan_suppressions.cc#newcode54 build/sanitizers/lsan_suppressions.cc:54: // Leaks in ...
5 years, 2 months ago (2015-10-06 15:55:53 UTC) #50
sky
LGTM
5 years, 2 months ago (2015-10-06 16:59:36 UTC) #51
reveman
https://codereview.chromium.org/1354483004/diff/300001/build/sanitizers/lsan_suppressions.cc File build/sanitizers/lsan_suppressions.cc (right): https://codereview.chromium.org/1354483004/diff/300001/build/sanitizers/lsan_suppressions.cc#newcode54 build/sanitizers/lsan_suppressions.cc:54: // Leaks in swrast_dri.so. On 2015/10/06 at 15:55:53, Alexander ...
5 years, 2 months ago (2015-10-06 22:44:28 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/320001
5 years, 2 months ago (2015-10-06 22:45:13 UTC) #55
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 2 months ago (2015-10-07 00:11:01 UTC) #56
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/f9d17986fef45ad30ef4e6e468a7a56a90851508 Cr-Commit-Position: refs/heads/master@{#352720}
5 years, 2 months ago (2015-10-07 00:12:02 UTC) #57
Kunihiko Sakamoto
A revert of this CL (patchset #17 id:320001) has been created in https://codereview.chromium.org/1390083002/ by ksakamoto@chromium.org. ...
5 years, 2 months ago (2015-10-07 01:47:12 UTC) #58
reveman
Added osmesa deps in a way consistent with cc/ to latest patch. I can only ...
5 years, 2 months ago (2015-10-07 02:45:44 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/340001
5 years, 2 months ago (2015-10-07 02:47:17 UTC) #62
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 2 months ago (2015-10-07 04:12:55 UTC) #63
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/11b3655a4dfd5b46f7783421e2959a41ddbf3a00 Cr-Commit-Position: refs/heads/master@{#352767}
5 years, 2 months ago (2015-10-07 04:13:59 UTC) #64
Kunihiko Sakamoto
A revert of this CL (patchset #18 id:340001) has been created in https://codereview.chromium.org/1390143002/ by ksakamoto@chromium.org. ...
5 years, 2 months ago (2015-10-07 05:48:06 UTC) #65
reveman
On 2015/10/07 at 05:48:06, ksakamoto wrote: > A revert of this CL (patchset #18 id:340001) ...
5 years, 2 months ago (2015-10-07 14:31:42 UTC) #66
Ken Russell (switch to Gerrit)
On 2015/10/07 14:31:42, reveman wrote: > On 2015/10/07 at 05:48:06, ksakamoto wrote: > > A ...
5 years, 2 months ago (2015-10-07 15:33:51 UTC) #67
David Yen
On 2015/10/07 15:33:51, Ken Russell wrote: > On 2015/10/07 14:31:42, reveman wrote: > > On ...
5 years, 2 months ago (2015-10-07 17:40:25 UTC) #68
reveman
On 2015/10/07 at 17:40:25, dyen wrote: > On 2015/10/07 15:33:51, Ken Russell wrote: > > ...
5 years, 2 months ago (2015-10-07 17:53:38 UTC) #69
Ken Russell (switch to Gerrit)
On 2015/10/07 17:53:38, reveman wrote: > On 2015/10/07 at 17:40:25, dyen wrote: > > On ...
5 years, 2 months ago (2015-10-08 20:58:51 UTC) #70
reveman
On 2015/10/08 at 20:58:51, kbr wrote: > On 2015/10/07 17:53:38, reveman wrote: > > On ...
5 years, 2 months ago (2015-10-09 14:48:11 UTC) #71
reveman
fyi, re-landing this now that only GPU bots are running gl_unittests.
5 years, 2 months ago (2015-10-13 12:19:03 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354483004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354483004/360001
5 years, 2 months ago (2015-10-13 12:20:09 UTC) #75
commit-bot: I haz the power
Committed patchset #19 (id:360001)
5 years, 2 months ago (2015-10-13 13:47:47 UTC) #76
commit-bot: I haz the power
5 years, 2 months ago (2015-10-13 13:49:25 UTC) #77
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/8aa0fb1d78963610ab62a349d1dff9bd2e065a3e
Cr-Commit-Position: refs/heads/master@{#353735}

Powered by Google App Engine
This is Rietveld 408576698