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 if (BindBufferHelper(target, buffer)) { | |
28 helper_->BindBuffer(target, buffer); | |
29 } | |
30 } | |
31 | |
32 void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) { | 20 void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) { |
33 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 21 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
34 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindFramebuffer(" << GLES2Util::G
etStringFrameBufferTarget(target) << ", " << framebuffer << ")"); // NOLINT | 22 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindFramebuffer(" << GLES2Util::G
etStringFrameBufferTarget(target) << ", " << framebuffer << ")"); // NOLINT |
35 if (IsFramebufferReservedId(framebuffer)) { | 23 if (IsFramebufferReservedId(framebuffer)) { |
36 SetGLError( | 24 SetGLError( |
37 GL_INVALID_OPERATION, "BindFramebuffer", "framebuffer reserved id"); | 25 GL_INVALID_OPERATION, "BindFramebuffer", "framebuffer reserved id"); |
38 return; | 26 return; |
39 } | 27 } |
40 if (BindFramebufferHelper(target, framebuffer)) { | 28 if (BindFramebufferHelper(target, framebuffer)) { |
41 helper_->BindFramebuffer(target, framebuffer); | 29 helper_->BindFramebuffer(target, framebuffer); |
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 } | 1502 } |
1515 | 1503 |
1516 void GLES2Implementation::TraceEndCHROMIUM() { | 1504 void GLES2Implementation::TraceEndCHROMIUM() { |
1517 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 1505 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
1518 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTraceEndCHROMIUM(" << ")"); | 1506 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTraceEndCHROMIUM(" << ")"); |
1519 helper_->TraceEndCHROMIUM(); | 1507 helper_->TraceEndCHROMIUM(); |
1520 } | 1508 } |
1521 | 1509 |
1522 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1510 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
1523 | 1511 |
OLD | NEW |