OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // It is included by gles2_cmd_decoder.cc | 9 // It is included by gles2_cmd_decoder.cc |
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
(...skipping 2524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2535 if (height < 0) { | 2535 if (height < 0) { |
2536 SetGLError( | 2536 SetGLError( |
2537 GL_INVALID_VALUE, "glRenderbufferStorageMultisampleEXT: height < 0"); | 2537 GL_INVALID_VALUE, "glRenderbufferStorageMultisampleEXT: height < 0"); |
2538 return error::kNoError; | 2538 return error::kNoError; |
2539 } | 2539 } |
2540 DoRenderbufferStorageMultisample( | 2540 DoRenderbufferStorageMultisample( |
2541 target, samples, internalformat, width, height); | 2541 target, samples, internalformat, width, height); |
2542 return error::kNoError; | 2542 return error::kNoError; |
2543 } | 2543 } |
2544 | 2544 |
| 2545 error::Error GLES2DecoderImpl::HandleTexStorage2DEXT( |
| 2546 uint32 immediate_data_size, const gles2::TexStorage2DEXT& c) { |
| 2547 GLenum target = static_cast<GLenum>(c.target); |
| 2548 GLsizei levels = static_cast<GLsizei>(c.levels); |
| 2549 GLint internalFormat = static_cast<GLint>(c.internalFormat); |
| 2550 GLsizei width = static_cast<GLsizei>(c.width); |
| 2551 GLsizei height = static_cast<GLsizei>(c.height); |
| 2552 if (!validators_->texture_target.IsValid(target)) { |
| 2553 SetGLError(GL_INVALID_ENUM, "glTexStorage2DEXT: target GL_INVALID_ENUM"); |
| 2554 return error::kNoError; |
| 2555 } |
| 2556 if (levels < 0) { |
| 2557 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: levels < 0"); |
| 2558 return error::kNoError; |
| 2559 } |
| 2560 if (!validators_->texture_internal_format_storage.IsValid(internalFormat)) { |
| 2561 SetGLError( |
| 2562 GL_INVALID_VALUE, |
| 2563 "glTexStorage2DEXT: internalFormat GL_INVALID_VALUE"); |
| 2564 return error::kNoError; |
| 2565 } |
| 2566 if (width < 0) { |
| 2567 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: width < 0"); |
| 2568 return error::kNoError; |
| 2569 } |
| 2570 if (height < 0) { |
| 2571 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: height < 0"); |
| 2572 return error::kNoError; |
| 2573 } |
| 2574 DoTexStorage2DEXT(target, levels, internalFormat, width, height); |
| 2575 return error::kNoError; |
| 2576 } |
| 2577 |
2545 error::Error GLES2DecoderImpl::HandleGetMaxValueInBufferCHROMIUM( | 2578 error::Error GLES2DecoderImpl::HandleGetMaxValueInBufferCHROMIUM( |
2546 uint32 immediate_data_size, const gles2::GetMaxValueInBufferCHROMIUM& c) { | 2579 uint32 immediate_data_size, const gles2::GetMaxValueInBufferCHROMIUM& c) { |
2547 GLuint buffer_id = c.buffer_id; | 2580 GLuint buffer_id = c.buffer_id; |
2548 GLsizei count = static_cast<GLsizei>(c.count); | 2581 GLsizei count = static_cast<GLsizei>(c.count); |
2549 GLenum type = static_cast<GLenum>(c.type); | 2582 GLenum type = static_cast<GLenum>(c.type); |
2550 GLuint offset = static_cast<GLuint>(c.offset); | 2583 GLuint offset = static_cast<GLuint>(c.offset); |
2551 typedef GetMaxValueInBufferCHROMIUM::Result Result; | 2584 typedef GetMaxValueInBufferCHROMIUM::Result Result; |
2552 Result* result_dst = GetSharedMemoryAs<Result*>( | 2585 Result* result_dst = GetSharedMemoryAs<Result*>( |
2553 c.result_shm_id, c.result_shm_offset, sizeof(*result_dst)); | 2586 c.result_shm_id, c.result_shm_offset, sizeof(*result_dst)); |
2554 if (!result_dst) { | 2587 if (!result_dst) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2596 if (height < 0) { | 2629 if (height < 0) { |
2597 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0"); | 2630 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0"); |
2598 return error::kNoError; | 2631 return error::kNoError; |
2599 } | 2632 } |
2600 DoTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); | 2633 DoTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); |
2601 return error::kNoError; | 2634 return error::kNoError; |
2602 } | 2635 } |
2603 | 2636 |
2604 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 2637 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
2605 | 2638 |
OLD | NEW |