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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 2021413003: Remove GL_CHROMIUM_iosurface extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index 650fc514c3e84085f2a271db3cbaad192b4d719a..6c4b99006f72da9eb7e2ccab4857315b86af4788 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -12391,65 +12391,6 @@ static_assert(offsetof(PostSubBufferCHROMIUM, width) == 12,
static_assert(offsetof(PostSubBufferCHROMIUM, height) == 16,
"offset of PostSubBufferCHROMIUM height should be 16");
-struct TexImageIOSurface2DCHROMIUM {
- typedef TexImageIOSurface2DCHROMIUM ValueType;
- static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM;
- static const cmd::ArgFlags kArgFlags = cmd::kFixed;
- static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1);
-
- static uint32_t ComputeSize() {
- return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
- }
-
- void SetHeader() { header.SetCmd<ValueType>(); }
-
- void Init(GLenum _target,
- GLsizei _width,
- GLsizei _height,
- GLuint _ioSurfaceId,
- GLuint _plane) {
- SetHeader();
- target = _target;
- width = _width;
- height = _height;
- ioSurfaceId = _ioSurfaceId;
- plane = _plane;
- }
-
- void* Set(void* cmd,
- GLenum _target,
- GLsizei _width,
- GLsizei _height,
- GLuint _ioSurfaceId,
- GLuint _plane) {
- static_cast<ValueType*>(cmd)->Init(_target, _width, _height, _ioSurfaceId,
- _plane);
- return NextCmdAddress<ValueType>(cmd);
- }
-
- gpu::CommandHeader header;
- uint32_t target;
- int32_t width;
- int32_t height;
- uint32_t ioSurfaceId;
- uint32_t plane;
-};
-
-static_assert(sizeof(TexImageIOSurface2DCHROMIUM) == 24,
- "size of TexImageIOSurface2DCHROMIUM should be 24");
-static_assert(offsetof(TexImageIOSurface2DCHROMIUM, header) == 0,
- "offset of TexImageIOSurface2DCHROMIUM header should be 0");
-static_assert(offsetof(TexImageIOSurface2DCHROMIUM, target) == 4,
- "offset of TexImageIOSurface2DCHROMIUM target should be 4");
-static_assert(offsetof(TexImageIOSurface2DCHROMIUM, width) == 8,
- "offset of TexImageIOSurface2DCHROMIUM width should be 8");
-static_assert(offsetof(TexImageIOSurface2DCHROMIUM, height) == 12,
- "offset of TexImageIOSurface2DCHROMIUM height should be 12");
-static_assert(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16,
- "offset of TexImageIOSurface2DCHROMIUM ioSurfaceId should be 16");
-static_assert(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20,
- "offset of TexImageIOSurface2DCHROMIUM plane should be 20");
-
struct CopyTextureCHROMIUM {
typedef CopyTextureCHROMIUM ValueType;
static const CommandId kCmdId = kCopyTextureCHROMIUM;
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698