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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move CreateGLImage below virtual methods. Created 8 years, 2 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) 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 4184 matching lines...) Expand 10 before | Expand all | Expand 10 after
4195 EXPECT_EQ(static_cast<uint32>(BindUniformLocationCHROMIUMBucket::kCmdId), 4195 EXPECT_EQ(static_cast<uint32>(BindUniformLocationCHROMIUMBucket::kCmdId),
4196 cmd.header.command); 4196 cmd.header.command);
4197 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 4197 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4198 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); 4198 EXPECT_EQ(static_cast<GLuint>(11), cmd.program);
4199 EXPECT_EQ(static_cast<GLint>(12), cmd.location); 4199 EXPECT_EQ(static_cast<GLint>(12), cmd.location);
4200 EXPECT_EQ(static_cast<uint32>(13), cmd.name_bucket_id); 4200 EXPECT_EQ(static_cast<uint32>(13), cmd.name_bucket_id);
4201 CheckBytesWrittenMatchesExpectedSize( 4201 CheckBytesWrittenMatchesExpectedSize(
4202 next_cmd, sizeof(cmd)); 4202 next_cmd, sizeof(cmd));
4203 } 4203 }
4204 4204
4205 TEST_F(GLES2FormatTest, BindTexImage2DCHROMIUM) {
4206 BindTexImage2DCHROMIUM& cmd = *GetBufferAs<BindTexImage2DCHROMIUM>();
4207 void* next_cmd = cmd.Set(
4208 &cmd,
4209 static_cast<GLenum>(11),
4210 static_cast<GLint>(12));
4211 EXPECT_EQ(static_cast<uint32>(BindTexImage2DCHROMIUM::kCmdId),
4212 cmd.header.command);
4213 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4214 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
4215 EXPECT_EQ(static_cast<GLint>(12), cmd.imageId);
4216 CheckBytesWrittenMatchesExpectedSize(
4217 next_cmd, sizeof(cmd));
4218 }
4219
4220 TEST_F(GLES2FormatTest, ReleaseTexImage2DCHROMIUM) {
4221 ReleaseTexImage2DCHROMIUM& cmd = *GetBufferAs<ReleaseTexImage2DCHROMIUM>();
4222 void* next_cmd = cmd.Set(
4223 &cmd,
4224 static_cast<GLenum>(11),
4225 static_cast<GLint>(12));
4226 EXPECT_EQ(static_cast<uint32>(ReleaseTexImage2DCHROMIUM::kCmdId),
4227 cmd.header.command);
4228 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4229 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
4230 EXPECT_EQ(static_cast<GLint>(12), cmd.imageId);
4231 CheckBytesWrittenMatchesExpectedSize(
4232 next_cmd, sizeof(cmd));
4233 }
4234
4205 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 4235 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
4206 4236
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698