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

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

Issue 8680002: Added minimal support to command buffer for GL_ARB_texture_rectangle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 9193 matching lines...) Expand 10 before | Expand all | Expand 10 after
9204 OffsetOf_PostSubBufferCHROMIUM_header_not_0); 9204 OffsetOf_PostSubBufferCHROMIUM_header_not_0);
9205 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, x) == 4, 9205 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, x) == 4,
9206 OffsetOf_PostSubBufferCHROMIUM_x_not_4); 9206 OffsetOf_PostSubBufferCHROMIUM_x_not_4);
9207 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, y) == 8, 9207 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, y) == 8,
9208 OffsetOf_PostSubBufferCHROMIUM_y_not_8); 9208 OffsetOf_PostSubBufferCHROMIUM_y_not_8);
9209 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, width) == 12, 9209 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, width) == 12,
9210 OffsetOf_PostSubBufferCHROMIUM_width_not_12); 9210 OffsetOf_PostSubBufferCHROMIUM_width_not_12);
9211 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, height) == 16, 9211 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, height) == 16,
9212 OffsetOf_PostSubBufferCHROMIUM_height_not_16); 9212 OffsetOf_PostSubBufferCHROMIUM_height_not_16);
9213 9213
9214 struct TexImageIOSurface2DCHROMIUM {
9215 typedef TexImageIOSurface2DCHROMIUM ValueType;
9216 static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM;
9217 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
9218
9219 static uint32 ComputeSize() {
9220 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
9221 }
9222
9223 void SetHeader() {
9224 header.SetCmd<ValueType>();
9225 }
9226
9227 void Init(
9228 GLenum _target, GLsizei _width, GLsizei _height, GLuint _ioSurfaceId,
9229 GLuint _plane) {
9230 SetHeader();
9231 target = _target;
9232 width = _width;
9233 height = _height;
9234 ioSurfaceId = _ioSurfaceId;
9235 plane = _plane;
9236 }
9237
9238 void* Set(
9239 void* cmd, GLenum _target, GLsizei _width, GLsizei _height,
9240 GLuint _ioSurfaceId, GLuint _plane) {
9241 static_cast<ValueType*>(
9242 cmd)->Init(_target, _width, _height, _ioSurfaceId, _plane);
9243 return NextCmdAddress<ValueType>(cmd);
9244 }
9245
9246 gpu::CommandHeader header;
9247 uint32 target;
9248 int32 width;
9249 int32 height;
9250 uint32 ioSurfaceId;
9251 uint32 plane;
9252 };
9253
9254 COMPILE_ASSERT(sizeof(TexImageIOSurface2DCHROMIUM) == 24,
9255 Sizeof_TexImageIOSurface2DCHROMIUM_is_not_24);
9256 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, header) == 0,
9257 OffsetOf_TexImageIOSurface2DCHROMIUM_header_not_0);
9258 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, target) == 4,
9259 OffsetOf_TexImageIOSurface2DCHROMIUM_target_not_4);
9260 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, width) == 8,
9261 OffsetOf_TexImageIOSurface2DCHROMIUM_width_not_8);
9262 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, height) == 12,
9263 OffsetOf_TexImageIOSurface2DCHROMIUM_height_not_12);
9264 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16,
9265 OffsetOf_TexImageIOSurface2DCHROMIUM_ioSurfaceId_not_16);
9266 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20,
9267 OffsetOf_TexImageIOSurface2DCHROMIUM_plane_not_20);
9268
9214 9269
9215 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9270 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
9216 9271
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698