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

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

Issue 1472993003: Add CommitOverlayPlanesCHROMIUM command buffer function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to add the extension description txt file Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 4805 matching lines...) Expand 10 before | Expand all | Expand 10 after
4816 cmd.header.command); 4816 cmd.header.command);
4817 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 4817 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4818 EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id); 4818 EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id);
4819 EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity); 4819 EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity);
4820 EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color); 4820 EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color);
4821 EXPECT_EQ(static_cast<GLuint>(14), cmd.shm_id); 4821 EXPECT_EQ(static_cast<GLuint>(14), cmd.shm_id);
4822 EXPECT_EQ(static_cast<GLuint>(15), cmd.shm_offset); 4822 EXPECT_EQ(static_cast<GLuint>(15), cmd.shm_offset);
4823 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 4823 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
4824 } 4824 }
4825 4825
4826 TEST_F(GLES2FormatTest, CommitOverlayPlanesCHROMIUM) {
4827 cmds::CommitOverlayPlanesCHROMIUM& cmd =
4828 *GetBufferAs<cmds::CommitOverlayPlanesCHROMIUM>();
4829 void* next_cmd = cmd.Set(&cmd);
4830 EXPECT_EQ(static_cast<uint32_t>(cmds::CommitOverlayPlanesCHROMIUM::kCmdId),
4831 cmd.header.command);
4832 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4833 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
4834 }
4835
4826 TEST_F(GLES2FormatTest, SwapInterval) { 4836 TEST_F(GLES2FormatTest, SwapInterval) {
4827 cmds::SwapInterval& cmd = *GetBufferAs<cmds::SwapInterval>(); 4837 cmds::SwapInterval& cmd = *GetBufferAs<cmds::SwapInterval>();
4828 void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11)); 4838 void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11));
4829 EXPECT_EQ(static_cast<uint32_t>(cmds::SwapInterval::kCmdId), 4839 EXPECT_EQ(static_cast<uint32_t>(cmds::SwapInterval::kCmdId),
4830 cmd.header.command); 4840 cmd.header.command);
4831 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 4841 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4832 EXPECT_EQ(static_cast<GLint>(11), cmd.interval); 4842 EXPECT_EQ(static_cast<GLint>(11), cmd.interval);
4833 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 4843 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
4834 } 4844 }
4835 4845
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
5277 *GetBufferAs<cmds::ApplyScreenSpaceAntialiasingCHROMIUM>(); 5287 *GetBufferAs<cmds::ApplyScreenSpaceAntialiasingCHROMIUM>();
5278 void* next_cmd = cmd.Set(&cmd); 5288 void* next_cmd = cmd.Set(&cmd);
5279 EXPECT_EQ( 5289 EXPECT_EQ(
5280 static_cast<uint32_t>(cmds::ApplyScreenSpaceAntialiasingCHROMIUM::kCmdId), 5290 static_cast<uint32_t>(cmds::ApplyScreenSpaceAntialiasingCHROMIUM::kCmdId),
5281 cmd.header.command); 5291 cmd.header.command);
5282 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 5292 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
5283 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 5293 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
5284 } 5294 }
5285 5295
5286 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 5296 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
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