| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
| 6 | 6 |
| 7 // It is included by gles2_cmd_decoder.cc | 7 // It is included by gles2_cmd_decoder.cc |
| 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| 10 | 10 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 return error::kNoError; | 373 return error::kNoError; |
| 374 } | 374 } |
| 375 if (width < 0) { | 375 if (width < 0) { |
| 376 SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: width < 0"); | 376 SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: width < 0"); |
| 377 return error::kNoError; | 377 return error::kNoError; |
| 378 } | 378 } |
| 379 if (height < 0) { | 379 if (height < 0) { |
| 380 SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: height < 0"); | 380 SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: height < 0"); |
| 381 return error::kNoError; | 381 return error::kNoError; |
| 382 } | 382 } |
| 383 if (!validators_->texture_border.IsValid(border)) { |
| 384 SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D: border GL_INVALID_VALUE"); |
| 385 return error::kNoError; |
| 386 } |
| 383 DoCopyTexImage2D(target, level, internalformat, x, y, width, height, border); | 387 DoCopyTexImage2D(target, level, internalformat, x, y, width, height, border); |
| 384 return error::kNoError; | 388 return error::kNoError; |
| 385 } | 389 } |
| 386 | 390 |
| 387 error::Error GLES2DecoderImpl::HandleCopyTexSubImage2D( | 391 error::Error GLES2DecoderImpl::HandleCopyTexSubImage2D( |
| 388 uint32 immediate_data_size, const gles2::CopyTexSubImage2D& c) { | 392 uint32 immediate_data_size, const gles2::CopyTexSubImage2D& c) { |
| 389 GLenum target = static_cast<GLenum>(c.target); | 393 GLenum target = static_cast<GLenum>(c.target); |
| 390 GLint level = static_cast<GLint>(c.level); | 394 GLint level = static_cast<GLint>(c.level); |
| 391 GLint xoffset = static_cast<GLint>(c.xoffset); | 395 GLint xoffset = static_cast<GLint>(c.xoffset); |
| 392 GLint yoffset = static_cast<GLint>(c.yoffset); | 396 GLint yoffset = static_cast<GLint>(c.yoffset); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 if (!validators_->attachment.IsValid(attachment)) { | 718 if (!validators_->attachment.IsValid(attachment)) { |
| 715 SetGLError( | 719 SetGLError( |
| 716 GL_INVALID_ENUM, "glFramebufferTexture2D: attachment GL_INVALID_ENUM"); | 720 GL_INVALID_ENUM, "glFramebufferTexture2D: attachment GL_INVALID_ENUM"); |
| 717 return error::kNoError; | 721 return error::kNoError; |
| 718 } | 722 } |
| 719 if (!validators_->texture_target.IsValid(textarget)) { | 723 if (!validators_->texture_target.IsValid(textarget)) { |
| 720 SetGLError( | 724 SetGLError( |
| 721 GL_INVALID_ENUM, "glFramebufferTexture2D: textarget GL_INVALID_ENUM"); | 725 GL_INVALID_ENUM, "glFramebufferTexture2D: textarget GL_INVALID_ENUM"); |
| 722 return error::kNoError; | 726 return error::kNoError; |
| 723 } | 727 } |
| 728 if (!validators_->zero_only.IsValid(level)) { |
| 729 SetGLError( |
| 730 GL_INVALID_VALUE, "glFramebufferTexture2D: level GL_INVALID_VALUE"); |
| 731 return error::kNoError; |
| 732 } |
| 724 DoFramebufferTexture2D(target, attachment, textarget, texture, level); | 733 DoFramebufferTexture2D(target, attachment, textarget, texture, level); |
| 725 return error::kNoError; | 734 return error::kNoError; |
| 726 } | 735 } |
| 727 | 736 |
| 728 error::Error GLES2DecoderImpl::HandleFrontFace( | 737 error::Error GLES2DecoderImpl::HandleFrontFace( |
| 729 uint32 immediate_data_size, const gles2::FrontFace& c) { | 738 uint32 immediate_data_size, const gles2::FrontFace& c) { |
| 730 GLenum mode = static_cast<GLenum>(c.mode); | 739 GLenum mode = static_cast<GLenum>(c.mode); |
| 731 if (!validators_->face_mode.IsValid(mode)) { | 740 if (!validators_->face_mode.IsValid(mode)) { |
| 732 SetGLError(GL_INVALID_ENUM, "glFrontFace: mode GL_INVALID_ENUM"); | 741 SetGLError(GL_INVALID_ENUM, "glFrontFace: mode GL_INVALID_ENUM"); |
| 733 return error::kNoError; | 742 return error::kNoError; |
| (...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2676 error::Error GLES2DecoderImpl::HandleResizeCHROMIUM( | 2685 error::Error GLES2DecoderImpl::HandleResizeCHROMIUM( |
| 2677 uint32 immediate_data_size, const gles2::ResizeCHROMIUM& c) { | 2686 uint32 immediate_data_size, const gles2::ResizeCHROMIUM& c) { |
| 2678 GLuint width = static_cast<GLuint>(c.width); | 2687 GLuint width = static_cast<GLuint>(c.width); |
| 2679 GLuint height = static_cast<GLuint>(c.height); | 2688 GLuint height = static_cast<GLuint>(c.height); |
| 2680 DoResizeCHROMIUM(width, height); | 2689 DoResizeCHROMIUM(width, height); |
| 2681 return error::kNoError; | 2690 return error::kNoError; |
| 2682 } | 2691 } |
| 2683 | 2692 |
| 2684 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 2693 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| 2685 | 2694 |
| OLD | NEW |