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. |
11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
13 | 13 |
14 void GLES2Implementation::AttachShader(GLuint program, GLuint shader) { | 14 void GLES2Implementation::AttachShader(GLuint program, GLuint shader) { |
15 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 15 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
16 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glAttachShader(" << program << ", "
<< shader << ")"); // NOLINT | 16 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glAttachShader(" << program << ", "
<< shader << ")"); // NOLINT |
17 helper_->AttachShader(program, shader); | 17 helper_->AttachShader(program, shader); |
18 } | 18 } |
19 | 19 |
20 void GLES2Implementation::BindBuffer(GLenum target, GLuint buffer) { | |
21 GPU_CLIENT_SINGLE_THREAD_CHECK(); | |
22 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindBuffer(" << GLES2Util::GetStr
ingBufferTarget(target) << ", " << buffer << ")"); // NOLINT | |
23 if (IsBufferReservedId(buffer)) { | |
24 SetGLError(GL_INVALID_OPERATION, "BindBuffer", "buffer reserved id"); | |
25 return; | |
26 } | |
27 BindBufferHelper(target, buffer); | |
28 helper_->BindBuffer(target, buffer); | |
29 } | |
30 | |
31 void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) { | 20 void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) { |
32 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 21 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
33 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindFramebuffer(" << GLES2Util::G
etStringFrameBufferTarget(target) << ", " << framebuffer << ")"); // NOLINT | 22 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindFramebuffer(" << GLES2Util::G
etStringFrameBufferTarget(target) << ", " << framebuffer << ")"); // NOLINT |
34 if (IsFramebufferReservedId(framebuffer)) { | 23 if (IsFramebufferReservedId(framebuffer)) { |
35 SetGLError( | 24 SetGLError( |
36 GL_INVALID_OPERATION, "BindFramebuffer", "framebuffer reserved id"); | 25 GL_INVALID_OPERATION, "BindFramebuffer", "framebuffer reserved id"); |
37 return; | 26 return; |
38 } | 27 } |
39 BindFramebufferHelper(target, framebuffer); | 28 BindFramebufferHelper(target, framebuffer); |
40 helper_->BindFramebuffer(target, framebuffer); | 29 helper_->BindFramebuffer(target, framebuffer); |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 | 1498 |
1510 void GLES2Implementation::ReleaseTexImage2DCHROMIUM( | 1499 void GLES2Implementation::ReleaseTexImage2DCHROMIUM( |
1511 GLenum target, GLint imageId) { | 1500 GLenum target, GLint imageId) { |
1512 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 1501 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
1513 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glReleaseTexImage2DCHROMIUM(" << GL
ES2Util::GetStringTextureBindTarget(target) << ", " << imageId << ")"); // NOLI
NT | 1502 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glReleaseTexImage2DCHROMIUM(" << GL
ES2Util::GetStringTextureBindTarget(target) << ", " << imageId << ")"); // NOLI
NT |
1514 helper_->ReleaseTexImage2DCHROMIUM(target, imageId); | 1503 helper_->ReleaseTexImage2DCHROMIUM(target, imageId); |
1515 } | 1504 } |
1516 | 1505 |
1517 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1506 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
1518 | 1507 |
OLD | NEW |