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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 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 3026 matching lines...) Expand 10 before | Expand all | Expand 10 after
3037 cmds::LoseContextCHROMIUM cmd; 3037 cmds::LoseContextCHROMIUM cmd;
3038 }; 3038 };
3039 Cmds expected; 3039 Cmds expected;
3040 expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_GUILTY_CONTEXT_RESET_ARB); 3040 expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_GUILTY_CONTEXT_RESET_ARB);
3041 3041
3042 gl_->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB, 3042 gl_->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB,
3043 GL_GUILTY_CONTEXT_RESET_ARB); 3043 GL_GUILTY_CONTEXT_RESET_ARB);
3044 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3044 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3045 } 3045 }
3046 3046
3047 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) {
3048 struct Cmds {
3049 cmds::WaitSyncPointCHROMIUM cmd;
3050 };
3051 Cmds expected;
3052 expected.cmd.Init(1);
3053
3054 gl_->WaitSyncPointCHROMIUM(1);
3055 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3056 }
3057
3058 TEST_F(GLES2ImplementationTest, DrawBuffersEXT) { 3047 TEST_F(GLES2ImplementationTest, DrawBuffersEXT) {
3059 GLenum data[1][1] = {{0}}; 3048 GLenum data[1][1] = {{0}};
3060 struct Cmds { 3049 struct Cmds {
3061 cmds::DrawBuffersEXTImmediate cmd; 3050 cmds::DrawBuffersEXTImmediate cmd;
3062 GLenum data[1][1]; 3051 GLenum data[1][1];
3063 }; 3052 };
3064 3053
3065 Cmds expected; 3054 Cmds expected;
3066 for (int ii = 0; ii < 1; ++ii) { 3055 for (int ii = 0; ii < 1; ++ii) {
3067 for (int jj = 0; jj < 1; ++jj) { 3056 for (int jj = 0; jj < 1; ++jj) {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
3245 struct Cmds { 3234 struct Cmds {
3246 cmds::StencilThenCoverStrokePathCHROMIUM cmd; 3235 cmds::StencilThenCoverStrokePathCHROMIUM cmd;
3247 }; 3236 };
3248 Cmds expected; 3237 Cmds expected;
3249 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3238 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3250 3239
3251 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3240 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3252 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3241 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3253 } 3242 }
3254 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3243 #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/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698