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

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

Issue 299043003: Adding bindless variants mailbox produce/consume (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 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 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 const uint32_t size = 2011 const uint32_t size =
2012 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); 2012 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
2013 gles2::cmds::ProduceTextureCHROMIUMImmediate* c = 2013 gles2::cmds::ProduceTextureCHROMIUMImmediate* c =
2014 GetImmediateCmdSpaceTotalSize< 2014 GetImmediateCmdSpaceTotalSize<
2015 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); 2015 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size);
2016 if (c) { 2016 if (c) {
2017 c->Init(target, mailbox); 2017 c->Init(target, mailbox);
2018 } 2018 }
2019 } 2019 }
2020 2020
2021 void ProduceTextureBindlessCHROMIUM(GLuint texture,
2022 GLenum target,
2023 uint32_t mailbox_shm_id,
2024 uint32_t mailbox_shm_offset) {
2025 gles2::cmds::ProduceTextureBindlessCHROMIUM* c =
2026 GetCmdSpace<gles2::cmds::ProduceTextureBindlessCHROMIUM>();
2027 if (c) {
2028 c->Init(texture, target, mailbox_shm_id, mailbox_shm_offset);
2029 }
2030 }
2031
2032 void ProduceTextureBindlessCHROMIUMImmediate(GLuint texture,
2033 GLenum target,
2034 const GLbyte* mailbox) {
2035 const uint32_t size =
2036 gles2::cmds::ProduceTextureBindlessCHROMIUMImmediate::ComputeSize();
2037 gles2::cmds::ProduceTextureBindlessCHROMIUMImmediate* c =
2038 GetImmediateCmdSpaceTotalSize<
2039 gles2::cmds::ProduceTextureBindlessCHROMIUMImmediate>(size);
2040 if (c) {
2041 c->Init(texture, target, mailbox);
2042 }
2043 }
2044
2021 void ConsumeTextureCHROMIUM(GLenum target, 2045 void ConsumeTextureCHROMIUM(GLenum target,
2022 uint32_t mailbox_shm_id, 2046 uint32_t mailbox_shm_id,
2023 uint32_t mailbox_shm_offset) { 2047 uint32_t mailbox_shm_offset) {
2024 gles2::cmds::ConsumeTextureCHROMIUM* c = 2048 gles2::cmds::ConsumeTextureCHROMIUM* c =
2025 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>(); 2049 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>();
2026 if (c) { 2050 if (c) {
2027 c->Init(target, mailbox_shm_id, mailbox_shm_offset); 2051 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
2028 } 2052 }
2029 } 2053 }
2030 2054
2031 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { 2055 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
2032 const uint32_t size = 2056 const uint32_t size =
2033 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); 2057 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
2034 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = 2058 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c =
2035 GetImmediateCmdSpaceTotalSize< 2059 GetImmediateCmdSpaceTotalSize<
2036 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); 2060 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size);
2037 if (c) { 2061 if (c) {
2038 c->Init(target, mailbox); 2062 c->Init(target, mailbox);
2039 } 2063 }
2040 } 2064 }
2041 2065
2066 void CreateAndConsumeTextureCHROMIUM(GLenum target,
2067 uint32_t mailbox_shm_id,
2068 uint32_t mailbox_shm_offset,
2069 uint32_t client_id) {
2070 gles2::cmds::CreateAndConsumeTextureCHROMIUM* c =
2071 GetCmdSpace<gles2::cmds::CreateAndConsumeTextureCHROMIUM>();
2072 if (c) {
2073 c->Init(target, mailbox_shm_id, mailbox_shm_offset, client_id);
2074 }
2075 }
2076
2077 void CreateAndConsumeTextureCHROMIUMImmediate(GLenum target,
2078 uint32_t client_id,
2079 const GLbyte* _mailbox) {
2080 const uint32_t size =
2081 gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate::ComputeSize();
2082 gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate* c =
2083 GetImmediateCmdSpaceTotalSize<
2084 gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate>(size);
2085 if (c) {
2086 c->Init(target, client_id, _mailbox);
2087 }
2088 }
2089
2042 void BindUniformLocationCHROMIUM(GLuint program, 2090 void BindUniformLocationCHROMIUM(GLuint program,
2043 GLint location, 2091 GLint location,
2044 uint32_t name_shm_id, 2092 uint32_t name_shm_id,
2045 uint32_t name_shm_offset, 2093 uint32_t name_shm_offset,
2046 uint32_t data_size) { 2094 uint32_t data_size) {
2047 gles2::cmds::BindUniformLocationCHROMIUM* c = 2095 gles2::cmds::BindUniformLocationCHROMIUM* c =
2048 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>(); 2096 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>();
2049 if (c) { 2097 if (c) {
2050 c->Init(program, location, name_shm_id, name_shm_offset, data_size); 2098 c->Init(program, location, name_shm_id, name_shm_offset, data_size);
2051 } 2099 }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 bounds_width, 2308 bounds_width,
2261 bounds_height, 2309 bounds_height,
2262 uv_x, 2310 uv_x,
2263 uv_y, 2311 uv_y,
2264 uv_width, 2312 uv_width,
2265 uv_height); 2313 uv_height);
2266 } 2314 }
2267 } 2315 }
2268 2316
2269 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2317 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698