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

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

Issue 1233233002: Added support for TimeStamp queries using QueryCounterEXT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed GetQueryivEXT test with QueryCounter Created 5 years, 5 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 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 cmds::DeleteQueriesEXTImmediate del; 2717 cmds::DeleteQueriesEXTImmediate del;
2718 GLuint data[2]; 2718 GLuint data[2];
2719 }; 2719 };
2720 Cmds expected; 2720 Cmds expected;
2721 expected.del.Init(arraysize(ids), &ids[0]); 2721 expected.del.Init(arraysize(ids), &ids[0]);
2722 expected.data[0] = kQueriesStartId; 2722 expected.data[0] = kQueriesStartId;
2723 expected.data[1] = kQueriesStartId + 1; 2723 expected.data[1] = kQueriesStartId + 1;
2724 gl_->DeleteQueriesEXT(arraysize(ids), &ids[0]); 2724 gl_->DeleteQueriesEXT(arraysize(ids), &ids[0]);
2725 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2725 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2726 } 2726 }
2727 // TODO(zmo): Implement unit test for QueryCounterEXT
2727 // TODO(zmo): Implement unit test for BeginQueryEXT 2728 // TODO(zmo): Implement unit test for BeginQueryEXT
2728 2729
2729 TEST_F(GLES2ImplementationTest, BeginTransformFeedback) { 2730 TEST_F(GLES2ImplementationTest, BeginTransformFeedback) {
2730 struct Cmds { 2731 struct Cmds {
2731 cmds::BeginTransformFeedback cmd; 2732 cmds::BeginTransformFeedback cmd;
2732 }; 2733 };
2733 Cmds expected; 2734 Cmds expected;
2734 expected.cmd.Init(GL_POINTS); 2735 expected.cmd.Init(GL_POINTS);
2735 2736
2736 gl_->BeginTransformFeedback(GL_POINTS); 2737 gl_->BeginTransformFeedback(GL_POINTS);
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
3256 struct Cmds { 3257 struct Cmds {
3257 cmds::StencilThenCoverStrokePathCHROMIUM cmd; 3258 cmds::StencilThenCoverStrokePathCHROMIUM cmd;
3258 }; 3259 };
3259 Cmds expected; 3260 Cmds expected;
3260 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3261 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3261 3262
3262 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); 3263 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM);
3263 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3264 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3264 } 3265 }
3265 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3266 #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/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698