| 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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate* c = | 3165 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate* c = |
| 3158 GetImmediateCmdSpaceTotalSize< | 3166 GetImmediateCmdSpaceTotalSize< |
| 3159 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate>( | 3167 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate>( |
| 3160 size); | 3168 size); |
| 3161 if (c) { | 3169 if (c) { |
| 3162 c->Init(location, transpose, transform); | 3170 c->Init(location, transpose, transform); |
| 3163 } | 3171 } |
| 3164 } | 3172 } |
| 3165 | 3173 |
| 3166 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3174 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| OLD | NEW |