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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move CreateGLImage below virtual methods. Created 8 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
(...skipping 10414 matching lines...) Expand 10 before | Expand all | Expand 10 after
10425 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, 10425 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0,
10426 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); 10426 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0);
10427 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, 10427 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4,
10428 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); 10428 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4);
10429 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, 10429 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8,
10430 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); 10430 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8);
10431 COMPILE_ASSERT( 10431 COMPILE_ASSERT(
10432 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, 10432 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12,
10433 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12) ; // NOLINT 10433 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12) ; // NOLINT
10434 10434
10435 struct BindTexImage2DCHROMIUM {
10436 typedef BindTexImage2DCHROMIUM ValueType;
10437 static const CommandId kCmdId = kBindTexImage2DCHROMIUM;
10438 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
10439
10440 static uint32 ComputeSize() {
10441 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
10442 }
10443
10444 void SetHeader() {
10445 header.SetCmd<ValueType>();
10446 }
10447
10448 void Init(GLenum _target, GLint _imageId) {
10449 SetHeader();
10450 target = _target;
10451 imageId = _imageId;
10452 }
10453
10454 void* Set(void* cmd, GLenum _target, GLint _imageId) {
10455 static_cast<ValueType*>(cmd)->Init(_target, _imageId);
10456 return NextCmdAddress<ValueType>(cmd);
10457 }
10458
10459 gpu::CommandHeader header;
10460 uint32 target;
10461 int32 imageId;
10462 };
10463
10464 COMPILE_ASSERT(sizeof(BindTexImage2DCHROMIUM) == 12,
10465 Sizeof_BindTexImage2DCHROMIUM_is_not_12);
10466 COMPILE_ASSERT(offsetof(BindTexImage2DCHROMIUM, header) == 0,
10467 OffsetOf_BindTexImage2DCHROMIUM_header_not_0);
10468 COMPILE_ASSERT(offsetof(BindTexImage2DCHROMIUM, target) == 4,
10469 OffsetOf_BindTexImage2DCHROMIUM_target_not_4);
10470 COMPILE_ASSERT(offsetof(BindTexImage2DCHROMIUM, imageId) == 8,
10471 OffsetOf_BindTexImage2DCHROMIUM_imageId_not_8);
10472
10473 struct ReleaseTexImage2DCHROMIUM {
10474 typedef ReleaseTexImage2DCHROMIUM ValueType;
10475 static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM;
10476 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
10477
10478 static uint32 ComputeSize() {
10479 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
10480 }
10481
10482 void SetHeader() {
10483 header.SetCmd<ValueType>();
10484 }
10485
10486 void Init(GLenum _target, GLint _imageId) {
10487 SetHeader();
10488 target = _target;
10489 imageId = _imageId;
10490 }
10491
10492 void* Set(void* cmd, GLenum _target, GLint _imageId) {
10493 static_cast<ValueType*>(cmd)->Init(_target, _imageId);
10494 return NextCmdAddress<ValueType>(cmd);
10495 }
10496
10497 gpu::CommandHeader header;
10498 uint32 target;
10499 int32 imageId;
10500 };
10501
10502 COMPILE_ASSERT(sizeof(ReleaseTexImage2DCHROMIUM) == 12,
10503 Sizeof_ReleaseTexImage2DCHROMIUM_is_not_12);
10504 COMPILE_ASSERT(offsetof(ReleaseTexImage2DCHROMIUM, header) == 0,
10505 OffsetOf_ReleaseTexImage2DCHROMIUM_header_not_0);
10506 COMPILE_ASSERT(offsetof(ReleaseTexImage2DCHROMIUM, target) == 4,
10507 OffsetOf_ReleaseTexImage2DCHROMIUM_target_not_4);
10508 COMPILE_ASSERT(offsetof(ReleaseTexImage2DCHROMIUM, imageId) == 8,
10509 OffsetOf_ReleaseTexImage2DCHROMIUM_imageId_not_8);
10510
10435 10511
10436 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 10512 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
10437 10513
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698