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

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

Issue 1551143002: Remove the "target" argument from CopyTextureChromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. Created 4 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 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2807 2807
2808 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); 2808 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5);
2809 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2809 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2810 } 2810 }
2811 2811
2812 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { 2812 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) {
2813 struct Cmds { 2813 struct Cmds {
2814 cmds::CopyTextureCHROMIUM cmd; 2814 cmds::CopyTextureCHROMIUM cmd;
2815 }; 2815 };
2816 Cmds expected; 2816 Cmds expected;
2817 expected.cmd.Init(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true); 2817 expected.cmd.Init(1, 2, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true);
2818 2818
2819 gl_->CopyTextureCHROMIUM(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, 2819 gl_->CopyTextureCHROMIUM(1, 2, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true);
2820 true);
2821 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2820 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2822 } 2821 }
2823 2822
2824 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) { 2823 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) {
2825 struct Cmds { 2824 struct Cmds {
2826 cmds::CopySubTextureCHROMIUM cmd; 2825 cmds::CopySubTextureCHROMIUM cmd;
2827 }; 2826 };
2828 Cmds expected; 2827 Cmds expected;
2829 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9, true, true, true); 2828 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, true, true, true);
2830 2829
2831 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9, true, true, true); 2830 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, true, true, true);
2832 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2831 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2833 } 2832 }
2834 2833
2835 TEST_F(GLES2ImplementationTest, CompressedCopyTextureCHROMIUM) { 2834 TEST_F(GLES2ImplementationTest, CompressedCopyTextureCHROMIUM) {
2836 struct Cmds { 2835 struct Cmds {
2837 cmds::CompressedCopyTextureCHROMIUM cmd; 2836 cmds::CompressedCopyTextureCHROMIUM cmd;
2838 }; 2837 };
2839 Cmds expected; 2838 Cmds expected;
2840 expected.cmd.Init(1, 2, 3); 2839 expected.cmd.Init(1, 2, 3);
2841 2840
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 struct Cmds { 3230 struct Cmds {
3232 cmds::CoverageModulationCHROMIUM cmd; 3231 cmds::CoverageModulationCHROMIUM cmd;
3233 }; 3232 };
3234 Cmds expected; 3233 Cmds expected;
3235 expected.cmd.Init(GL_RGB); 3234 expected.cmd.Init(GL_RGB);
3236 3235
3237 gl_->CoverageModulationCHROMIUM(GL_RGB); 3236 gl_->CoverageModulationCHROMIUM(GL_RGB);
3238 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3237 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3239 } 3238 }
3240 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3239 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_impl_autogen.h ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698