| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file is included by gles2_implementation.cc to define the | 9 // This file is included by gles2_implementation.cc to define the |
| 10 // GL api functions. | 10 // GL api functions. |
| (...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1438 if (height < 0) { | 1438 if (height < 0) { |
| 1439 SetGLError( | 1439 SetGLError( |
| 1440 GL_INVALID_VALUE, "glRenderbufferStorageMultisampleEXT", "height < 0"); | 1440 GL_INVALID_VALUE, "glRenderbufferStorageMultisampleEXT", "height < 0"); |
| 1441 return; | 1441 return; |
| 1442 } | 1442 } |
| 1443 helper_->RenderbufferStorageMultisampleEXT( | 1443 helper_->RenderbufferStorageMultisampleEXT( |
| 1444 target, samples, internalformat, width, height); | 1444 target, samples, internalformat, width, height); |
| 1445 CheckGLError(); | 1445 CheckGLError(); |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 void GLES2Implementation::FramebufferTexture2DMultisampleEXT( |
| 1449 GLenum target, GLenum attachment, GLenum textarget, GLuint texture, |
| 1450 GLint level, GLsizei samples) { |
| 1451 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 1452 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFramebufferTexture2DMultisampleEX
T(" << GLES2Util::GetStringFrameBufferTarget(target) << ", " << GLES2Util::GetSt
ringAttachment(attachment) << ", " << GLES2Util::GetStringTextureTarget(textarge
t) << ", " << texture << ", " << level << ", " << samples << ")"); // NOLINT |
| 1453 if (samples < 0) { |
| 1454 SetGLError( |
| 1455 GL_INVALID_VALUE, "glFramebufferTexture2DMultisampleEXT", "samples < 0")
; // NOLINT |
| 1456 return; |
| 1457 } |
| 1458 helper_->FramebufferTexture2DMultisampleEXT( |
| 1459 target, attachment, textarget, texture, level, samples); |
| 1460 CheckGLError(); |
| 1461 } |
| 1462 |
| 1448 void GLES2Implementation::TexStorage2DEXT( | 1463 void GLES2Implementation::TexStorage2DEXT( |
| 1449 GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, | 1464 GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, |
| 1450 GLsizei height) { | 1465 GLsizei height) { |
| 1451 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 1466 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 1452 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTexStorage2DEXT(" << GLES2Util::G
etStringTextureTarget(target) << ", " << levels << ", " << GLES2Util::GetStringT
extureInternalFormatStorage(internalFormat) << ", " << width << ", " << height <
< ")"); // NOLINT | 1467 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTexStorage2DEXT(" << GLES2Util::G
etStringTextureTarget(target) << ", " << levels << ", " << GLES2Util::GetStringT
extureInternalFormatStorage(internalFormat) << ", " << width << ", " << height <
< ")"); // NOLINT |
| 1453 if (levels < 0) { | 1468 if (levels < 0) { |
| 1454 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT", "levels < 0"); | 1469 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT", "levels < 0"); |
| 1455 return; | 1470 return; |
| 1456 } | 1471 } |
| 1457 if (width < 0) { | 1472 if (width < 0) { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 if (count < 0) { | 1729 if (count < 0) { |
| 1715 SetGLError(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0"); | 1730 SetGLError(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0"); |
| 1716 return; | 1731 return; |
| 1717 } | 1732 } |
| 1718 helper_->DrawBuffersEXTImmediate(count, bufs); | 1733 helper_->DrawBuffersEXTImmediate(count, bufs); |
| 1719 CheckGLError(); | 1734 CheckGLError(); |
| 1720 } | 1735 } |
| 1721 | 1736 |
| 1722 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1737 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
| 1723 | 1738 |
| OLD | NEW |