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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_validation_autogen.h

Issue 1949303003: Improve indexed gl state related GL commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tex
Patch Set: fix a DCHECK failure Created 4 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
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 bool IsValid(const GLenum value) const; 246 bool IsValid(const GLenum value) const;
247 }; 247 };
248 QueryObjectParameterValidator query_object_parameter; 248 QueryObjectParameterValidator query_object_parameter;
249 249
250 class QueryTargetValidator { 250 class QueryTargetValidator {
251 public: 251 public:
252 bool IsValid(const GLenum value) const; 252 bool IsValid(const GLenum value) const;
253 }; 253 };
254 QueryTargetValidator query_target; 254 QueryTargetValidator query_target;
255 255
256 class ReadBufferValidator { 256 ValueValidator<GLenum> read_buffer;
257 public:
258 bool IsValid(const GLenum value) const;
259 };
260 ReadBufferValidator read_buffer;
261
262 ValueValidator<GLenum> read_pixel_format; 257 ValueValidator<GLenum> read_pixel_format;
263 ValueValidator<GLenum> read_pixel_type; 258 ValueValidator<GLenum> read_pixel_type;
264 ValueValidator<GLenum> render_buffer_format; 259 ValueValidator<GLenum> render_buffer_format;
265 ValueValidator<GLenum> render_buffer_parameter; 260 ValueValidator<GLenum> render_buffer_parameter;
266 ValueValidator<GLenum> render_buffer_target; 261 ValueValidator<GLenum> render_buffer_target;
267 class ResetStatusValidator { 262 class ResetStatusValidator {
268 public: 263 public:
269 bool IsValid(const GLenum value) const; 264 bool IsValid(const GLenum value) const;
270 }; 265 };
271 ResetStatusValidator reset_status; 266 ResetStatusValidator reset_status;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 public: 387 public:
393 bool IsValid(const GLenum value) const; 388 bool IsValid(const GLenum value) const;
394 }; 389 };
395 VertexAttribITypeValidator vertex_attrib_i_type; 390 VertexAttribITypeValidator vertex_attrib_i_type;
396 391
397 ValueValidator<GLenum> vertex_attrib_type; 392 ValueValidator<GLenum> vertex_attrib_type;
398 ValueValidator<GLenum> vertex_attribute; 393 ValueValidator<GLenum> vertex_attribute;
399 ValueValidator<GLenum> vertex_pointer; 394 ValueValidator<GLenum> vertex_pointer;
400 395
401 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_AUTOGEN_H_ 396 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698