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

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

Issue 795243002: Add TransformFeedback related APIs to command buffer: PART I. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 } 65 }
66 66
67 void BindTexture(GLenum target, GLuint texture) { 67 void BindTexture(GLenum target, GLuint texture) {
68 gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>(); 68 gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>();
69 if (c) { 69 if (c) {
70 c->Init(target, texture); 70 c->Init(target, texture);
71 } 71 }
72 } 72 }
73 73
74 void BindTransformFeedback(GLenum target, GLuint transformfeedback) {
75 gles2::cmds::BindTransformFeedback* c =
76 GetCmdSpace<gles2::cmds::BindTransformFeedback>();
77 if (c) {
78 c->Init(target, transformfeedback);
79 }
80 }
81
74 void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 82 void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
75 gles2::cmds::BlendColor* c = GetCmdSpace<gles2::cmds::BlendColor>(); 83 gles2::cmds::BlendColor* c = GetCmdSpace<gles2::cmds::BlendColor>();
76 if (c) { 84 if (c) {
77 c->Init(red, green, blue, alpha); 85 c->Init(red, green, blue, alpha);
78 } 86 }
79 } 87 }
80 88
81 void BlendEquation(GLenum mode) { 89 void BlendEquation(GLenum mode) {
82 gles2::cmds::BlendEquation* c = GetCmdSpace<gles2::cmds::BlendEquation>(); 90 gles2::cmds::BlendEquation* c = GetCmdSpace<gles2::cmds::BlendEquation>();
83 if (c) { 91 if (c) {
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 375
368 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { 376 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) {
369 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); 377 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n);
370 gles2::cmds::DeleteTexturesImmediate* c = 378 gles2::cmds::DeleteTexturesImmediate* c =
371 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size); 379 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size);
372 if (c) { 380 if (c) {
373 c->Init(n, textures); 381 c->Init(n, textures);
374 } 382 }
375 } 383 }
376 384
385 void DeleteTransformFeedbacksImmediate(GLsizei n, const GLuint* ids) {
386 const uint32_t size =
387 gles2::cmds::DeleteTransformFeedbacksImmediate::ComputeSize(n);
388 gles2::cmds::DeleteTransformFeedbacksImmediate* c =
389 GetImmediateCmdSpaceTotalSize<
390 gles2::cmds::DeleteTransformFeedbacksImmediate>(size);
391 if (c) {
392 c->Init(n, ids);
393 }
394 }
395
377 void DepthFunc(GLenum func) { 396 void DepthFunc(GLenum func) {
378 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>(); 397 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>();
379 if (c) { 398 if (c) {
380 c->Init(func); 399 c->Init(func);
381 } 400 }
382 } 401 }
383 402
384 void DepthMask(GLboolean flag) { 403 void DepthMask(GLboolean flag) {
385 gles2::cmds::DepthMask* c = GetCmdSpace<gles2::cmds::DepthMask>(); 404 gles2::cmds::DepthMask* c = GetCmdSpace<gles2::cmds::DepthMask>();
386 if (c) { 405 if (c) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 570
552 void GenTexturesImmediate(GLsizei n, GLuint* textures) { 571 void GenTexturesImmediate(GLsizei n, GLuint* textures) {
553 const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n); 572 const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n);
554 gles2::cmds::GenTexturesImmediate* c = 573 gles2::cmds::GenTexturesImmediate* c =
555 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size); 574 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size);
556 if (c) { 575 if (c) {
557 c->Init(n, textures); 576 c->Init(n, textures);
558 } 577 }
559 } 578 }
560 579
580 void GenTransformFeedbacksImmediate(GLsizei n, GLuint* ids) {
581 const uint32_t size =
582 gles2::cmds::GenTransformFeedbacksImmediate::ComputeSize(n);
583 gles2::cmds::GenTransformFeedbacksImmediate* c =
584 GetImmediateCmdSpaceTotalSize<
585 gles2::cmds::GenTransformFeedbacksImmediate>(size);
586 if (c) {
587 c->Init(n, ids);
588 }
589 }
590
561 void GetActiveAttrib(GLuint program, 591 void GetActiveAttrib(GLuint program,
562 GLuint index, 592 GLuint index,
563 uint32_t name_bucket_id, 593 uint32_t name_bucket_id,
564 uint32_t result_shm_id, 594 uint32_t result_shm_id,
565 uint32_t result_shm_offset) { 595 uint32_t result_shm_offset) {
566 gles2::cmds::GetActiveAttrib* c = GetCmdSpace<gles2::cmds::GetActiveAttrib>(); 596 gles2::cmds::GetActiveAttrib* c = GetCmdSpace<gles2::cmds::GetActiveAttrib>();
567 if (c) { 597 if (c) {
568 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); 598 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset);
569 } 599 }
570 } 600 }
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 983
954 void IsTexture(GLuint texture, 984 void IsTexture(GLuint texture,
955 uint32_t result_shm_id, 985 uint32_t result_shm_id,
956 uint32_t result_shm_offset) { 986 uint32_t result_shm_offset) {
957 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>(); 987 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>();
958 if (c) { 988 if (c) {
959 c->Init(texture, result_shm_id, result_shm_offset); 989 c->Init(texture, result_shm_id, result_shm_offset);
960 } 990 }
961 } 991 }
962 992
993 void IsTransformFeedback(GLuint transformfeedback,
994 uint32_t result_shm_id,
995 uint32_t result_shm_offset) {
996 gles2::cmds::IsTransformFeedback* c =
997 GetCmdSpace<gles2::cmds::IsTransformFeedback>();
998 if (c) {
999 c->Init(transformfeedback, result_shm_id, result_shm_offset);
1000 }
1001 }
1002
963 void LineWidth(GLfloat width) { 1003 void LineWidth(GLfloat width) {
964 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>(); 1004 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>();
965 if (c) { 1005 if (c) {
966 c->Init(width); 1006 c->Init(width);
967 } 1007 }
968 } 1008 }
969 1009
970 void LinkProgram(GLuint program) { 1010 void LinkProgram(GLuint program) {
971 gles2::cmds::LinkProgram* c = GetCmdSpace<gles2::cmds::LinkProgram>(); 1011 gles2::cmds::LinkProgram* c = GetCmdSpace<gles2::cmds::LinkProgram>();
972 if (c) { 1012 if (c) {
973 c->Init(program); 1013 c->Init(program);
974 } 1014 }
975 } 1015 }
976 1016
1017 void PauseTransformFeedback() {
1018 gles2::cmds::PauseTransformFeedback* c =
1019 GetCmdSpace<gles2::cmds::PauseTransformFeedback>();
1020 if (c) {
1021 c->Init();
1022 }
1023 }
1024
977 void PixelStorei(GLenum pname, GLint param) { 1025 void PixelStorei(GLenum pname, GLint param) {
978 gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>(); 1026 gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>();
979 if (c) { 1027 if (c) {
980 c->Init(pname, param); 1028 c->Init(pname, param);
981 } 1029 }
982 } 1030 }
983 1031
984 void PolygonOffset(GLfloat factor, GLfloat units) { 1032 void PolygonOffset(GLfloat factor, GLfloat units) {
985 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>(); 1033 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>();
986 if (c) { 1034 if (c) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 GLenum internalformat, 1073 GLenum internalformat,
1026 GLsizei width, 1074 GLsizei width,
1027 GLsizei height) { 1075 GLsizei height) {
1028 gles2::cmds::RenderbufferStorage* c = 1076 gles2::cmds::RenderbufferStorage* c =
1029 GetCmdSpace<gles2::cmds::RenderbufferStorage>(); 1077 GetCmdSpace<gles2::cmds::RenderbufferStorage>();
1030 if (c) { 1078 if (c) {
1031 c->Init(target, internalformat, width, height); 1079 c->Init(target, internalformat, width, height);
1032 } 1080 }
1033 } 1081 }
1034 1082
1083 void ResumeTransformFeedback() {
1084 gles2::cmds::ResumeTransformFeedback* c =
1085 GetCmdSpace<gles2::cmds::ResumeTransformFeedback>();
1086 if (c) {
1087 c->Init();
1088 }
1089 }
1090
1035 void SampleCoverage(GLclampf value, GLboolean invert) { 1091 void SampleCoverage(GLclampf value, GLboolean invert) {
1036 gles2::cmds::SampleCoverage* c = GetCmdSpace<gles2::cmds::SampleCoverage>(); 1092 gles2::cmds::SampleCoverage* c = GetCmdSpace<gles2::cmds::SampleCoverage>();
1037 if (c) { 1093 if (c) {
1038 c->Init(value, invert); 1094 c->Init(value, invert);
1039 } 1095 }
1040 } 1096 }
1041 1097
1042 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) { 1098 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
1043 gles2::cmds::SamplerParameterf* c = 1099 gles2::cmds::SamplerParameterf* c =
1044 GetCmdSpace<gles2::cmds::SamplerParameterf>(); 1100 GetCmdSpace<gles2::cmds::SamplerParameterf>();
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 void BeginQueryEXT(GLenum target, 1834 void BeginQueryEXT(GLenum target,
1779 GLuint id, 1835 GLuint id,
1780 uint32_t sync_data_shm_id, 1836 uint32_t sync_data_shm_id,
1781 uint32_t sync_data_shm_offset) { 1837 uint32_t sync_data_shm_offset) {
1782 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>(); 1838 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>();
1783 if (c) { 1839 if (c) {
1784 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset); 1840 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset);
1785 } 1841 }
1786 } 1842 }
1787 1843
1844 void BeginTransformFeedback(GLenum primitivemode) {
1845 gles2::cmds::BeginTransformFeedback* c =
1846 GetCmdSpace<gles2::cmds::BeginTransformFeedback>();
1847 if (c) {
1848 c->Init(primitivemode);
1849 }
1850 }
1851
1788 void EndQueryEXT(GLenum target, GLuint submit_count) { 1852 void EndQueryEXT(GLenum target, GLuint submit_count) {
1789 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>(); 1853 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>();
1790 if (c) { 1854 if (c) {
1791 c->Init(target, submit_count); 1855 c->Init(target, submit_count);
1792 } 1856 }
1793 } 1857 }
1794 1858
1859 void EndTransformFeedback() {
1860 gles2::cmds::EndTransformFeedback* c =
1861 GetCmdSpace<gles2::cmds::EndTransformFeedback>();
1862 if (c) {
1863 c->Init();
1864 }
1865 }
1866
1795 void InsertEventMarkerEXT(GLuint bucket_id) { 1867 void InsertEventMarkerEXT(GLuint bucket_id) {
1796 gles2::cmds::InsertEventMarkerEXT* c = 1868 gles2::cmds::InsertEventMarkerEXT* c =
1797 GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>(); 1869 GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>();
1798 if (c) { 1870 if (c) {
1799 c->Init(bucket_id); 1871 c->Init(bucket_id);
1800 } 1872 }
1801 } 1873 }
1802 1874
1803 void PushGroupMarkerEXT(GLuint bucket_id) { 1875 void PushGroupMarkerEXT(GLuint bucket_id) {
1804 gles2::cmds::PushGroupMarkerEXT* c = 1876 gles2::cmds::PushGroupMarkerEXT* c =
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 } 2358 }
2287 2359
2288 void BlendBarrierKHR() { 2360 void BlendBarrierKHR() {
2289 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); 2361 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
2290 if (c) { 2362 if (c) {
2291 c->Init(); 2363 c->Init();
2292 } 2364 }
2293 } 2365 }
2294 2366
2295 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2367 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698