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

Side by Side Diff: client/deps/glbench/src.orig/main.h

Issue 870005: Move gl_Bench into a dep so that it can be re-used among tests (Closed)
Patch Set: Created 10 years, 9 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.orig/image.yuv ('k') | client/deps/glbench/src.orig/main.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 #ifndef BENCH_GL_MAIN_H_ 5 #ifndef BENCH_GL_MAIN_H_
6 #define BENCH_GL_MAIN_H_ 6 #define BENCH_GL_MAIN_H_
7 7
8 #include <sys/time.h> 8 #include <sys/time.h>
9 9
10 #ifdef USE_GLES 10 #ifdef USE_GLES
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // that: 68 // that:
69 // time it took to run x iterations = slope * x + bias 69 // time it took to run x iterations = slope * x + bias
70 // Returns false if one iteration of the test takes longer than 70 // Returns false if one iteration of the test takes longer than
71 // MAX_ITERATION_LENGTH_MS. The test is then assumed too slow to provide 71 // MAX_ITERATION_LENGTH_MS. The test is then assumed too slow to provide
72 // meaningful results. 72 // meaningful results.
73 bool Bench(BenchFunc func, float *slope, int64_t *bias); 73 bool Bench(BenchFunc func, float *slope, int64_t *bias);
74 74
75 void *MmapFile(const char *name, size_t *length); 75 void *MmapFile(const char *name, size_t *length);
76 76
77 #endif // BENCH_GL_MAIN_H_ 77 #endif // BENCH_GL_MAIN_H_
OLDNEW
« no previous file with comments | « client/deps/glbench/src.orig/image.yuv ('k') | client/deps/glbench/src.orig/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698