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

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

Issue 189373003: Get rid of the formatting code in build_gles2_cmd_buffer.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 GetCmdSpace<gles2::cmds::DeleteRenderbuffers>(); 374 GetCmdSpace<gles2::cmds::DeleteRenderbuffers>();
375 if (c) { 375 if (c) {
376 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); 376 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset);
377 } 377 }
378 } 378 }
379 379
380 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { 380 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) {
381 const uint32 size = gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n); 381 const uint32 size = gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n);
382 gles2::cmds::DeleteRenderbuffersImmediate* c = 382 gles2::cmds::DeleteRenderbuffersImmediate* c =
383 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>( 383 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>(
384 size); // NOLINT 384 size);
385 if (c) { 385 if (c) {
386 c->Init(n, renderbuffers); 386 c->Init(n, renderbuffers);
387 } 387 }
388 } 388 }
389 389
390 void DeleteShader(GLuint shader) { 390 void DeleteShader(GLuint shader) {
391 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>(); 391 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
392 if (c) { 392 if (c) {
393 c->Init(shader); 393 c->Init(shader);
394 } 394 }
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 if (c) { 1776 if (c) {
1777 c->Init(n, arrays_shm_id, arrays_shm_offset); 1777 c->Init(n, arrays_shm_id, arrays_shm_offset);
1778 } 1778 }
1779 } 1779 }
1780 1780
1781 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { 1781 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) {
1782 const uint32 size = 1782 const uint32 size =
1783 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n); 1783 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n);
1784 gles2::cmds::DeleteVertexArraysOESImmediate* c = 1784 gles2::cmds::DeleteVertexArraysOESImmediate* c =
1785 GetImmediateCmdSpaceTotalSize< 1785 GetImmediateCmdSpaceTotalSize<
1786 gles2::cmds::DeleteVertexArraysOESImmediate>(size); // NOLINT 1786 gles2::cmds::DeleteVertexArraysOESImmediate>(size);
1787 if (c) { 1787 if (c) {
1788 c->Init(n, arrays); 1788 c->Init(n, arrays);
1789 } 1789 }
1790 } 1790 }
1791 1791
1792 void IsVertexArrayOES(GLuint array, 1792 void IsVertexArrayOES(GLuint array,
1793 uint32 result_shm_id, 1793 uint32 result_shm_id,
1794 uint32 result_shm_offset) { 1794 uint32 result_shm_offset) {
1795 gles2::cmds::IsVertexArrayOES* c = 1795 gles2::cmds::IsVertexArrayOES* c =
1796 GetCmdSpace<gles2::cmds::IsVertexArrayOES>(); 1796 GetCmdSpace<gles2::cmds::IsVertexArrayOES>();
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 if (c) { 2000 if (c) {
2001 c->Init(target, mailbox_shm_id, mailbox_shm_offset); 2001 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
2002 } 2002 }
2003 } 2003 }
2004 2004
2005 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { 2005 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
2006 const uint32 size = 2006 const uint32 size =
2007 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); 2007 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
2008 gles2::cmds::ProduceTextureCHROMIUMImmediate* c = 2008 gles2::cmds::ProduceTextureCHROMIUMImmediate* c =
2009 GetImmediateCmdSpaceTotalSize< 2009 GetImmediateCmdSpaceTotalSize<
2010 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); // NOLINT 2010 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size);
2011 if (c) { 2011 if (c) {
2012 c->Init(target, mailbox); 2012 c->Init(target, mailbox);
2013 } 2013 }
2014 } 2014 }
2015 2015
2016 void ConsumeTextureCHROMIUM(GLenum target, 2016 void ConsumeTextureCHROMIUM(GLenum target,
2017 uint32 mailbox_shm_id, 2017 uint32 mailbox_shm_id,
2018 uint32 mailbox_shm_offset) { 2018 uint32 mailbox_shm_offset) {
2019 gles2::cmds::ConsumeTextureCHROMIUM* c = 2019 gles2::cmds::ConsumeTextureCHROMIUM* c =
2020 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>(); 2020 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>();
2021 if (c) { 2021 if (c) {
2022 c->Init(target, mailbox_shm_id, mailbox_shm_offset); 2022 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
2023 } 2023 }
2024 } 2024 }
2025 2025
2026 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { 2026 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
2027 const uint32 size = 2027 const uint32 size =
2028 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); 2028 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
2029 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = 2029 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c =
2030 GetImmediateCmdSpaceTotalSize< 2030 GetImmediateCmdSpaceTotalSize<
2031 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); // NOLINT 2031 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size);
2032 if (c) { 2032 if (c) {
2033 c->Init(target, mailbox); 2033 c->Init(target, mailbox);
2034 } 2034 }
2035 } 2035 }
2036 2036
2037 void BindUniformLocationCHROMIUM(GLuint program, 2037 void BindUniformLocationCHROMIUM(GLuint program,
2038 GLint location, 2038 GLint location,
2039 uint32 name_shm_id, 2039 uint32 name_shm_id,
2040 uint32 name_shm_offset, 2040 uint32 name_shm_offset,
2041 uint32 data_size) { 2041 uint32 data_size) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 } 2159 }
2160 } 2160 }
2161 2161
2162 void DiscardFramebufferEXTImmediate(GLenum target, 2162 void DiscardFramebufferEXTImmediate(GLenum target,
2163 GLsizei count, 2163 GLsizei count,
2164 const GLenum* attachments) { 2164 const GLenum* attachments) {
2165 const uint32 size = 2165 const uint32 size =
2166 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count); 2166 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count);
2167 gles2::cmds::DiscardFramebufferEXTImmediate* c = 2167 gles2::cmds::DiscardFramebufferEXTImmediate* c =
2168 GetImmediateCmdSpaceTotalSize< 2168 GetImmediateCmdSpaceTotalSize<
2169 gles2::cmds::DiscardFramebufferEXTImmediate>(size); // NOLINT 2169 gles2::cmds::DiscardFramebufferEXTImmediate>(size);
2170 if (c) { 2170 if (c) {
2171 c->Init(target, count, attachments); 2171 c->Init(target, count, attachments);
2172 } 2172 }
2173 } 2173 }
2174 2174
2175 void LoseContextCHROMIUM(GLenum current, GLenum other) { 2175 void LoseContextCHROMIUM(GLenum current, GLenum other) {
2176 gles2::cmds::LoseContextCHROMIUM* c = 2176 gles2::cmds::LoseContextCHROMIUM* c =
2177 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>(); 2177 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>();
2178 if (c) { 2178 if (c) {
2179 c->Init(current, other); 2179 c->Init(current, other);
(...skipping 26 matching lines...) Expand all
2206 2206
2207 void DiscardBackbufferCHROMIUM() { 2207 void DiscardBackbufferCHROMIUM() {
2208 gles2::cmds::DiscardBackbufferCHROMIUM* c = 2208 gles2::cmds::DiscardBackbufferCHROMIUM* c =
2209 GetCmdSpace<gles2::cmds::DiscardBackbufferCHROMIUM>(); 2209 GetCmdSpace<gles2::cmds::DiscardBackbufferCHROMIUM>();
2210 if (c) { 2210 if (c) {
2211 c->Init(); 2211 c->Init();
2212 } 2212 }
2213 } 2213 }
2214 2214
2215 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2215 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698