| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3439 | 3439 |
| 3440 void GLES2Implementation::LoseContextCHROMIUM(GLenum current, GLenum other) { | 3440 void GLES2Implementation::LoseContextCHROMIUM(GLenum current, GLenum other) { |
| 3441 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3441 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3442 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glLoseContextCHROMIUM(" | 3442 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glLoseContextCHROMIUM(" |
| 3443 << GLES2Util::GetStringResetStatus(current) << ", " | 3443 << GLES2Util::GetStringResetStatus(current) << ", " |
| 3444 << GLES2Util::GetStringResetStatus(other) << ")"); | 3444 << GLES2Util::GetStringResetStatus(other) << ")"); |
| 3445 helper_->LoseContextCHROMIUM(current, other); | 3445 helper_->LoseContextCHROMIUM(current, other); |
| 3446 CheckGLError(); | 3446 CheckGLError(); |
| 3447 } | 3447 } |
| 3448 | 3448 |
| 3449 void GLES2Implementation::WaitSyncPointCHROMIUM(GLuint sync_point) { | |
| 3450 GPU_CLIENT_SINGLE_THREAD_CHECK(); | |
| 3451 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitSyncPointCHROMIUM(" | |
| 3452 << sync_point << ")"); | |
| 3453 helper_->WaitSyncPointCHROMIUM(sync_point); | |
| 3454 CheckGLError(); | |
| 3455 } | |
| 3456 | |
| 3457 void GLES2Implementation::DrawBuffersEXT(GLsizei count, const GLenum* bufs) { | 3449 void GLES2Implementation::DrawBuffersEXT(GLsizei count, const GLenum* bufs) { |
| 3458 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3450 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3459 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDrawBuffersEXT(" << count << ", " | 3451 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDrawBuffersEXT(" << count << ", " |
| 3460 << static_cast<const void*>(bufs) << ")"); | 3452 << static_cast<const void*>(bufs) << ")"); |
| 3461 GPU_CLIENT_LOG_CODE_BLOCK({ | 3453 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 3462 for (GLsizei i = 0; i < count; ++i) { | 3454 for (GLsizei i = 0; i < count; ++i) { |
| 3463 GPU_CLIENT_LOG(" " << i << ": " << bufs[0 + i * 1]); | 3455 GPU_CLIENT_LOG(" " << i << ": " << bufs[0 + i * 1]); |
| 3464 } | 3456 } |
| 3465 }); | 3457 }); |
| 3466 if (count < 0) { | 3458 if (count < 0) { |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3661 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() { | 3653 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() { |
| 3662 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3654 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3663 GPU_CLIENT_LOG("[" << GetLogPrefix() | 3655 GPU_CLIENT_LOG("[" << GetLogPrefix() |
| 3664 << "] glApplyScreenSpaceAntialiasingCHROMIUM(" | 3656 << "] glApplyScreenSpaceAntialiasingCHROMIUM(" |
| 3665 << ")"); | 3657 << ")"); |
| 3666 helper_->ApplyScreenSpaceAntialiasingCHROMIUM(); | 3658 helper_->ApplyScreenSpaceAntialiasingCHROMIUM(); |
| 3667 CheckGLError(); | 3659 CheckGLError(); |
| 3668 } | 3660 } |
| 3669 | 3661 |
| 3670 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 3662 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
| OLD | NEW |