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 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 const uint32_t size = | 2597 const uint32_t size = |
2598 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); | 2598 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); |
2599 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = | 2599 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = |
2600 GetImmediateCmdSpaceTotalSize< | 2600 GetImmediateCmdSpaceTotalSize< |
2601 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); | 2601 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); |
2602 if (c) { | 2602 if (c) { |
2603 c->Init(target, mailbox); | 2603 c->Init(target, mailbox); |
2604 } | 2604 } |
2605 } | 2605 } |
2606 | 2606 |
| 2607 void CreateAndConsumeTextureINTERNALImmediate(GLenum target, |
| 2608 GLuint texture, |
| 2609 const GLbyte* mailbox) { |
| 2610 const uint32_t size = |
| 2611 gles2::cmds::CreateAndConsumeTextureINTERNALImmediate::ComputeSize(); |
| 2612 gles2::cmds::CreateAndConsumeTextureINTERNALImmediate* c = |
| 2613 GetImmediateCmdSpaceTotalSize< |
| 2614 gles2::cmds::CreateAndConsumeTextureINTERNALImmediate>(size); |
| 2615 if (c) { |
| 2616 c->Init(target, texture, mailbox); |
| 2617 } |
| 2618 } |
| 2619 |
2607 void BindUniformLocationCHROMIUMBucket(GLuint program, | 2620 void BindUniformLocationCHROMIUMBucket(GLuint program, |
2608 GLint location, | 2621 GLint location, |
2609 uint32_t name_bucket_id) { | 2622 uint32_t name_bucket_id) { |
2610 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = | 2623 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = |
2611 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); | 2624 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); |
2612 if (c) { | 2625 if (c) { |
2613 c->Init(program, location, name_bucket_id); | 2626 c->Init(program, location, name_bucket_id); |
2614 } | 2627 } |
2615 } | 2628 } |
2616 | 2629 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3157 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate* c = | 3170 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate* c = |
3158 GetImmediateCmdSpaceTotalSize< | 3171 GetImmediateCmdSpaceTotalSize< |
3159 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate>( | 3172 gles2::cmds::UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate>( |
3160 size); | 3173 size); |
3161 if (c) { | 3174 if (c) { |
3162 c->Init(location, transpose, transform); | 3175 c->Init(location, transpose, transform); |
3163 } | 3176 } |
3164 } | 3177 } |
3165 | 3178 |
3166 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3179 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |