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

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

Issue 864513004: gpu: introduce glCopySubTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address concerns of owners Created 5 years, 10 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 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 struct Cmds { 2726 struct Cmds {
2727 cmds::CopyTextureCHROMIUM cmd; 2727 cmds::CopyTextureCHROMIUM cmd;
2728 }; 2728 };
2729 Cmds expected; 2729 Cmds expected;
2730 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); 2730 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE);
2731 2731
2732 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); 2732 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE);
2733 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2733 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2734 } 2734 }
2735 2735
2736 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) {
2737 struct Cmds {
2738 cmds::CopySubTextureCHROMIUM cmd;
2739 };
2740 Cmds expected;
2741 expected.cmd.Init(1, 2, 3, 4, 5, 6);
2742
2743 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6);
2744 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2745 }
2746
2736 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { 2747 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) {
2737 struct Cmds { 2748 struct Cmds {
2738 cmds::DrawArraysInstancedANGLE cmd; 2749 cmds::DrawArraysInstancedANGLE cmd;
2739 }; 2750 };
2740 Cmds expected; 2751 Cmds expected;
2741 expected.cmd.Init(GL_POINTS, 2, 3, 4); 2752 expected.cmd.Init(GL_POINTS, 2, 3, 4);
2742 2753
2743 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); 2754 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4);
2744 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2755 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2745 } 2756 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
2972 struct Cmds { 2983 struct Cmds {
2973 cmds::MatrixLoadIdentityCHROMIUM cmd; 2984 cmds::MatrixLoadIdentityCHROMIUM cmd;
2974 }; 2985 };
2975 Cmds expected; 2986 Cmds expected;
2976 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 2987 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2977 2988
2978 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 2989 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
2979 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2990 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2980 } 2991 }
2981 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 2992 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698