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

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

Issue 13613006: Add a new parameter dest_type to the GL_CHROMIUM_copy_texture extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase the patch and solve the merge conflict issue Created 7 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 unified diff | Download patch
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 // This file contains unit tests for gles2 commmands 9 // This file contains unit tests for gles2 commmands
10 // It is included by gles2_cmd_format_test.cc 10 // It is included by gles2_cmd_format_test.cc
(...skipping 3865 matching lines...) Expand 10 before | Expand all | Expand 10 after
3876 } 3876 }
3877 3877
3878 TEST_F(GLES2FormatTest, CopyTextureCHROMIUM) { 3878 TEST_F(GLES2FormatTest, CopyTextureCHROMIUM) {
3879 cmds::CopyTextureCHROMIUM& cmd = *GetBufferAs<cmds::CopyTextureCHROMIUM>(); 3879 cmds::CopyTextureCHROMIUM& cmd = *GetBufferAs<cmds::CopyTextureCHROMIUM>();
3880 void* next_cmd = cmd.Set( 3880 void* next_cmd = cmd.Set(
3881 &cmd, 3881 &cmd,
3882 static_cast<GLenum>(11), 3882 static_cast<GLenum>(11),
3883 static_cast<GLenum>(12), 3883 static_cast<GLenum>(12),
3884 static_cast<GLenum>(13), 3884 static_cast<GLenum>(13),
3885 static_cast<GLint>(14), 3885 static_cast<GLint>(14),
3886 static_cast<GLint>(15)); 3886 static_cast<GLint>(15),
3887 static_cast<GLenum>(16));
3887 EXPECT_EQ(static_cast<uint32>(cmds::CopyTextureCHROMIUM::kCmdId), 3888 EXPECT_EQ(static_cast<uint32>(cmds::CopyTextureCHROMIUM::kCmdId),
3888 cmd.header.command); 3889 cmd.header.command);
3889 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3890 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3890 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); 3891 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
3891 EXPECT_EQ(static_cast<GLenum>(12), cmd.source_id); 3892 EXPECT_EQ(static_cast<GLenum>(12), cmd.source_id);
3892 EXPECT_EQ(static_cast<GLenum>(13), cmd.dest_id); 3893 EXPECT_EQ(static_cast<GLenum>(13), cmd.dest_id);
3893 EXPECT_EQ(static_cast<GLint>(14), cmd.level); 3894 EXPECT_EQ(static_cast<GLint>(14), cmd.level);
3894 EXPECT_EQ(static_cast<GLint>(15), cmd.internalformat); 3895 EXPECT_EQ(static_cast<GLint>(15), cmd.internalformat);
3896 EXPECT_EQ(static_cast<GLenum>(16), cmd.dest_type);
3895 CheckBytesWrittenMatchesExpectedSize( 3897 CheckBytesWrittenMatchesExpectedSize(
3896 next_cmd, sizeof(cmd)); 3898 next_cmd, sizeof(cmd));
3897 } 3899 }
3898 3900
3899 TEST_F(GLES2FormatTest, DrawArraysInstancedANGLE) { 3901 TEST_F(GLES2FormatTest, DrawArraysInstancedANGLE) {
3900 cmds::DrawArraysInstancedANGLE& cmd = 3902 cmds::DrawArraysInstancedANGLE& cmd =
3901 *GetBufferAs<cmds::DrawArraysInstancedANGLE>(); 3903 *GetBufferAs<cmds::DrawArraysInstancedANGLE>();
3902 void* next_cmd = cmd.Set( 3904 void* next_cmd = cmd.Set(
3903 &cmd, 3905 &cmd,
3904 static_cast<GLenum>(11), 3906 static_cast<GLenum>(11),
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
4493 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u); 4495 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u);
4494 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count); 4496 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count);
4495 CheckBytesWrittenMatchesExpectedSize( 4497 CheckBytesWrittenMatchesExpectedSize(
4496 next_cmd, sizeof(cmd) + 4498 next_cmd, sizeof(cmd) +
4497 RoundSizeToMultipleOfEntries(sizeof(data))); 4499 RoundSizeToMultipleOfEntries(sizeof(data)));
4498 // TODO(gman): Check that data was inserted; 4500 // TODO(gman): Check that data was inserted;
4499 } 4501 }
4500 4502
4501 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 4503 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
4502 4504
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698