Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 333303002: generate GetAttribLocation/GetUniformLocation by build_gles2_cmd_buffer.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 uint32_t result_shm_id, 550 uint32_t result_shm_id,
551 uint32_t result_shm_offset, 551 uint32_t result_shm_offset,
552 uint32_t result_size) { 552 uint32_t result_size) {
553 gles2::cmds::GetAttachedShaders* c = 553 gles2::cmds::GetAttachedShaders* c =
554 GetCmdSpace<gles2::cmds::GetAttachedShaders>(); 554 GetCmdSpace<gles2::cmds::GetAttachedShaders>();
555 if (c) { 555 if (c) {
556 c->Init(program, result_shm_id, result_shm_offset, result_size); 556 c->Init(program, result_shm_id, result_shm_offset, result_size);
557 } 557 }
558 } 558 }
559 559
560 void GetAttribLocation(GLuint program,
561 uint32_t name_bucket_id,
562 uint32_t location_shm_id,
563 uint32_t location_shm_offset) {
564 gles2::cmds::GetAttribLocation* c =
565 GetCmdSpace<gles2::cmds::GetAttribLocation>();
566 if (c) {
567 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
568 }
569 }
570
560 void GetBooleanv(GLenum pname, 571 void GetBooleanv(GLenum pname,
561 uint32_t params_shm_id, 572 uint32_t params_shm_id,
562 uint32_t params_shm_offset) { 573 uint32_t params_shm_offset) {
563 gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>(); 574 gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>();
564 if (c) { 575 if (c) {
565 c->Init(pname, params_shm_id, params_shm_offset); 576 c->Init(pname, params_shm_id, params_shm_offset);
566 } 577 }
567 } 578 }
568 579
569 void GetBufferParameteriv(GLenum target, 580 void GetBufferParameteriv(GLenum target,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 void GetUniformiv(GLuint program, 732 void GetUniformiv(GLuint program,
722 GLint location, 733 GLint location,
723 uint32_t params_shm_id, 734 uint32_t params_shm_id,
724 uint32_t params_shm_offset) { 735 uint32_t params_shm_offset) {
725 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>(); 736 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>();
726 if (c) { 737 if (c) {
727 c->Init(program, location, params_shm_id, params_shm_offset); 738 c->Init(program, location, params_shm_id, params_shm_offset);
728 } 739 }
729 } 740 }
730 741
742 void GetUniformLocation(GLuint program,
743 uint32_t name_bucket_id,
744 uint32_t location_shm_id,
745 uint32_t location_shm_offset) {
746 gles2::cmds::GetUniformLocation* c =
747 GetCmdSpace<gles2::cmds::GetUniformLocation>();
748 if (c) {
749 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
750 }
751 }
752
731 void GetVertexAttribfv(GLuint index, 753 void GetVertexAttribfv(GLuint index,
732 GLenum pname, 754 GLenum pname,
733 uint32_t params_shm_id, 755 uint32_t params_shm_id,
734 uint32_t params_shm_offset) { 756 uint32_t params_shm_offset) {
735 gles2::cmds::GetVertexAttribfv* c = 757 gles2::cmds::GetVertexAttribfv* c =
736 GetCmdSpace<gles2::cmds::GetVertexAttribfv>(); 758 GetCmdSpace<gles2::cmds::GetVertexAttribfv>();
737 if (c) { 759 if (c) {
738 c->Init(index, pname, params_shm_id, params_shm_offset); 760 c->Init(index, pname, params_shm_id, params_shm_offset);
739 } 761 }
740 } 762 }
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 bounds_width, 1938 bounds_width,
1917 bounds_height, 1939 bounds_height,
1918 uv_x, 1940 uv_x,
1919 uv_y, 1941 uv_y,
1920 uv_width, 1942 uv_width,
1921 uv_height); 1943 uv_height);
1922 } 1944 }
1923 } 1945 }
1924 1946
1925 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 1947 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698