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

Unified Diff: client/deps/glbench/src/main.cc

Issue 2873023: Got rid of glxinfo. (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: strip board id 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/site_tests/graphics_GLBench/graphics_GLBench.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/main.cc
diff --git a/client/deps/glbench/src/main.cc b/client/deps/glbench/src/main.cc
index d77748105d633764db69d08a4a6d91d916db2d4c..3e7d04a7577f538ad24105b3c9551f42e03a3012 100644
--- a/client/deps/glbench/src/main.cc
+++ b/client/deps/glbench/src/main.cc
@@ -21,6 +21,7 @@ using std::vector;
DEFINE_int32(duration, 0, "run tests in a loop for at least this many seconds");
DEFINE_string(tests, "", "colon-separated list of tests to run; "
"all tests if omitted");
+DEFINE_bool(get_board_id, false, "return the board id for checksums");
bool test_is_enabled(glbench::TestBase* test,
@@ -48,6 +49,13 @@ int main(int argc, char *argv[]) {
return 1;
}
+ if (FLAGS_get_board_id) {
+ InitContext();
+ printf("%s / %s\n", glGetString(GL_VENDOR), glGetString(GL_RENDERER));
+ DestroyContext();
+ return 0;
+ }
+
vector<string> enabled_tests;
SplitString(FLAGS_tests, ':', &enabled_tests);
« no previous file with comments | « no previous file | client/site_tests/graphics_GLBench/graphics_GLBench.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698