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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h

Issue 954183006: Add glDrawRangeElements to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 TEST_F(GLES2ImplementationTest, DrawArrays) { 549 TEST_F(GLES2ImplementationTest, DrawArrays) {
550 struct Cmds { 550 struct Cmds {
551 cmds::DrawArrays cmd; 551 cmds::DrawArrays cmd;
552 }; 552 };
553 Cmds expected; 553 Cmds expected;
554 expected.cmd.Init(GL_POINTS, 2, 3); 554 expected.cmd.Init(GL_POINTS, 2, 3);
555 555
556 gl_->DrawArrays(GL_POINTS, 2, 3); 556 gl_->DrawArrays(GL_POINTS, 2, 3);
557 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 557 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
558 } 558 }
559 // TODO(zmo): Implement unit test for DrawRangeElements
559 560
560 TEST_F(GLES2ImplementationTest, EnableVertexAttribArray) { 561 TEST_F(GLES2ImplementationTest, EnableVertexAttribArray) {
561 struct Cmds { 562 struct Cmds {
562 cmds::EnableVertexAttribArray cmd; 563 cmds::EnableVertexAttribArray cmd;
563 }; 564 };
564 Cmds expected; 565 Cmds expected;
565 expected.cmd.Init(1); 566 expected.cmd.Init(1);
566 567
567 gl_->EnableVertexAttribArray(1); 568 gl_->EnableVertexAttribArray(1);
568 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 569 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
3006 struct Cmds { 3007 struct Cmds {
3007 cmds::MatrixLoadIdentityCHROMIUM cmd; 3008 cmds::MatrixLoadIdentityCHROMIUM cmd;
3008 }; 3009 };
3009 Cmds expected; 3010 Cmds expected;
3010 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 3011 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
3011 3012
3012 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 3013 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
3013 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3014 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3014 } 3015 }
3015 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3016 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698