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

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

Issue 3134033: Added reference images for glbench. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Corrected and reformatted README file. Created 10 years, 3 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 | « client/deps/glbench/src/checksums ('k') | no next file » | 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 <gflags/gflags.h> 5 #include <gflags/gflags.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 int main(int argc, char *argv[]) { 43 int main(int argc, char *argv[]) {
44 SetBasePathFromArgv0(argv[0], "src"); 44 SetBasePathFromArgv0(argv[0], "src");
45 google::ParseCommandLineFlags(&argc, &argv, true); 45 google::ParseCommandLineFlags(&argc, &argv, true);
46 if (!Init()) { 46 if (!Init()) {
47 printf("# Failed to initialize.\n"); 47 printf("# Failed to initialize.\n");
48 return 1; 48 return 1;
49 } 49 }
50 50
51 InitContext(); 51 InitContext();
52 printf("# board_id: %s / %s\n", 52 printf("# board_id: %s - %s\n",
53 glGetString(GL_VENDOR), glGetString(GL_RENDERER)); 53 glGetString(GL_VENDOR), glGetString(GL_RENDERER));
54 DestroyContext(); 54 DestroyContext();
55 55
56 vector<string> enabled_tests; 56 vector<string> enabled_tests;
57 SplitString(FLAGS_tests, ':', &enabled_tests); 57 SplitString(FLAGS_tests, ':', &enabled_tests);
58 58
59 glbench::TestBase* tests[] = { 59 glbench::TestBase* tests[] = {
60 glbench::GetSwapTest(), 60 glbench::GetSwapTest(),
61 glbench::GetClearTest(), 61 glbench::GetClearTest(),
62 glbench::GetFillRateTest(), 62 glbench::GetFillRateTest(),
(...skipping 22 matching lines...) Expand all
85 } 85 }
86 } while (GetUTime() < done); 86 } while (GetUTime() < done);
87 87
88 for (unsigned int i = 0; i < arraysize(tests); i++) { 88 for (unsigned int i = 0; i < arraysize(tests); i++) {
89 delete tests[i]; 89 delete tests[i];
90 tests[i] = NULL; 90 tests[i] = NULL;
91 } 91 }
92 92
93 return 0; 93 return 0;
94 } 94 }
OLDNEW
« no previous file with comments | « client/deps/glbench/src/checksums ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698