OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |