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

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

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 1 month 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 2771 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 struct Cmds { 2782 struct Cmds {
2783 cmds::ReleaseTexImage2DCHROMIUM cmd; 2783 cmds::ReleaseTexImage2DCHROMIUM cmd;
2784 }; 2784 };
2785 Cmds expected; 2785 Cmds expected;
2786 expected.cmd.Init(GL_TEXTURE_2D, 2); 2786 expected.cmd.Init(GL_TEXTURE_2D, 2);
2787 2787
2788 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); 2788 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2);
2789 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2789 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2790 } 2790 }
2791 2791
2792 TEST_F(GLES2ImplementationTest, CopyImageSubDataCHROMIUM) {
2793 struct Cmds {
2794 cmds::CopyImageSubDataCHROMIUM cmd;
2795 };
2796 Cmds expected;
2797 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
2798
2799 gl_->CopyImageSubDataCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
2800 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2801 }
2802
2792 TEST_F(GLES2ImplementationTest, DiscardFramebufferEXT) { 2803 TEST_F(GLES2ImplementationTest, DiscardFramebufferEXT) {
2793 GLenum data[2][1] = {{0}}; 2804 GLenum data[2][1] = {{0}};
2794 struct Cmds { 2805 struct Cmds {
2795 cmds::DiscardFramebufferEXTImmediate cmd; 2806 cmds::DiscardFramebufferEXTImmediate cmd;
2796 GLenum data[2][1]; 2807 GLenum data[2][1];
2797 }; 2808 };
2798 2809
2799 Cmds expected; 2810 Cmds expected;
2800 for (int ii = 0; ii < 2; ++ii) { 2811 for (int ii = 0; ii < 2; ++ii) {
2801 for (int jj = 0; jj < 1; ++jj) { 2812 for (int jj = 0; jj < 1; ++jj) {
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3038 struct Cmds { 3049 struct Cmds {
3039 cmds::CoverageModulationCHROMIUM cmd; 3050 cmds::CoverageModulationCHROMIUM cmd;
3040 }; 3051 };
3041 Cmds expected; 3052 Cmds expected;
3042 expected.cmd.Init(GL_RGB); 3053 expected.cmd.Init(GL_RGB);
3043 3054
3044 gl_->CoverageModulationCHROMIUM(GL_RGB); 3055 gl_->CoverageModulationCHROMIUM(GL_RGB);
3045 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3056 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3046 } 3057 }
3047 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3058 #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