• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // ANGLEPerfTestArgs.h:
7 //   Command line arguments for angle_perftests.
8 //
9 
10 #ifndef TESTS_PERF_TESTS_ANGLE_PERF_TEST_ARGS_H_
11 #define TESTS_PERF_TESTS_ANGLE_PERF_TEST_ARGS_H_
12 
13 #include "common/Optional.h"
14 
15 namespace angle
16 {
17 extern bool gCalibration;
18 extern int gStepsPerTrial;
19 extern int gMaxStepsPerformed;
20 extern bool gEnableTrace;
21 extern const char *gTraceFile;
22 extern const char *gScreenShotDir;
23 extern int gScreenShotFrame;
24 extern bool gVerboseLogging;
25 extern int gWarmupLoops;
26 extern double gCalibrationTimeSeconds;
27 extern double gMaxTrialTimeSeconds;
28 extern int gTestTrials;
29 extern bool gNoFinish;
30 extern bool gEnableAllTraceTests;
31 extern bool gRetraceMode;
32 extern bool gMinimizeGPUWork;
33 
OneFrame()34 inline bool OneFrame()
35 {
36     return gStepsPerTrial == 1 || gMaxStepsPerformed == 1;
37 }
38 }  // namespace angle
39 
40 #endif  // TESTS_PERF_TESTS_ANGLE_PERF_TEST_ARGS_H_
41