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 // This file is included by gles2_implementation.h to declare the | 9 // This file is included by gles2_implementation.h to declare the |
10 // GL api functions. | 10 // GL api functions. |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 source[max_size] = '\0'; | 1298 source[max_size] = '\0'; |
1299 GPU_CLIENT_LOG("------\n" << source << "\n------"); | 1299 GPU_CLIENT_LOG("------\n" << source << "\n------"); |
1300 } | 1300 } |
1301 } | 1301 } |
1302 if (length != NULL) { | 1302 if (length != NULL) { |
1303 *length = max_size; | 1303 *length = max_size; |
1304 } | 1304 } |
1305 } | 1305 } |
1306 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height); | 1306 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height); |
1307 | 1307 |
| 1308 void TexImageIOSurface2DCHROMIUM( |
| 1309 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, |
| 1310 GLuint plane) { |
| 1311 GPU_CLIENT_LOG("[" << this << "] glTexImageIOSurface2DCHROMIUM(" << GLES2Util:
:GetStringTextureBindTarget(target) << ", " << width << ", " << height << ", " <
< ioSurfaceId << ", " << plane << ")"); // NOLINT |
| 1312 if (width < 0) { |
| 1313 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: width < 0"); |
| 1314 return; |
| 1315 } |
| 1316 if (height < 0) { |
| 1317 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0"); |
| 1318 return; |
| 1319 } |
| 1320 helper_->TexImageIOSurface2DCHROMIUM( |
| 1321 target, width, height, ioSurfaceId, plane); |
| 1322 } |
| 1323 |
1308 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_ | 1324 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_ |
1309 | 1325 |
OLD | NEW |