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

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

Issue 9150022: Revert r118525 / Re-land r118240 - the build failure was a flake. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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) 2011 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
11 11
(...skipping 3284 matching lines...) Expand 10 before | Expand all | Expand 10 after
3296 CheckBytesWrittenMatchesExpectedSize( 3296 CheckBytesWrittenMatchesExpectedSize(
3297 next_cmd, sizeof(cmd)); 3297 next_cmd, sizeof(cmd));
3298 } 3298 }
3299 3299
3300 TEST_F(GLES2FormatTest, TexStorage2DEXT) { 3300 TEST_F(GLES2FormatTest, TexStorage2DEXT) {
3301 TexStorage2DEXT& cmd = *GetBufferAs<TexStorage2DEXT>(); 3301 TexStorage2DEXT& cmd = *GetBufferAs<TexStorage2DEXT>();
3302 void* next_cmd = cmd.Set( 3302 void* next_cmd = cmd.Set(
3303 &cmd, 3303 &cmd,
3304 static_cast<GLenum>(11), 3304 static_cast<GLenum>(11),
3305 static_cast<GLsizei>(12), 3305 static_cast<GLsizei>(12),
3306 static_cast<GLint>(13), 3306 static_cast<GLenum>(13),
3307 static_cast<GLsizei>(14), 3307 static_cast<GLsizei>(14),
3308 static_cast<GLsizei>(15)); 3308 static_cast<GLsizei>(15));
3309 EXPECT_EQ(static_cast<uint32>(TexStorage2DEXT::kCmdId), 3309 EXPECT_EQ(static_cast<uint32>(TexStorage2DEXT::kCmdId),
3310 cmd.header.command); 3310 cmd.header.command);
3311 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3311 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3312 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); 3312 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
3313 EXPECT_EQ(static_cast<GLsizei>(12), cmd.levels); 3313 EXPECT_EQ(static_cast<GLsizei>(12), cmd.levels);
3314 EXPECT_EQ(static_cast<GLint>(13), cmd.internalFormat); 3314 EXPECT_EQ(static_cast<GLenum>(13), cmd.internalFormat);
3315 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width); 3315 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width);
3316 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); 3316 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height);
3317 CheckBytesWrittenMatchesExpectedSize( 3317 CheckBytesWrittenMatchesExpectedSize(
3318 next_cmd, sizeof(cmd)); 3318 next_cmd, sizeof(cmd));
3319 } 3319 }
3320 3320
3321 TEST_F(GLES2FormatTest, SwapBuffers) { 3321 TEST_F(GLES2FormatTest, SwapBuffers) {
3322 SwapBuffers& cmd = *GetBufferAs<SwapBuffers>(); 3322 SwapBuffers& cmd = *GetBufferAs<SwapBuffers>();
3323 void* next_cmd = cmd.Set( 3323 void* next_cmd = cmd.Set(
3324 &cmd); 3324 &cmd);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3616 EXPECT_EQ(static_cast<GLsizei>(12), cmd.width); 3616 EXPECT_EQ(static_cast<GLsizei>(12), cmd.width);
3617 EXPECT_EQ(static_cast<GLsizei>(13), cmd.height); 3617 EXPECT_EQ(static_cast<GLsizei>(13), cmd.height);
3618 EXPECT_EQ(static_cast<GLuint>(14), cmd.ioSurfaceId); 3618 EXPECT_EQ(static_cast<GLuint>(14), cmd.ioSurfaceId);
3619 EXPECT_EQ(static_cast<GLuint>(15), cmd.plane); 3619 EXPECT_EQ(static_cast<GLuint>(15), cmd.plane);
3620 CheckBytesWrittenMatchesExpectedSize( 3620 CheckBytesWrittenMatchesExpectedSize(
3621 next_cmd, sizeof(cmd)); 3621 next_cmd, sizeof(cmd));
3622 } 3622 }
3623 3623
3624 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 3624 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
3625 3625
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698