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

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

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 // 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 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3290 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3290 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3291 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); 3291 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
3292 EXPECT_EQ(static_cast<GLsizei>(12), cmd.samples); 3292 EXPECT_EQ(static_cast<GLsizei>(12), cmd.samples);
3293 EXPECT_EQ(static_cast<GLenum>(13), cmd.internalformat); 3293 EXPECT_EQ(static_cast<GLenum>(13), cmd.internalformat);
3294 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width); 3294 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width);
3295 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); 3295 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height);
3296 CheckBytesWrittenMatchesExpectedSize( 3296 CheckBytesWrittenMatchesExpectedSize(
3297 next_cmd, sizeof(cmd)); 3297 next_cmd, sizeof(cmd));
3298 } 3298 }
3299 3299
3300 TEST_F(GLES2FormatTest, TexStorage2DEXT) {
3301 TexStorage2DEXT& cmd = *GetBufferAs<TexStorage2DEXT>();
3302 void* next_cmd = cmd.Set(
3303 &cmd,
3304 static_cast<GLenum>(11),
3305 static_cast<GLsizei>(12),
3306 static_cast<GLint>(13),
3307 static_cast<GLsizei>(14),
3308 static_cast<GLsizei>(15));
3309 EXPECT_EQ(static_cast<uint32>(TexStorage2DEXT::kCmdId),
3310 cmd.header.command);
3311 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3312 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
3313 EXPECT_EQ(static_cast<GLsizei>(12), cmd.levels);
3314 EXPECT_EQ(static_cast<GLint>(13), cmd.internalFormat);
3315 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width);
3316 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height);
3317 CheckBytesWrittenMatchesExpectedSize(
3318 next_cmd, sizeof(cmd));
3319 }
3320
3300 TEST_F(GLES2FormatTest, SwapBuffers) { 3321 TEST_F(GLES2FormatTest, SwapBuffers) {
3301 SwapBuffers& cmd = *GetBufferAs<SwapBuffers>(); 3322 SwapBuffers& cmd = *GetBufferAs<SwapBuffers>();
3302 void* next_cmd = cmd.Set( 3323 void* next_cmd = cmd.Set(
3303 &cmd); 3324 &cmd);
3304 EXPECT_EQ(static_cast<uint32>(SwapBuffers::kCmdId), 3325 EXPECT_EQ(static_cast<uint32>(SwapBuffers::kCmdId),
3305 cmd.header.command); 3326 cmd.header.command);
3306 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3327 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3307 CheckBytesWrittenMatchesExpectedSize( 3328 CheckBytesWrittenMatchesExpectedSize(
3308 next_cmd, sizeof(cmd)); 3329 next_cmd, sizeof(cmd));
3309 } 3330 }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
3595 EXPECT_EQ(static_cast<GLsizei>(12), cmd.width); 3616 EXPECT_EQ(static_cast<GLsizei>(12), cmd.width);
3596 EXPECT_EQ(static_cast<GLsizei>(13), cmd.height); 3617 EXPECT_EQ(static_cast<GLsizei>(13), cmd.height);
3597 EXPECT_EQ(static_cast<GLuint>(14), cmd.ioSurfaceId); 3618 EXPECT_EQ(static_cast<GLuint>(14), cmd.ioSurfaceId);
3598 EXPECT_EQ(static_cast<GLuint>(15), cmd.plane); 3619 EXPECT_EQ(static_cast<GLuint>(15), cmd.plane);
3599 CheckBytesWrittenMatchesExpectedSize( 3620 CheckBytesWrittenMatchesExpectedSize(
3600 next_cmd, sizeof(cmd)); 3621 next_cmd, sizeof(cmd));
3601 } 3622 }
3602 3623
3603 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 3624 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
3604 3625
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_ids_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698