command_buffer: Table based command dispatch.
commitcd108598efea261241ac8b34ae225c179ed935a9
authorvmiura <vmiura@chromium.org>
Mon, 8 Sep 2014 14:36:34 +0000 (8 07:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Sep 2014 14:39:15 +0000 (8 14:39 +0000)
tree37674162c139319bdf400414c6eddc31c618a1e3
parent8a59821dfe4696acf6269891b0ef0bfb7ad33a3f
command_buffer: Table based command dispatch.

Changing command dispatch from a "switch" dispatch to table
based dispatch makes DoCommand about 2 times faster on
Android, and also seems to be reducing times in other
command_buffer code due to code size reduction.

BUG=394570

Review URL: https://codereview.chromium.org/540053004

Cr-Commit-Position: refs/heads/master@{#293721}
gpu/command_buffer/build_gles2_cmd_buffer.py
gpu/command_buffer/service/gles2_cmd_decoder.cc
gpu/command_buffer/service/gles2_cmd_decoder_autogen.h