| 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 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2498 | 2498 |
| 2499 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { | 2499 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { |
| 2500 gles2::cmds::PostSubBufferCHROMIUM* c = | 2500 gles2::cmds::PostSubBufferCHROMIUM* c = |
| 2501 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>(); | 2501 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>(); |
| 2502 if (c) { | 2502 if (c) { |
| 2503 c->Init(x, y, width, height); | 2503 c->Init(x, y, width, height); |
| 2504 } | 2504 } |
| 2505 } | 2505 } |
| 2506 | 2506 |
| 2507 void CopyTextureCHROMIUM(GLenum source_id, | 2507 void CopyTextureCHROMIUM(GLenum source_id, |
| 2508 GLint source_level, |
| 2508 GLenum dest_id, | 2509 GLenum dest_id, |
| 2510 GLint dest_level, |
| 2509 GLint internalformat, | 2511 GLint internalformat, |
| 2510 GLenum dest_type, | 2512 GLenum dest_type, |
| 2511 GLboolean unpack_flip_y, | 2513 GLboolean unpack_flip_y, |
| 2512 GLboolean unpack_premultiply_alpha, | 2514 GLboolean unpack_premultiply_alpha, |
| 2513 GLboolean unpack_unmultiply_alpha) { | 2515 GLboolean unpack_unmultiply_alpha) { |
| 2514 gles2::cmds::CopyTextureCHROMIUM* c = | 2516 gles2::cmds::CopyTextureCHROMIUM* c = |
| 2515 GetCmdSpace<gles2::cmds::CopyTextureCHROMIUM>(); | 2517 GetCmdSpace<gles2::cmds::CopyTextureCHROMIUM>(); |
| 2516 if (c) { | 2518 if (c) { |
| 2517 c->Init(source_id, dest_id, internalformat, dest_type, unpack_flip_y, | 2519 c->Init(source_id, source_level, dest_id, dest_level, internalformat, |
| 2518 unpack_premultiply_alpha, unpack_unmultiply_alpha); | 2520 dest_type, unpack_flip_y, unpack_premultiply_alpha, |
| 2521 unpack_unmultiply_alpha); |
| 2519 } | 2522 } |
| 2520 } | 2523 } |
| 2521 | 2524 |
| 2522 void CopySubTextureCHROMIUM(GLenum source_id, | 2525 void CopySubTextureCHROMIUM(GLenum source_id, |
| 2526 GLint source_level, |
| 2523 GLenum dest_id, | 2527 GLenum dest_id, |
| 2528 GLint dest_level, |
| 2524 GLint xoffset, | 2529 GLint xoffset, |
| 2525 GLint yoffset, | 2530 GLint yoffset, |
| 2526 GLint x, | 2531 GLint x, |
| 2527 GLint y, | 2532 GLint y, |
| 2528 GLsizei width, | 2533 GLsizei width, |
| 2529 GLsizei height, | 2534 GLsizei height, |
| 2530 GLboolean unpack_flip_y, | 2535 GLboolean unpack_flip_y, |
| 2531 GLboolean unpack_premultiply_alpha, | 2536 GLboolean unpack_premultiply_alpha, |
| 2532 GLboolean unpack_unmultiply_alpha) { | 2537 GLboolean unpack_unmultiply_alpha) { |
| 2533 gles2::cmds::CopySubTextureCHROMIUM* c = | 2538 gles2::cmds::CopySubTextureCHROMIUM* c = |
| 2534 GetCmdSpace<gles2::cmds::CopySubTextureCHROMIUM>(); | 2539 GetCmdSpace<gles2::cmds::CopySubTextureCHROMIUM>(); |
| 2535 if (c) { | 2540 if (c) { |
| 2536 c->Init(source_id, dest_id, xoffset, yoffset, x, y, width, height, | 2541 c->Init(source_id, source_level, dest_id, dest_level, xoffset, yoffset, x, |
| 2537 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha); | 2542 y, width, height, unpack_flip_y, unpack_premultiply_alpha, |
| 2543 unpack_unmultiply_alpha); |
| 2538 } | 2544 } |
| 2539 } | 2545 } |
| 2540 | 2546 |
| 2541 void CompressedCopyTextureCHROMIUM(GLenum source_id, GLenum dest_id) { | 2547 void CompressedCopyTextureCHROMIUM(GLenum source_id, GLenum dest_id) { |
| 2542 gles2::cmds::CompressedCopyTextureCHROMIUM* c = | 2548 gles2::cmds::CompressedCopyTextureCHROMIUM* c = |
| 2543 GetCmdSpace<gles2::cmds::CompressedCopyTextureCHROMIUM>(); | 2549 GetCmdSpace<gles2::cmds::CompressedCopyTextureCHROMIUM>(); |
| 2544 if (c) { | 2550 if (c) { |
| 2545 c->Init(source_id, dest_id); | 2551 c->Init(source_id, dest_id); |
| 2546 } | 2552 } |
| 2547 } | 2553 } |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3182 GLint width, | 3188 GLint width, |
| 3183 GLint height) { | 3189 GLint height) { |
| 3184 gles2::cmds::SwapBuffersWithDamageCHROMIUM* c = | 3190 gles2::cmds::SwapBuffersWithDamageCHROMIUM* c = |
| 3185 GetCmdSpace<gles2::cmds::SwapBuffersWithDamageCHROMIUM>(); | 3191 GetCmdSpace<gles2::cmds::SwapBuffersWithDamageCHROMIUM>(); |
| 3186 if (c) { | 3192 if (c) { |
| 3187 c->Init(x, y, width, height); | 3193 c->Init(x, y, width, height); |
| 3188 } | 3194 } |
| 3189 } | 3195 } |
| 3190 | 3196 |
| 3191 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3197 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| OLD | NEW |