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

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

Issue 10078006: Revert 132934 - this change seems to break many webgl related layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
===================================================================
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h (revision 132957)
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h (working copy)
@@ -9524,54 +9524,6 @@
COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20,
OffsetOf_TexImageIOSurface2DCHROMIUM_plane_not_20);
-struct CopyTextureCHROMIUM {
- typedef CopyTextureCHROMIUM ValueType;
- static const CommandId kCmdId = kCopyTextureCHROMIUM;
- static const cmd::ArgFlags kArgFlags = cmd::kFixed;
-
- static uint32 ComputeSize() {
- return static_cast<uint32>(sizeof(ValueType)); // NOLINT
- }
-
- void SetHeader() {
- header.SetCmd<ValueType>();
- }
-
- void Init(GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level) {
- SetHeader();
- target = _target;
- source_id = _source_id;
- dest_id = _dest_id;
- level = _level;
- }
-
- void* Set(
- void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id,
- GLint _level) {
- static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _level);
- return NextCmdAddress<ValueType>(cmd);
- }
-
- gpu::CommandHeader header;
- uint32 target;
- uint32 source_id;
- uint32 dest_id;
- int32 level;
-};
-
-COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 20,
- Sizeof_CopyTextureCHROMIUM_is_not_20);
-COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, header) == 0,
- OffsetOf_CopyTextureCHROMIUM_header_not_0);
-COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, target) == 4,
- OffsetOf_CopyTextureCHROMIUM_target_not_4);
-COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, source_id) == 8,
- OffsetOf_CopyTextureCHROMIUM_source_id_not_8);
-COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_id) == 12,
- OffsetOf_CopyTextureCHROMIUM_dest_id_not_12);
-COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, level) == 16,
- OffsetOf_CopyTextureCHROMIUM_level_not_16);
-
struct DrawArraysInstancedANGLE {
typedef DrawArraysInstancedANGLE ValueType;
static const CommandId kCmdId = kDrawArraysInstancedANGLE;
« 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