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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 1146633002: Update target of texStorage2D for ES 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update gl_tests Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 4217 matching lines...) Expand 10 before | Expand all | Expand 10 after
4228 uint32_t immediate_data_size, 4228 uint32_t immediate_data_size,
4229 const void* cmd_data) { 4229 const void* cmd_data) {
4230 const gles2::cmds::TexStorage2DEXT& c = 4230 const gles2::cmds::TexStorage2DEXT& c =
4231 *static_cast<const gles2::cmds::TexStorage2DEXT*>(cmd_data); 4231 *static_cast<const gles2::cmds::TexStorage2DEXT*>(cmd_data);
4232 (void)c; 4232 (void)c;
4233 GLenum target = static_cast<GLenum>(c.target); 4233 GLenum target = static_cast<GLenum>(c.target);
4234 GLsizei levels = static_cast<GLsizei>(c.levels); 4234 GLsizei levels = static_cast<GLsizei>(c.levels);
4235 GLenum internalFormat = static_cast<GLenum>(c.internalFormat); 4235 GLenum internalFormat = static_cast<GLenum>(c.internalFormat);
4236 GLsizei width = static_cast<GLsizei>(c.width); 4236 GLsizei width = static_cast<GLsizei>(c.width);
4237 GLsizei height = static_cast<GLsizei>(c.height); 4237 GLsizei height = static_cast<GLsizei>(c.height);
4238 if (!validators_->texture_target.IsValid(target)) { 4238 if (!validators_->texture_bind_target.IsValid(target)) {
4239 LOCAL_SET_GL_ERROR_INVALID_ENUM("glTexStorage2DEXT", target, "target"); 4239 LOCAL_SET_GL_ERROR_INVALID_ENUM("glTexStorage2DEXT", target, "target");
4240 return error::kNoError; 4240 return error::kNoError;
4241 } 4241 }
4242 if (levels < 0) { 4242 if (levels < 0) {
4243 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glTexStorage2DEXT", "levels < 0"); 4243 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glTexStorage2DEXT", "levels < 0");
4244 return error::kNoError; 4244 return error::kNoError;
4245 } 4245 }
4246 if (!validators_->texture_internal_format_storage.IsValid(internalFormat)) { 4246 if (!validators_->texture_internal_format_storage.IsValid(internalFormat)) {
4247 LOCAL_SET_GL_ERROR_INVALID_ENUM("glTexStorage2DEXT", internalFormat, 4247 LOCAL_SET_GL_ERROR_INVALID_ENUM("glTexStorage2DEXT", internalFormat,
4248 "internalFormat"); 4248 "internalFormat");
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
5082 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; 5082 state_.enable_flags.cached_primitive_restart_fixed_index = enabled;
5083 return true; 5083 return true;
5084 } 5084 }
5085 return false; 5085 return false;
5086 default: 5086 default:
5087 NOTREACHED(); 5087 NOTREACHED();
5088 return false; 5088 return false;
5089 } 5089 }
5090 } 5090 }
5091 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5091 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/tests/gl_texture_storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698