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 3423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3434 << plane_z_order << ", " << GLES2Util::GetStringEnum(plane_transform) | 3434 << plane_z_order << ", " << GLES2Util::GetStringEnum(plane_transform) |
3435 << ", " << overlay_texture_id << ", " << bounds_x << ", " << bounds_y | 3435 << ", " << overlay_texture_id << ", " << bounds_x << ", " << bounds_y |
3436 << ", " << bounds_width << ", " << bounds_height << ", " << uv_x | 3436 << ", " << bounds_width << ", " << bounds_height << ", " << uv_x |
3437 << ", " << uv_y << ", " << uv_width << ", " << uv_height << ")"); | 3437 << ", " << uv_y << ", " << uv_width << ", " << uv_height << ")"); |
3438 helper_->ScheduleOverlayPlaneCHROMIUM( | 3438 helper_->ScheduleOverlayPlaneCHROMIUM( |
3439 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, | 3439 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, |
3440 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); | 3440 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); |
3441 CheckGLError(); | 3441 CheckGLError(); |
3442 } | 3442 } |
3443 | 3443 |
| 3444 void GLES2Implementation::FlushDriverCachesCHROMIUM() { |
| 3445 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3446 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFlushDriverCachesCHROMIUM(" |
| 3447 << ")"); |
| 3448 helper_->FlushDriverCachesCHROMIUM(); |
| 3449 CheckGLError(); |
| 3450 } |
| 3451 |
3444 void GLES2Implementation::MatrixLoadfCHROMIUM(GLenum matrixMode, | 3452 void GLES2Implementation::MatrixLoadfCHROMIUM(GLenum matrixMode, |
3445 const GLfloat* m) { | 3453 const GLfloat* m) { |
3446 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3454 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
3447 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glMatrixLoadfCHROMIUM(" | 3455 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glMatrixLoadfCHROMIUM(" |
3448 << GLES2Util::GetStringMatrixMode(matrixMode) << ", " | 3456 << GLES2Util::GetStringMatrixMode(matrixMode) << ", " |
3449 << static_cast<const void*>(m) << ")"); | 3457 << static_cast<const void*>(m) << ")"); |
3450 size_t count = 16; | 3458 size_t count = 16; |
3451 for (size_t ii = 0; ii < count; ++ii) | 3459 for (size_t ii = 0; ii < count; ++ii) |
3452 GPU_CLIENT_LOG("value[" << ii << "]: " << m[ii]); | 3460 GPU_CLIENT_LOG("value[" << ii << "]: " << m[ii]); |
3453 helper_->MatrixLoadfCHROMIUMImmediate(matrixMode, m); | 3461 helper_->MatrixLoadfCHROMIUMImmediate(matrixMode, m); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3581 | 3589 |
3582 void GLES2Implementation::BlendBarrierKHR() { | 3590 void GLES2Implementation::BlendBarrierKHR() { |
3583 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3591 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
3584 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR(" | 3592 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR(" |
3585 << ")"); | 3593 << ")"); |
3586 helper_->BlendBarrierKHR(); | 3594 helper_->BlendBarrierKHR(); |
3587 CheckGLError(); | 3595 CheckGLError(); |
3588 } | 3596 } |
3589 | 3597 |
3590 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 3598 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |