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

Issue 473853002: Make it possible to test command buffer decoder functions with extension flags (Closed)

Created:
6 years, 4 months ago by Kimmo Kinnunen
Modified:
6 years, 4 months ago
Reviewers:
vmiura, piman
CC:
chromium-reviews, piman+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make it possible to test command buffer decoder functions with extension flags Make it possible to test command buffer decoder functions even if they have extension_flags specified in the function info. Create new files for these autogenerated unit tests: gles2_cmd_decoder_unittest_extensions{.cc,_autogen.h}. Does not add any new unit tests, as the existing functions have manually written tests that cover what current autogenerator can produce. The idea is that for each new extension_flag function one would write a new unit test class in gles2_cmd_decoder_unittest_extensions.cc. The class initialize the decoder with the needed extensions, so that the feature flag controlling the function would be enabled. Changes the way the unit test class name is defined in build_gles2_cmd_buffer.py. Now the class is parametrized by the top-level function that writes out the service unit tests. Thus it's not possible to use CWriter classes 'file number' property. Instead, pass the name in the substitution dict. Define that the methods generating service unittests accept varying number of substitution dicts. This is useful for supporting extensions such as upcoming CHROMIUM_path_rendering, so that more of the decoder function unit tests can be autogenerated. BUG=344330 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290794

Patch Set 1 #

Patch Set 2 : missing hunko #

Patch Set 3 : fix one lint error #

Patch Set 4 : add new decoder unittest file to gpu/BUILD.gn #

Patch Set 5 : rebase #

Patch Set 6 : add a hunk to avoid functions jumping between numbered unittests #

Total comments: 4

Patch Set 7 : address review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -86 lines) Patch
M gpu/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 61 chunks +140 lines, -81 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download
A gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h View 1 chunk +21 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Kimmo Kinnunen
PTAL, would be useful for the path rendering work. Thanks!
6 years, 4 months ago (2014-08-14 08:57:15 UTC) #1
vmiura
+piman
6 years, 4 months ago (2014-08-14 21:53:21 UTC) #2
vmiura
LGTM, modulo Lint errors.
6 years, 4 months ago (2014-08-14 21:58:24 UTC) #3
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-15 05:25:49 UTC) #4
Kimmo Kinnunen
The CQ bit was unchecked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-15 05:26:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkinnunen@nvidia.com/473853002/40001
6 years, 4 months ago (2014-08-15 05:26:47 UTC) #6
Kimmo Kinnunen
Fixed one lint error, others were part of the autogen system. I took the liberty ...
6 years, 4 months ago (2014-08-15 05:38:08 UTC) #7
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-15 05:38:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkinnunen@nvidia.com/473853002/60001
6 years, 4 months ago (2014-08-15 05:41:17 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-15 05:56:53 UTC) #10
Kimmo Kinnunen
The CQ bit was unchecked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-15 05:59:18 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 05:59:42 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/52884) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/42160) android_clang_dbg ...
6 years, 4 months ago (2014-08-15 05:59:43 UTC) #13
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-15 07:05:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkinnunen@nvidia.com/473853002/80001
6 years, 4 months ago (2014-08-15 07:06:52 UTC) #15
Kimmo Kinnunen
Ah, didn't understand this needs piman's lgtm due to gpu/gpu.gyp and gpu.gn changes. vmiura, since ...
6 years, 4 months ago (2014-08-15 07:48:35 UTC) #16
vmiura
> Ah, didn't understand this needs piman's lgtm due to gpu/gpu.gyp and gpu.gn > changes. ...
6 years, 4 months ago (2014-08-15 19:48:51 UTC) #17
vmiura
LGTM.
6 years, 4 months ago (2014-08-15 19:55:32 UTC) #18
piman
LGTM + 2 nits https://codereview.chromium.org/473853002/diff/100001/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/473853002/diff/100001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode2645 gpu/command_buffer/build_gles2_cmd_buffer.py:2645: # unfortunate. Could we do ...
6 years, 4 months ago (2014-08-15 20:37:25 UTC) #19
Kimmo Kinnunen
Thanks https://codereview.chromium.org/473853002/diff/100001/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/473853002/diff/100001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode2645 gpu/command_buffer/build_gles2_cmd_buffer.py:2645: # unfortunate. On 2014/08/15 20:37:24, piman (OOO) wrote: ...
6 years, 4 months ago (2014-08-20 05:59:06 UTC) #20
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 4 months ago (2014-08-20 05:59:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkinnunen@nvidia.com/473853002/120001
6 years, 4 months ago (2014-08-20 05:59:49 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-20 07:50:53 UTC) #23
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 09:23:16 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 (120001) as 290794

Powered by Google App Engine
This is Rietveld 408576698