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

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: Created 5 years, 11 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 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2554 struct Cmds { 2554 struct Cmds {
2555 cmds::CopyTextureCHROMIUM cmd; 2555 cmds::CopyTextureCHROMIUM cmd;
2556 }; 2556 };
2557 Cmds expected; 2557 Cmds expected;
2558 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); 2558 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE);
2559 2559
2560 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); 2560 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE);
2561 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2561 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2562 } 2562 }
2563 2563
2564 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) {
2565 struct Cmds {
2566 cmds::CopySubTextureCHROMIUM cmd;
2567 };
2568 Cmds expected;
2569 expected.cmd.Init(1, 2, 3, 4, 5, 6);
2570
2571 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6);
2572 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2573 }
2574
2564 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { 2575 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) {
2565 struct Cmds { 2576 struct Cmds {
2566 cmds::DrawArraysInstancedANGLE cmd; 2577 cmds::DrawArraysInstancedANGLE cmd;
2567 }; 2578 };
2568 Cmds expected; 2579 Cmds expected;
2569 expected.cmd.Init(GL_POINTS, 2, 3, 4); 2580 expected.cmd.Init(GL_POINTS, 2, 3, 4);
2570 2581
2571 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); 2582 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4);
2572 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2583 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2573 } 2584 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 struct Cmds { 2811 struct Cmds {
2801 cmds::MatrixLoadIdentityCHROMIUM cmd; 2812 cmds::MatrixLoadIdentityCHROMIUM cmd;
2802 }; 2813 };
2803 Cmds expected; 2814 Cmds expected;
2804 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 2815 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2805 2816
2806 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 2817 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
2807 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2818 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2808 } 2819 }
2809 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 2820 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698