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

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: 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 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2910 struct Cmds { 2910 struct Cmds {
2911 cmds::MatrixLoadIdentityCHROMIUM cmd; 2911 cmds::MatrixLoadIdentityCHROMIUM cmd;
2912 }; 2912 };
2913 Cmds expected; 2913 Cmds expected;
2914 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 2914 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2915 2915
2916 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 2916 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
2917 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2917 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2918 } 2918 }
2919 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 2919 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698