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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch 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 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2742 2742
2743 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); 2743 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5);
2744 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2744 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2745 } 2745 }
2746 2746
2747 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { 2747 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) {
2748 struct Cmds { 2748 struct Cmds {
2749 cmds::CopyTextureCHROMIUM cmd; 2749 cmds::CopyTextureCHROMIUM cmd;
2750 }; 2750 };
2751 Cmds expected; 2751 Cmds expected;
2752 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); 2752 expected.cmd.Init(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE);
2753 2753
2754 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); 2754 gl_->CopyTextureCHROMIUM(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE);
2755 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2755 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2756 } 2756 }
2757 2757
2758 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) {
2759 struct Cmds {
2760 cmds::CopySubTextureCHROMIUM cmd;
2761 };
2762 Cmds expected;
2763 expected.cmd.Init(1, 2, 3, 4, 5);
2764
2765 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5);
2766 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2767 }
2768
2758 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { 2769 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) {
2759 struct Cmds { 2770 struct Cmds {
2760 cmds::DrawArraysInstancedANGLE cmd; 2771 cmds::DrawArraysInstancedANGLE cmd;
2761 }; 2772 };
2762 Cmds expected; 2773 Cmds expected;
2763 expected.cmd.Init(GL_POINTS, 2, 3, 4); 2774 expected.cmd.Init(GL_POINTS, 2, 3, 4);
2764 2775
2765 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); 2776 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4);
2766 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2777 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2767 } 2778 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 struct Cmds { 3005 struct Cmds {
2995 cmds::MatrixLoadIdentityCHROMIUM cmd; 3006 cmds::MatrixLoadIdentityCHROMIUM cmd;
2996 }; 3007 };
2997 Cmds expected; 3008 Cmds expected;
2998 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 3009 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2999 3010
3000 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 3011 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
3001 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3012 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3002 } 3013 }
3003 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3014 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698