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

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

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase, add bogus spec text 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 5260 matching lines...) Expand 10 before | Expand all | Expand 10 after
5271 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 5271 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
5272 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); 5272 EXPECT_EQ(static_cast<GLuint>(11), cmd.program);
5273 EXPECT_EQ(static_cast<GLint>(12), cmd.location); 5273 EXPECT_EQ(static_cast<GLint>(12), cmd.location);
5274 EXPECT_EQ(static_cast<GLenum>(13), cmd.genMode); 5274 EXPECT_EQ(static_cast<GLenum>(13), cmd.genMode);
5275 EXPECT_EQ(static_cast<GLint>(14), cmd.components); 5275 EXPECT_EQ(static_cast<GLint>(14), cmd.components);
5276 EXPECT_EQ(static_cast<uint32_t>(15), cmd.coeffs_shm_id); 5276 EXPECT_EQ(static_cast<uint32_t>(15), cmd.coeffs_shm_id);
5277 EXPECT_EQ(static_cast<uint32_t>(16), cmd.coeffs_shm_offset); 5277 EXPECT_EQ(static_cast<uint32_t>(16), cmd.coeffs_shm_offset);
5278 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 5278 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
5279 } 5279 }
5280 5280
5281 TEST_F(GLES2FormatTest, CoverageModulationCHROMIUM) {
5282 cmds::CoverageModulationCHROMIUM& cmd =
5283 *GetBufferAs<cmds::CoverageModulationCHROMIUM>();
5284 void* next_cmd = cmd.Set(&cmd, static_cast<GLenum>(11));
5285 EXPECT_EQ(static_cast<uint32_t>(cmds::CoverageModulationCHROMIUM::kCmdId),
5286 cmd.header.command);
5287 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
5288 EXPECT_EQ(static_cast<GLenum>(11), cmd.components);
5289 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
5290 }
5291
5281 TEST_F(GLES2FormatTest, BlendBarrierKHR) { 5292 TEST_F(GLES2FormatTest, BlendBarrierKHR) {
5282 cmds::BlendBarrierKHR& cmd = *GetBufferAs<cmds::BlendBarrierKHR>(); 5293 cmds::BlendBarrierKHR& cmd = *GetBufferAs<cmds::BlendBarrierKHR>();
5283 void* next_cmd = cmd.Set(&cmd); 5294 void* next_cmd = cmd.Set(&cmd);
5284 EXPECT_EQ(static_cast<uint32_t>(cmds::BlendBarrierKHR::kCmdId), 5295 EXPECT_EQ(static_cast<uint32_t>(cmds::BlendBarrierKHR::kCmdId),
5285 cmd.header.command); 5296 cmd.header.command);
5286 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 5297 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
5287 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 5298 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
5288 } 5299 }
5289 5300
5290 TEST_F(GLES2FormatTest, ApplyScreenSpaceAntialiasingCHROMIUM) { 5301 TEST_F(GLES2FormatTest, ApplyScreenSpaceAntialiasingCHROMIUM) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
5338 cmd.header.command); 5349 cmd.header.command);
5339 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 5350 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
5340 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); 5351 EXPECT_EQ(static_cast<GLuint>(11), cmd.program);
5341 EXPECT_EQ(static_cast<uint32_t>(12), cmd.name_bucket_id); 5352 EXPECT_EQ(static_cast<uint32_t>(12), cmd.name_bucket_id);
5342 EXPECT_EQ(static_cast<uint32_t>(13), cmd.index_shm_id); 5353 EXPECT_EQ(static_cast<uint32_t>(13), cmd.index_shm_id);
5343 EXPECT_EQ(static_cast<uint32_t>(14), cmd.index_shm_offset); 5354 EXPECT_EQ(static_cast<uint32_t>(14), cmd.index_shm_offset);
5344 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); 5355 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
5345 } 5356 }
5346 5357
5347 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 5358 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698