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 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 } | 2407 } |
2408 } | 2408 } |
2409 | 2409 |
2410 void UnmapBuffer(GLenum target) { | 2410 void UnmapBuffer(GLenum target) { |
2411 gles2::cmds::UnmapBuffer* c = GetCmdSpace<gles2::cmds::UnmapBuffer>(); | 2411 gles2::cmds::UnmapBuffer* c = GetCmdSpace<gles2::cmds::UnmapBuffer>(); |
2412 if (c) { | 2412 if (c) { |
2413 c->Init(target); | 2413 c->Init(target); |
2414 } | 2414 } |
2415 } | 2415 } |
2416 | 2416 |
| 2417 void FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr size) { |
| 2418 gles2::cmds::FlushMappedBufferRange* c = |
| 2419 GetCmdSpace<gles2::cmds::FlushMappedBufferRange>(); |
| 2420 if (c) { |
| 2421 c->Init(target, offset, size); |
| 2422 } |
| 2423 } |
| 2424 |
2417 void ResizeCHROMIUM(GLuint width, | 2425 void ResizeCHROMIUM(GLuint width, |
2418 GLuint height, | 2426 GLuint height, |
2419 GLfloat scale_factor, | 2427 GLfloat scale_factor, |
2420 GLboolean alpha) { | 2428 GLboolean alpha) { |
2421 gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace<gles2::cmds::ResizeCHROMIUM>(); | 2429 gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace<gles2::cmds::ResizeCHROMIUM>(); |
2422 if (c) { | 2430 if (c) { |
2423 c->Init(width, height, scale_factor, alpha); | 2431 c->Init(width, height, scale_factor, alpha); |
2424 } | 2432 } |
2425 } | 2433 } |
2426 | 2434 |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3151 GLint width, | 3159 GLint width, |
3152 GLint height) { | 3160 GLint height) { |
3153 gles2::cmds::SwapBuffersWithDamageCHROMIUM* c = | 3161 gles2::cmds::SwapBuffersWithDamageCHROMIUM* c = |
3154 GetCmdSpace<gles2::cmds::SwapBuffersWithDamageCHROMIUM>(); | 3162 GetCmdSpace<gles2::cmds::SwapBuffersWithDamageCHROMIUM>(); |
3155 if (c) { | 3163 if (c) { |
3156 c->Init(x, y, width, height); | 3164 c->Init(x, y, width, height); |
3157 } | 3165 } |
3158 } | 3166 } |
3159 | 3167 |
3160 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3168 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |