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

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

Issue 15685003: Part 2/3 (GL) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-resolve against head Created 7 years, 7 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 3688 matching lines...) Expand 10 before | Expand all | Expand 10 after
3699 EXPECT_EQ(static_cast<uint32>(13), cmd.result_shm_offset); 3699 EXPECT_EQ(static_cast<uint32>(13), cmd.result_shm_offset);
3700 CheckBytesWrittenMatchesExpectedSize( 3700 CheckBytesWrittenMatchesExpectedSize(
3701 next_cmd, sizeof(cmd)); 3701 next_cmd, sizeof(cmd));
3702 } 3702 }
3703 3703
3704 TEST_F(GLES2FormatTest, ResizeCHROMIUM) { 3704 TEST_F(GLES2FormatTest, ResizeCHROMIUM) {
3705 cmds::ResizeCHROMIUM& cmd = *GetBufferAs<cmds::ResizeCHROMIUM>(); 3705 cmds::ResizeCHROMIUM& cmd = *GetBufferAs<cmds::ResizeCHROMIUM>();
3706 void* next_cmd = cmd.Set( 3706 void* next_cmd = cmd.Set(
3707 &cmd, 3707 &cmd,
3708 static_cast<GLuint>(11), 3708 static_cast<GLuint>(11),
3709 static_cast<GLuint>(12)); 3709 static_cast<GLuint>(12),
3710 static_cast<GLfloat>(13));
3710 EXPECT_EQ(static_cast<uint32>(cmds::ResizeCHROMIUM::kCmdId), 3711 EXPECT_EQ(static_cast<uint32>(cmds::ResizeCHROMIUM::kCmdId),
3711 cmd.header.command); 3712 cmd.header.command);
3712 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3713 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3713 EXPECT_EQ(static_cast<GLuint>(11), cmd.width); 3714 EXPECT_EQ(static_cast<GLuint>(11), cmd.width);
3714 EXPECT_EQ(static_cast<GLuint>(12), cmd.height); 3715 EXPECT_EQ(static_cast<GLuint>(12), cmd.height);
3716 EXPECT_EQ(static_cast<GLfloat>(13), cmd.scale_factor);
3715 CheckBytesWrittenMatchesExpectedSize( 3717 CheckBytesWrittenMatchesExpectedSize(
3716 next_cmd, sizeof(cmd)); 3718 next_cmd, sizeof(cmd));
3717 } 3719 }
3718 3720
3719 TEST_F(GLES2FormatTest, GetRequestableExtensionsCHROMIUM) { 3721 TEST_F(GLES2FormatTest, GetRequestableExtensionsCHROMIUM) {
3720 cmds::GetRequestableExtensionsCHROMIUM& cmd = 3722 cmds::GetRequestableExtensionsCHROMIUM& cmd =
3721 *GetBufferAs<cmds::GetRequestableExtensionsCHROMIUM>(); 3723 *GetBufferAs<cmds::GetRequestableExtensionsCHROMIUM>();
3722 void* next_cmd = cmd.Set( 3724 void* next_cmd = cmd.Set(
3723 &cmd, 3725 &cmd,
3724 static_cast<uint32>(11)); 3726 static_cast<uint32>(11));
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
4495 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u); 4497 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u);
4496 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count); 4498 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count);
4497 CheckBytesWrittenMatchesExpectedSize( 4499 CheckBytesWrittenMatchesExpectedSize(
4498 next_cmd, sizeof(cmd) + 4500 next_cmd, sizeof(cmd) +
4499 RoundSizeToMultipleOfEntries(sizeof(data))); 4501 RoundSizeToMultipleOfEntries(sizeof(data)));
4500 // TODO(gman): Check that data was inserted; 4502 // TODO(gman): Check that data was inserted;
4501 } 4503 }
4502 4504
4503 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 4505 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
4504 4506
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698