1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is auto-generated from
6 // gpu/command_buffer/build_raster_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
10
11 #ifndef GPU_COMMAND_BUFFER_CLIENT_RASTER_CMD_HELPER_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_CLIENT_RASTER_CMD_HELPER_AUTOGEN_H_
13
Finish()14 void Finish() {
15 raster::cmds::Finish* c = GetCmdSpace<raster::cmds::Finish>();
16 if (c) {
17 c->Init();
18 }
19 }
20
Flush()21 void Flush() {
22 raster::cmds::Flush* c = GetCmdSpace<raster::cmds::Flush>();
23 if (c) {
24 c->Init();
25 }
26 }
27
GetError(uint32_t result_shm_id,uint32_t result_shm_offset)28 void GetError(uint32_t result_shm_id, uint32_t result_shm_offset) {
29 raster::cmds::GetError* c = GetCmdSpace<raster::cmds::GetError>();
30 if (c) {
31 c->Init(result_shm_id, result_shm_offset);
32 }
33 }
34
GenQueriesEXTImmediate(GLsizei n,GLuint * queries)35 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) {
36 const uint32_t size = raster::cmds::GenQueriesEXTImmediate::ComputeSize(n);
37 raster::cmds::GenQueriesEXTImmediate* c =
38 GetImmediateCmdSpaceTotalSize<raster::cmds::GenQueriesEXTImmediate>(size);
39 if (c) {
40 c->Init(n, queries);
41 }
42 }
43
DeleteQueriesEXTImmediate(GLsizei n,const GLuint * queries)44 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) {
45 const uint32_t size = raster::cmds::DeleteQueriesEXTImmediate::ComputeSize(n);
46 raster::cmds::DeleteQueriesEXTImmediate* c =
47 GetImmediateCmdSpaceTotalSize<raster::cmds::DeleteQueriesEXTImmediate>(
48 size);
49 if (c) {
50 c->Init(n, queries);
51 }
52 }
53
QueryCounterEXT(GLuint id,GLenum target,uint32_t sync_data_shm_id,uint32_t sync_data_shm_offset,GLuint submit_count)54 void QueryCounterEXT(GLuint id,
55 GLenum target,
56 uint32_t sync_data_shm_id,
57 uint32_t sync_data_shm_offset,
58 GLuint submit_count) {
59 raster::cmds::QueryCounterEXT* c =
60 GetCmdSpace<raster::cmds::QueryCounterEXT>();
61 if (c) {
62 c->Init(id, target, sync_data_shm_id, sync_data_shm_offset, submit_count);
63 }
64 }
65
BeginQueryEXT(GLenum target,GLuint id,uint32_t sync_data_shm_id,uint32_t sync_data_shm_offset)66 void BeginQueryEXT(GLenum target,
67 GLuint id,
68 uint32_t sync_data_shm_id,
69 uint32_t sync_data_shm_offset) {
70 raster::cmds::BeginQueryEXT* c = GetCmdSpace<raster::cmds::BeginQueryEXT>();
71 if (c) {
72 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset);
73 }
74 }
75
EndQueryEXT(GLenum target,GLuint submit_count)76 void EndQueryEXT(GLenum target, GLuint submit_count) {
77 raster::cmds::EndQueryEXT* c = GetCmdSpace<raster::cmds::EndQueryEXT>();
78 if (c) {
79 c->Init(target, submit_count);
80 }
81 }
82
LoseContextCHROMIUM(GLenum current,GLenum other)83 void LoseContextCHROMIUM(GLenum current, GLenum other) {
84 raster::cmds::LoseContextCHROMIUM* c =
85 GetCmdSpace<raster::cmds::LoseContextCHROMIUM>();
86 if (c) {
87 c->Init(current, other);
88 }
89 }
90
BeginRasterCHROMIUMImmediate(GLuint sk_color,GLuint msaa_sample_count,GLboolean can_use_lcd_text,const GLbyte * mailbox)91 void BeginRasterCHROMIUMImmediate(GLuint sk_color,
92 GLuint msaa_sample_count,
93 GLboolean can_use_lcd_text,
94 const GLbyte* mailbox) {
95 const uint32_t size =
96 raster::cmds::BeginRasterCHROMIUMImmediate::ComputeSize();
97 raster::cmds::BeginRasterCHROMIUMImmediate* c =
98 GetImmediateCmdSpaceTotalSize<raster::cmds::BeginRasterCHROMIUMImmediate>(
99 size);
100 if (c) {
101 c->Init(sk_color, msaa_sample_count, can_use_lcd_text, mailbox);
102 }
103 }
104
RasterCHROMIUM(GLuint raster_shm_id,GLuint raster_shm_offset,GLsizeiptr raster_shm_size,GLuint font_shm_id,GLuint font_shm_offset,GLsizeiptr font_shm_size)105 void RasterCHROMIUM(GLuint raster_shm_id,
106 GLuint raster_shm_offset,
107 GLsizeiptr raster_shm_size,
108 GLuint font_shm_id,
109 GLuint font_shm_offset,
110 GLsizeiptr font_shm_size) {
111 raster::cmds::RasterCHROMIUM* c = GetCmdSpace<raster::cmds::RasterCHROMIUM>();
112 if (c) {
113 c->Init(raster_shm_id, raster_shm_offset, raster_shm_size, font_shm_id,
114 font_shm_offset, font_shm_size);
115 }
116 }
117
EndRasterCHROMIUM()118 void EndRasterCHROMIUM() {
119 raster::cmds::EndRasterCHROMIUM* c =
120 GetCmdSpace<raster::cmds::EndRasterCHROMIUM>();
121 if (c) {
122 c->Init();
123 }
124 }
125
CreateTransferCacheEntryINTERNAL(GLuint entry_type,GLuint entry_id,GLuint handle_shm_id,GLuint handle_shm_offset,GLuint data_shm_id,GLuint data_shm_offset,GLuint data_size)126 void CreateTransferCacheEntryINTERNAL(GLuint entry_type,
127 GLuint entry_id,
128 GLuint handle_shm_id,
129 GLuint handle_shm_offset,
130 GLuint data_shm_id,
131 GLuint data_shm_offset,
132 GLuint data_size) {
133 raster::cmds::CreateTransferCacheEntryINTERNAL* c =
134 GetCmdSpace<raster::cmds::CreateTransferCacheEntryINTERNAL>();
135 if (c) {
136 c->Init(entry_type, entry_id, handle_shm_id, handle_shm_offset, data_shm_id,
137 data_shm_offset, data_size);
138 }
139 }
140
DeleteTransferCacheEntryINTERNAL(GLuint entry_type,GLuint entry_id)141 void DeleteTransferCacheEntryINTERNAL(GLuint entry_type, GLuint entry_id) {
142 raster::cmds::DeleteTransferCacheEntryINTERNAL* c =
143 GetCmdSpace<raster::cmds::DeleteTransferCacheEntryINTERNAL>();
144 if (c) {
145 c->Init(entry_type, entry_id);
146 }
147 }
148
UnlockTransferCacheEntryINTERNAL(GLuint entry_type,GLuint entry_id)149 void UnlockTransferCacheEntryINTERNAL(GLuint entry_type, GLuint entry_id) {
150 raster::cmds::UnlockTransferCacheEntryINTERNAL* c =
151 GetCmdSpace<raster::cmds::UnlockTransferCacheEntryINTERNAL>();
152 if (c) {
153 c->Init(entry_type, entry_id);
154 }
155 }
156
DeletePaintCacheTextBlobsINTERNALImmediate(GLsizei n,const GLuint * ids)157 void DeletePaintCacheTextBlobsINTERNALImmediate(GLsizei n, const GLuint* ids) {
158 const uint32_t size =
159 raster::cmds::DeletePaintCacheTextBlobsINTERNALImmediate::ComputeSize(n);
160 raster::cmds::DeletePaintCacheTextBlobsINTERNALImmediate* c =
161 GetImmediateCmdSpaceTotalSize<
162 raster::cmds::DeletePaintCacheTextBlobsINTERNALImmediate>(size);
163 if (c) {
164 c->Init(n, ids);
165 }
166 }
167
DeletePaintCachePathsINTERNALImmediate(GLsizei n,const GLuint * ids)168 void DeletePaintCachePathsINTERNALImmediate(GLsizei n, const GLuint* ids) {
169 const uint32_t size =
170 raster::cmds::DeletePaintCachePathsINTERNALImmediate::ComputeSize(n);
171 raster::cmds::DeletePaintCachePathsINTERNALImmediate* c =
172 GetImmediateCmdSpaceTotalSize<
173 raster::cmds::DeletePaintCachePathsINTERNALImmediate>(size);
174 if (c) {
175 c->Init(n, ids);
176 }
177 }
178
ClearPaintCacheINTERNAL()179 void ClearPaintCacheINTERNAL() {
180 raster::cmds::ClearPaintCacheINTERNAL* c =
181 GetCmdSpace<raster::cmds::ClearPaintCacheINTERNAL>();
182 if (c) {
183 c->Init();
184 }
185 }
186
CopySubTextureINTERNALImmediate(GLint xoffset,GLint yoffset,GLint x,GLint y,GLsizei width,GLsizei height,GLboolean unpack_flip_y,const GLbyte * mailboxes)187 void CopySubTextureINTERNALImmediate(GLint xoffset,
188 GLint yoffset,
189 GLint x,
190 GLint y,
191 GLsizei width,
192 GLsizei height,
193 GLboolean unpack_flip_y,
194 const GLbyte* mailboxes) {
195 const uint32_t size =
196 raster::cmds::CopySubTextureINTERNALImmediate::ComputeSize();
197 raster::cmds::CopySubTextureINTERNALImmediate* c =
198 GetImmediateCmdSpaceTotalSize<
199 raster::cmds::CopySubTextureINTERNALImmediate>(size);
200 if (c) {
201 c->Init(xoffset, yoffset, x, y, width, height, unpack_flip_y, mailboxes);
202 }
203 }
204
WritePixelsINTERNALImmediate(GLint x_offset,GLint y_offset,GLuint src_width,GLuint src_height,GLuint row_bytes,GLuint src_sk_color_type,GLuint src_sk_alpha_type,GLint shm_id,GLuint shm_offset,GLuint pixels_offset,const GLbyte * mailbox)205 void WritePixelsINTERNALImmediate(GLint x_offset,
206 GLint y_offset,
207 GLuint src_width,
208 GLuint src_height,
209 GLuint row_bytes,
210 GLuint src_sk_color_type,
211 GLuint src_sk_alpha_type,
212 GLint shm_id,
213 GLuint shm_offset,
214 GLuint pixels_offset,
215 const GLbyte* mailbox) {
216 const uint32_t size =
217 raster::cmds::WritePixelsINTERNALImmediate::ComputeSize();
218 raster::cmds::WritePixelsINTERNALImmediate* c =
219 GetImmediateCmdSpaceTotalSize<raster::cmds::WritePixelsINTERNALImmediate>(
220 size);
221 if (c) {
222 c->Init(x_offset, y_offset, src_width, src_height, row_bytes,
223 src_sk_color_type, src_sk_alpha_type, shm_id, shm_offset,
224 pixels_offset, mailbox);
225 }
226 }
227
ReadbackImagePixelsINTERNALImmediate(GLint src_x,GLint src_y,GLuint dst_width,GLuint dst_height,GLuint row_bytes,GLuint dst_sk_color_type,GLuint dst_sk_alpha_type,GLint shm_id,GLuint shm_offset,GLuint pixels_offset,const GLbyte * mailbox)228 void ReadbackImagePixelsINTERNALImmediate(GLint src_x,
229 GLint src_y,
230 GLuint dst_width,
231 GLuint dst_height,
232 GLuint row_bytes,
233 GLuint dst_sk_color_type,
234 GLuint dst_sk_alpha_type,
235 GLint shm_id,
236 GLuint shm_offset,
237 GLuint pixels_offset,
238 const GLbyte* mailbox) {
239 const uint32_t size =
240 raster::cmds::ReadbackImagePixelsINTERNALImmediate::ComputeSize();
241 raster::cmds::ReadbackImagePixelsINTERNALImmediate* c =
242 GetImmediateCmdSpaceTotalSize<
243 raster::cmds::ReadbackImagePixelsINTERNALImmediate>(size);
244 if (c) {
245 c->Init(src_x, src_y, dst_width, dst_height, row_bytes, dst_sk_color_type,
246 dst_sk_alpha_type, shm_id, shm_offset, pixels_offset, mailbox);
247 }
248 }
249
ConvertYUVMailboxesToRGBINTERNALImmediate(GLenum planes_yuv_color_space,GLboolean is_nv12,const GLbyte * mailboxes)250 void ConvertYUVMailboxesToRGBINTERNALImmediate(GLenum planes_yuv_color_space,
251 GLboolean is_nv12,
252 const GLbyte* mailboxes) {
253 const uint32_t size =
254 raster::cmds::ConvertYUVMailboxesToRGBINTERNALImmediate::ComputeSize();
255 raster::cmds::ConvertYUVMailboxesToRGBINTERNALImmediate* c =
256 GetImmediateCmdSpaceTotalSize<
257 raster::cmds::ConvertYUVMailboxesToRGBINTERNALImmediate>(size);
258 if (c) {
259 c->Init(planes_yuv_color_space, is_nv12, mailboxes);
260 }
261 }
262
TraceBeginCHROMIUM(GLuint category_bucket_id,GLuint name_bucket_id)263 void TraceBeginCHROMIUM(GLuint category_bucket_id, GLuint name_bucket_id) {
264 raster::cmds::TraceBeginCHROMIUM* c =
265 GetCmdSpace<raster::cmds::TraceBeginCHROMIUM>();
266 if (c) {
267 c->Init(category_bucket_id, name_bucket_id);
268 }
269 }
270
TraceEndCHROMIUM()271 void TraceEndCHROMIUM() {
272 raster::cmds::TraceEndCHROMIUM* c =
273 GetCmdSpace<raster::cmds::TraceEndCHROMIUM>();
274 if (c) {
275 c->Init();
276 }
277 }
278
SetActiveURLCHROMIUM(GLuint url_bucket_id)279 void SetActiveURLCHROMIUM(GLuint url_bucket_id) {
280 raster::cmds::SetActiveURLCHROMIUM* c =
281 GetCmdSpace<raster::cmds::SetActiveURLCHROMIUM>();
282 if (c) {
283 c->Init(url_bucket_id);
284 }
285 }
286
287 #endif // GPU_COMMAND_BUFFER_CLIENT_RASTER_CMD_HELPER_AUTOGEN_H_
288