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

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

Issue 8512005: Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 1 month 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 3541 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 static_cast<uint32>(12)); 3552 static_cast<uint32>(12));
3553 EXPECT_EQ(static_cast<uint32>(GetTranslatedShaderSourceANGLE::kCmdId), 3553 EXPECT_EQ(static_cast<uint32>(GetTranslatedShaderSourceANGLE::kCmdId),
3554 cmd.header.command); 3554 cmd.header.command);
3555 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3555 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3556 EXPECT_EQ(static_cast<GLuint>(11), cmd.shader); 3556 EXPECT_EQ(static_cast<GLuint>(11), cmd.shader);
3557 EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id); 3557 EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id);
3558 CheckBytesWrittenMatchesExpectedSize( 3558 CheckBytesWrittenMatchesExpectedSize(
3559 next_cmd, sizeof(cmd)); 3559 next_cmd, sizeof(cmd));
3560 } 3560 }
3561 3561
3562 TEST_F(GLES2FormatTest, PostSubBufferCHROMIUM) {
3563 PostSubBufferCHROMIUM& cmd = *GetBufferAs<PostSubBufferCHROMIUM>();
3564 void* next_cmd = cmd.Set(
3565 &cmd,
3566 static_cast<GLint>(11),
3567 static_cast<GLint>(12),
3568 static_cast<GLint>(13),
3569 static_cast<GLint>(14));
3570 EXPECT_EQ(static_cast<uint32>(PostSubBufferCHROMIUM::kCmdId),
3571 cmd.header.command);
3572 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3573 EXPECT_EQ(static_cast<GLint>(11), cmd.x);
3574 EXPECT_EQ(static_cast<GLint>(12), cmd.y);
3575 EXPECT_EQ(static_cast<GLint>(13), cmd.width);
3576 EXPECT_EQ(static_cast<GLint>(14), cmd.height);
3577 CheckBytesWrittenMatchesExpectedSize(
3578 next_cmd, sizeof(cmd));
3579 }
3580
3562 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 3581 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
3563 3582
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