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

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

Issue 12806006: Add EncodeBackbufferCHROMIUM support to GLES2 command stream (Closed) Base URL: https://chromium.googlesource.com/chromium/src@yuv_2
Patch Set: Removed extraneous file. Created 7 years, 9 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
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 4480 matching lines...) Expand 10 before | Expand all | Expand 10 after
4491 EXPECT_EQ(static_cast<uint32>(cmds::DrawBuffersEXTImmediate::kCmdId), 4491 EXPECT_EQ(static_cast<uint32>(cmds::DrawBuffersEXTImmediate::kCmdId),
4492 cmd.header.command); 4492 cmd.header.command);
4493 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u); 4493 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u);
4494 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count); 4494 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count);
4495 CheckBytesWrittenMatchesExpectedSize( 4495 CheckBytesWrittenMatchesExpectedSize(
4496 next_cmd, sizeof(cmd) + 4496 next_cmd, sizeof(cmd) +
4497 RoundSizeToMultipleOfEntries(sizeof(data))); 4497 RoundSizeToMultipleOfEntries(sizeof(data)));
4498 // TODO(gman): Check that data was inserted; 4498 // TODO(gman): Check that data was inserted;
4499 } 4499 }
4500 4500
4501 TEST_F(GLES2FormatTest, EncodeBackbufferCHROMIUM) {
4502 cmds::EncodeBackbufferCHROMIUM& cmd =
4503 *GetBufferAs<cmds::EncodeBackbufferCHROMIUM>();
4504 void* next_cmd = cmd.Set(
4505 &cmd);
4506 EXPECT_EQ(static_cast<uint32>(cmds::EncodeBackbufferCHROMIUM::kCmdId),
4507 cmd.header.command);
4508 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4509 CheckBytesWrittenMatchesExpectedSize(
4510 next_cmd, sizeof(cmd));
4511 }
4512
4501 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 4513 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
4502 4514
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