| 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 gles2::cmds::FramebufferRenderbuffer* c = | 662 gles2::cmds::FramebufferRenderbuffer* c = |
| 663 GetCmdSpace<gles2::cmds::FramebufferRenderbuffer>(); | 663 GetCmdSpace<gles2::cmds::FramebufferRenderbuffer>(); |
| 664 if (c) { | 664 if (c) { |
| 665 c->Init(target, attachment, renderbuffertarget, renderbuffer); | 665 c->Init(target, attachment, renderbuffertarget, renderbuffer); |
| 666 } | 666 } |
| 667 } | 667 } |
| 668 | 668 |
| 669 void FramebufferTexture2D(GLenum target, | 669 void FramebufferTexture2D(GLenum target, |
| 670 GLenum attachment, | 670 GLenum attachment, |
| 671 GLenum textarget, | 671 GLenum textarget, |
| 672 GLuint texture) { | 672 GLuint texture, |
| 673 GLint level) { |
| 673 gles2::cmds::FramebufferTexture2D* c = | 674 gles2::cmds::FramebufferTexture2D* c = |
| 674 GetCmdSpace<gles2::cmds::FramebufferTexture2D>(); | 675 GetCmdSpace<gles2::cmds::FramebufferTexture2D>(); |
| 675 if (c) { | 676 if (c) { |
| 676 c->Init(target, attachment, textarget, texture); | 677 c->Init(target, attachment, textarget, texture, level); |
| 677 } | 678 } |
| 678 } | 679 } |
| 679 | 680 |
| 680 void FramebufferTextureLayer(GLenum target, | 681 void FramebufferTextureLayer(GLenum target, |
| 681 GLenum attachment, | 682 GLenum attachment, |
| 682 GLuint texture, | 683 GLuint texture, |
| 683 GLint level, | 684 GLint level, |
| 684 GLint layer) { | 685 GLint layer) { |
| 685 gles2::cmds::FramebufferTextureLayer* c = | 686 gles2::cmds::FramebufferTextureLayer* c = |
| 686 GetCmdSpace<gles2::cmds::FramebufferTextureLayer>(); | 687 GetCmdSpace<gles2::cmds::FramebufferTextureLayer>(); |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2194 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleEXT>(); | 2195 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleEXT>(); |
| 2195 if (c) { | 2196 if (c) { |
| 2196 c->Init(target, samples, internalformat, width, height); | 2197 c->Init(target, samples, internalformat, width, height); |
| 2197 } | 2198 } |
| 2198 } | 2199 } |
| 2199 | 2200 |
| 2200 void FramebufferTexture2DMultisampleEXT(GLenum target, | 2201 void FramebufferTexture2DMultisampleEXT(GLenum target, |
| 2201 GLenum attachment, | 2202 GLenum attachment, |
| 2202 GLenum textarget, | 2203 GLenum textarget, |
| 2203 GLuint texture, | 2204 GLuint texture, |
| 2205 GLint level, |
| 2204 GLsizei samples) { | 2206 GLsizei samples) { |
| 2205 gles2::cmds::FramebufferTexture2DMultisampleEXT* c = | 2207 gles2::cmds::FramebufferTexture2DMultisampleEXT* c = |
| 2206 GetCmdSpace<gles2::cmds::FramebufferTexture2DMultisampleEXT>(); | 2208 GetCmdSpace<gles2::cmds::FramebufferTexture2DMultisampleEXT>(); |
| 2207 if (c) { | 2209 if (c) { |
| 2208 c->Init(target, attachment, textarget, texture, samples); | 2210 c->Init(target, attachment, textarget, texture, level, samples); |
| 2209 } | 2211 } |
| 2210 } | 2212 } |
| 2211 | 2213 |
| 2212 void TexStorage2DEXT(GLenum target, | 2214 void TexStorage2DEXT(GLenum target, |
| 2213 GLsizei levels, | 2215 GLsizei levels, |
| 2214 GLenum internalFormat, | 2216 GLenum internalFormat, |
| 2215 GLsizei width, | 2217 GLsizei width, |
| 2216 GLsizei height) { | 2218 GLsizei height) { |
| 2217 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>(); | 2219 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>(); |
| 2218 if (c) { | 2220 if (c) { |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3135 | 3137 |
| 3136 void ApplyScreenSpaceAntialiasingCHROMIUM() { | 3138 void ApplyScreenSpaceAntialiasingCHROMIUM() { |
| 3137 gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM* c = | 3139 gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM* c = |
| 3138 GetCmdSpace<gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM>(); | 3140 GetCmdSpace<gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM>(); |
| 3139 if (c) { | 3141 if (c) { |
| 3140 c->Init(); | 3142 c->Init(); |
| 3141 } | 3143 } |
| 3142 } | 3144 } |
| 3143 | 3145 |
| 3144 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3146 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| OLD | NEW |