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

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

Issue 885013002: gpu: Add TransformFeedback & Uniform Buffer related consts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed early returns 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 gl_->BindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3); 49 gl_->BindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3);
50 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 50 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
51 } 51 }
52 52
53 TEST_F(GLES2ImplementationTest, BindBufferRange) { 53 TEST_F(GLES2ImplementationTest, BindBufferRange) {
54 struct Cmds { 54 struct Cmds {
55 cmds::BindBufferRange cmd; 55 cmds::BindBufferRange cmd;
56 }; 56 };
57 Cmds expected; 57 Cmds expected;
58 expected.cmd.Init(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3, 4, 5); 58 expected.cmd.Init(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3, 4, 4);
59 59
60 gl_->BindBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3, 4, 5); 60 gl_->BindBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 2, 3, 4, 4);
61 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 61 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
62 } 62 }
63 63
64 TEST_F(GLES2ImplementationTest, BindFramebuffer) { 64 TEST_F(GLES2ImplementationTest, BindFramebuffer) {
65 struct Cmds { 65 struct Cmds {
66 cmds::BindFramebuffer cmd; 66 cmds::BindFramebuffer cmd;
67 }; 67 };
68 Cmds expected; 68 Cmds expected;
69 expected.cmd.Init(GL_FRAMEBUFFER, 2); 69 expected.cmd.Init(GL_FRAMEBUFFER, 2);
70 70
(...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2958 struct Cmds { 2958 struct Cmds {
2959 cmds::MatrixLoadIdentityCHROMIUM cmd; 2959 cmds::MatrixLoadIdentityCHROMIUM cmd;
2960 }; 2960 };
2961 Cmds expected; 2961 Cmds expected;
2962 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 2962 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2963 2963
2964 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 2964 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
2965 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2965 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2966 } 2966 }
2967 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 2967 #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/common/capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698