| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return GL_FRAMEBUFFER_UNSUPPORTED; | 110 return GL_FRAMEBUFFER_UNSUPPORTED; |
| 111 } | 111 } |
| 112 *result = 0; | 112 *result = 0; |
| 113 helper_->CheckFramebufferStatus( | 113 helper_->CheckFramebufferStatus( |
| 114 target, GetResultShmId(), GetResultShmOffset()); | 114 target, GetResultShmId(), GetResultShmOffset()); |
| 115 WaitForCmd(); | 115 WaitForCmd(); |
| 116 GPU_CLIENT_LOG("returned " << *result); | 116 GPU_CLIENT_LOG("returned " << *result); |
| 117 return *result; | 117 return *result; |
| 118 } | 118 } |
| 119 | 119 |
| 120 void GLES2Implementation::Clear(GLbitfield mask) { |
| 121 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 122 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClear(" << mask << ")"); |
| 123 helper_->Clear(mask); |
| 124 } |
| 125 |
| 120 void GLES2Implementation::ClearColor( | 126 void GLES2Implementation::ClearColor( |
| 121 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { | 127 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { |
| 122 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 128 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 123 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearColor(" << red << ", " << gr
een << ", " << blue << ", " << alpha << ")"); // NOLINT | 129 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearColor(" << red << ", " << gr
een << ", " << blue << ", " << alpha << ")"); // NOLINT |
| 124 helper_->ClearColor(red, green, blue, alpha); | 130 helper_->ClearColor(red, green, blue, alpha); |
| 125 } | 131 } |
| 126 | 132 |
| 127 void GLES2Implementation::ClearDepthf(GLclampf depth) { | 133 void GLES2Implementation::ClearDepthf(GLclampf depth) { |
| 128 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 134 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 129 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearDepthf(" << depth << ")"); | 135 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearDepthf(" << depth << ")"); |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 } | 1520 } |
| 1515 | 1521 |
| 1516 void GLES2Implementation::TraceEndCHROMIUM() { | 1522 void GLES2Implementation::TraceEndCHROMIUM() { |
| 1517 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 1523 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 1518 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTraceEndCHROMIUM(" << ")"); | 1524 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTraceEndCHROMIUM(" << ")"); |
| 1519 helper_->TraceEndCHROMIUM(); | 1525 helper_->TraceEndCHROMIUM(); |
| 1520 } | 1526 } |
| 1521 | 1527 |
| 1522 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1528 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
| 1523 | 1529 |
| OLD | NEW |