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

Side by Side Diff: client/deps/glbench/src/attributefetchtest.cc

Issue 2794002: Added gflags switches: duration, tests, save, out. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: addressed comments Created 10 years, 6 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
« no previous file with comments | « no previous file | client/deps/glbench/src/cleartest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 #include "main.h" 5 #include "main.h"
6 #include "utils.h" 6 #include "utils.h"
7 #include "testbase.h" 7 #include "testbase.h"
8 8
9 9
10 namespace glbench { 10 namespace glbench {
11 11
12 class AttributeFetchShaderTest : public DrawElementsTestFunc { 12 class AttributeFetchShaderTest : public DrawElementsTestFunc {
13 public: 13 public:
14 AttributeFetchShaderTest() {} 14 AttributeFetchShaderTest() {}
15 virtual ~AttributeFetchShaderTest() {} 15 virtual ~AttributeFetchShaderTest() {}
16 virtual bool Run(); 16 virtual bool Run();
17 virtual const char* Name() const { return "attribute_fetch_shader"; }
17 18
18 private: 19 private:
19 DISALLOW_COPY_AND_ASSIGN(AttributeFetchShaderTest); 20 DISALLOW_COPY_AND_ASSIGN(AttributeFetchShaderTest);
20 }; 21 };
21 22
22 23
23 const char *simple_vertex_shader = 24 const char *simple_vertex_shader =
24 "attribute vec4 c1;" 25 "attribute vec4 c1;"
25 "void main() {" 26 "void main() {"
26 " gl_Position = c1;" 27 " gl_Position = c1;"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 glDeleteBuffers(1, &vertex_buffer); 140 glDeleteBuffers(1, &vertex_buffer);
140 delete[] vertices; 141 delete[] vertices;
141 return true; 142 return true;
142 } 143 }
143 144
144 TestBase* GetAttributeFetchShaderTest() { 145 TestBase* GetAttributeFetchShaderTest() {
145 return new AttributeFetchShaderTest(); 146 return new AttributeFetchShaderTest();
146 } 147 }
147 148
148 } // namespace glbench 149 } // namespace glbench
OLDNEW
« no previous file with comments | « no previous file | client/deps/glbench/src/cleartest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698