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

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

Issue 1887533002: Add plumbing to command buffer for CALayer min and mag filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix parameter ordering. Created 4 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
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 4765 matching lines...) Expand 10 before | Expand all | Expand 10 after
4776 EXPECT_EQ(static_cast<GLfloat>(18), cmd.uv_x); 4776 EXPECT_EQ(static_cast<GLfloat>(18), cmd.uv_x);
4777 EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_y); 4777 EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_y);
4778 EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_width); 4778 EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_width);
4779 EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_height); 4779 EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_height);
4780 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 4780 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
4781 } 4781 }
4782 4782
4783 TEST_F(GLES2FormatTest, ScheduleCALayerCHROMIUM) { 4783 TEST_F(GLES2FormatTest, ScheduleCALayerCHROMIUM) {
4784 cmds::ScheduleCALayerCHROMIUM& cmd = 4784 cmds::ScheduleCALayerCHROMIUM& cmd =
4785 *GetBufferAs<cmds::ScheduleCALayerCHROMIUM>(); 4785 *GetBufferAs<cmds::ScheduleCALayerCHROMIUM>();
4786 void* next_cmd = 4786 void* next_cmd = cmd.Set(&cmd, static_cast<GLuint>(11),
4787 cmd.Set(&cmd, static_cast<GLuint>(11), static_cast<GLfloat>(12), 4787 static_cast<GLfloat>(12), static_cast<GLuint>(13),
4788 static_cast<GLuint>(13), static_cast<GLuint>(14), 4788 static_cast<GLuint>(14), static_cast<GLboolean>(15),
4789 static_cast<GLboolean>(15), static_cast<GLint>(16), 4789 static_cast<GLint>(16), static_cast<GLuint>(17),
4790 static_cast<GLuint>(17), static_cast<GLuint>(18)); 4790 static_cast<GLuint>(18), static_cast<GLuint>(19));
4791 EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleCALayerCHROMIUM::kCmdId), 4791 EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleCALayerCHROMIUM::kCmdId),
4792 cmd.header.command); 4792 cmd.header.command);
4793 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 4793 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
4794 EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id); 4794 EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id);
4795 EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity); 4795 EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity);
4796 EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color); 4796 EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color);
4797 EXPECT_EQ(static_cast<GLuint>(14), cmd.edge_aa_mask); 4797 EXPECT_EQ(static_cast<GLuint>(14), cmd.edge_aa_mask);
4798 EXPECT_EQ(static_cast<GLboolean>(15), cmd.is_clipped); 4798 EXPECT_EQ(static_cast<GLboolean>(15), cmd.is_clipped);
4799 EXPECT_EQ(static_cast<GLint>(16), cmd.sorting_context_id); 4799 EXPECT_EQ(static_cast<GLint>(16), cmd.sorting_context_id);
4800 EXPECT_EQ(static_cast<GLuint>(17), cmd.shm_id); 4800 EXPECT_EQ(static_cast<GLuint>(17), cmd.filter);
4801 EXPECT_EQ(static_cast<GLuint>(18), cmd.shm_offset); 4801 EXPECT_EQ(static_cast<GLuint>(18), cmd.shm_id);
4802 EXPECT_EQ(static_cast<GLuint>(19), cmd.shm_offset);
4802 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 4803 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
4803 } 4804 }
4804 4805
4805 TEST_F(GLES2FormatTest, CommitOverlayPlanesCHROMIUM) { 4806 TEST_F(GLES2FormatTest, CommitOverlayPlanesCHROMIUM) {
4806 cmds::CommitOverlayPlanesCHROMIUM& cmd = 4807 cmds::CommitOverlayPlanesCHROMIUM& cmd =
4807 *GetBufferAs<cmds::CommitOverlayPlanesCHROMIUM>(); 4808 *GetBufferAs<cmds::CommitOverlayPlanesCHROMIUM>();
4808 void* next_cmd = cmd.Set(&cmd); 4809 void* next_cmd = cmd.Set(&cmd);
4809 EXPECT_EQ(static_cast<uint32_t>(cmds::CommitOverlayPlanesCHROMIUM::kCmdId), 4810 EXPECT_EQ(static_cast<uint32_t>(cmds::CommitOverlayPlanesCHROMIUM::kCmdId),
4810 cmd.header.command); 4811 cmd.header.command);
4811 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 4812 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
5360 cmd.header.command); 5361 cmd.header.command);
5361 EXPECT_EQ(sizeof(cmd) + RoundSizeToMultipleOfEntries(sizeof(data)), 5362 EXPECT_EQ(sizeof(cmd) + RoundSizeToMultipleOfEntries(sizeof(data)),
5362 cmd.header.size * 4u); 5363 cmd.header.size * 4u);
5363 EXPECT_EQ(static_cast<GLint>(11), cmd.location); 5364 EXPECT_EQ(static_cast<GLint>(11), cmd.location);
5364 EXPECT_EQ(static_cast<GLboolean>(12), cmd.transpose); 5365 EXPECT_EQ(static_cast<GLboolean>(12), cmd.transpose);
5365 CheckBytesWrittenMatchesExpectedSize( 5366 CheckBytesWrittenMatchesExpectedSize(
5366 next_cmd, sizeof(cmd) + RoundSizeToMultipleOfEntries(sizeof(data))); 5367 next_cmd, sizeof(cmd) + RoundSizeToMultipleOfEntries(sizeof(data)));
5367 } 5368 }
5368 5369
5369 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 5370 #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/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698