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

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

Issue 222333002: Plumb ScheduleOverlayPlane into the GPU process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 8 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 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 3806 matching lines...) Expand 10 before | Expand all | Expand 10 after
3817 TEST_F(GLES2FormatTest, DiscardBackbufferCHROMIUM) { 3817 TEST_F(GLES2FormatTest, DiscardBackbufferCHROMIUM) {
3818 cmds::DiscardBackbufferCHROMIUM& cmd = 3818 cmds::DiscardBackbufferCHROMIUM& cmd =
3819 *GetBufferAs<cmds::DiscardBackbufferCHROMIUM>(); 3819 *GetBufferAs<cmds::DiscardBackbufferCHROMIUM>();
3820 void* next_cmd = cmd.Set(&cmd); 3820 void* next_cmd = cmd.Set(&cmd);
3821 EXPECT_EQ(static_cast<uint32>(cmds::DiscardBackbufferCHROMIUM::kCmdId), 3821 EXPECT_EQ(static_cast<uint32>(cmds::DiscardBackbufferCHROMIUM::kCmdId),
3822 cmd.header.command); 3822 cmd.header.command);
3823 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3823 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3824 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 3824 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
3825 } 3825 }
3826 3826
3827 TEST_F(GLES2FormatTest, ScheduleOverlayPlaneCHROMIUM) {
3828 cmds::ScheduleOverlayPlaneCHROMIUM& cmd =
3829 *GetBufferAs<cmds::ScheduleOverlayPlaneCHROMIUM>();
3830 void* next_cmd = cmd.Set(&cmd,
3831 static_cast<GLint>(11),
3832 static_cast<GLenum>(12),
3833 static_cast<GLuint>(13),
3834 static_cast<GLint>(14),
3835 static_cast<GLint>(15),
3836 static_cast<GLint>(16),
3837 static_cast<GLint>(17),
3838 static_cast<GLfloat>(18),
3839 static_cast<GLfloat>(19),
3840 static_cast<GLfloat>(20),
3841 static_cast<GLfloat>(21));
3842 EXPECT_EQ(static_cast<uint32>(cmds::ScheduleOverlayPlaneCHROMIUM::kCmdId),
3843 cmd.header.command);
3844 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3845 EXPECT_EQ(static_cast<GLint>(11), cmd.plane_z_order);
3846 EXPECT_EQ(static_cast<GLenum>(12), cmd.plane_transform);
3847 EXPECT_EQ(static_cast<GLuint>(13), cmd.overlay_texture_id);
3848 EXPECT_EQ(static_cast<GLint>(14), cmd.bounds_x);
3849 EXPECT_EQ(static_cast<GLint>(15), cmd.bounds_y);
3850 EXPECT_EQ(static_cast<GLint>(16), cmd.bounds_width);
3851 EXPECT_EQ(static_cast<GLint>(17), cmd.bounds_height);
3852 EXPECT_EQ(static_cast<GLfloat>(18), cmd.uv_x);
3853 EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_y);
3854 EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_width);
3855 EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_height);
3856 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
3857 }
3858
3827 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 3859 #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