diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 00:04:00 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 00:04:00 +0000 |
commit | 81375743a18758e2d3e1401086c41fc6102d7404 (patch) | |
tree | 8934b84e05e419c1857139a547507c5704808c46 /gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h | |
parent | c1b2efa44d46f948b3820f02e169bd95db094625 (diff) | |
download | chromium_src-81375743a18758e2d3e1401086c41fc6102d7404.zip chromium_src-81375743a18758e2d3e1401086c41fc6102d7404.tar.gz chromium_src-81375743a18758e2d3e1401086c41fc6102d7404.tar.bz2 |
Plum through ANGLE_depth_texture
TEST=unit tests
BUG=none
Review URL: https://chromiumcodereview.appspot.com/10441087
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h')
-rw-r--r-- | gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h index dc2012d..b1f44ad 100644 --- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h +++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h @@ -963,6 +963,17 @@ std::string GLES2Util::GetStringReadPixelFormat(uint32 value) { string_table, arraysize(string_table), value); } +std::string GLES2Util::GetStringReadPixelType(uint32 value) { + static EnumToString string_table[] = { + { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" }, + { GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5" }, + { GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4" }, + { GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1" }, + }; + return GLES2Util::GetQualifiedEnumString( + string_table, arraysize(string_table), value); +} + std::string GLES2Util::GetStringRenderBufferFormat(uint32 value) { static EnumToString string_table[] = { { GL_RGBA4, "GL_RGBA4" }, |