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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 GLint y, 352 GLint y,
353 GLsizei width, 353 GLsizei width,
354 GLsizei height) { 354 GLsizei height) {
355 gles2::cmds::CopyTexSubImage2D* c = 355 gles2::cmds::CopyTexSubImage2D* c =
356 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>(); 356 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>();
357 if (c) { 357 if (c) {
358 c->Init(target, level, xoffset, yoffset, x, y, width, height); 358 c->Init(target, level, xoffset, yoffset, x, y, width, height);
359 } 359 }
360 } 360 }
361 361
362 void CopyTexSubImage3D(GLenum target,
363 GLint level,
364 GLint xoffset,
365 GLint yoffset,
366 GLint zoffset,
367 GLint x,
368 GLint y,
369 GLsizei width,
370 GLsizei height) {
371 gles2::cmds::CopyTexSubImage3D* c =
372 GetCmdSpace<gles2::cmds::CopyTexSubImage3D>();
373 if (c) {
374 c->Init(target, level, xoffset, yoffset, zoffset, x, y, width, height);
375 }
376 }
377
362 void CreateProgram(uint32_t client_id) { 378 void CreateProgram(uint32_t client_id) {
363 gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>(); 379 gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>();
364 if (c) { 380 if (c) {
365 c->Init(client_id); 381 c->Init(client_id);
366 } 382 }
367 } 383 }
368 384
369 void CreateShader(GLenum type, uint32_t client_id) { 385 void CreateShader(GLenum type, uint32_t client_id) {
370 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>(); 386 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>();
371 if (c) { 387 if (c) {
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 uint32_t pixels_shm_id, 1428 uint32_t pixels_shm_id,
1413 uint32_t pixels_shm_offset, 1429 uint32_t pixels_shm_offset,
1414 GLboolean internal) { 1430 GLboolean internal) {
1415 gles2::cmds::TexSubImage3D* c = GetCmdSpace<gles2::cmds::TexSubImage3D>(); 1431 gles2::cmds::TexSubImage3D* c = GetCmdSpace<gles2::cmds::TexSubImage3D>();
1416 if (c) { 1432 if (c) {
1417 c->Init(target, level, xoffset, yoffset, zoffset, width, height, depth, 1433 c->Init(target, level, xoffset, yoffset, zoffset, width, height, depth,
1418 format, type, pixels_shm_id, pixels_shm_offset, internal); 1434 format, type, pixels_shm_id, pixels_shm_offset, internal);
1419 } 1435 }
1420 } 1436 }
1421 1437
1438 void TransformFeedbackVaryingsBucket(GLuint program,
1439 uint32_t varyings_bucket_id,
1440 GLenum buffermode) {
1441 gles2::cmds::TransformFeedbackVaryingsBucket* c =
1442 GetCmdSpace<gles2::cmds::TransformFeedbackVaryingsBucket>();
1443 if (c) {
1444 c->Init(program, varyings_bucket_id, buffermode);
1445 }
1446 }
1447
1422 void Uniform1f(GLint location, GLfloat x) { 1448 void Uniform1f(GLint location, GLfloat x) {
1423 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); 1449 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>();
1424 if (c) { 1450 if (c) {
1425 c->Init(location, x); 1451 c->Init(location, x);
1426 } 1452 }
1427 } 1453 }
1428 1454
1429 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1455 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1430 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); 1456 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count);
1431 gles2::cmds::Uniform1fvImmediate* c = 1457 gles2::cmds::Uniform1fvImmediate* c =
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
2488 } 2514 }
2489 2515
2490 void BlendBarrierKHR() { 2516 void BlendBarrierKHR() {
2491 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); 2517 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
2492 if (c) { 2518 if (c) {
2493 c->Init(); 2519 c->Init();
2494 } 2520 }
2495 } 2521 }
2496 2522
2497 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2523 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698