#include "ANGLEPerfTestArgs.h"
#include <string.h>
#include <sstream>
#include "common/debug.h"
#include "util/test_utils.h"
namespace angle
{
constexpr int kDefaultStepsPerTrial = …;
constexpr int kDefaultTrialTimeSeconds = …;
constexpr int kDefaultTestTrials = …;
int gStepsPerTrial = …;
int gMaxStepsPerformed = …;
bool gEnableTrace = …;
const char *gTraceFile = …;
const char *gScreenshotDir = …;
const char *gRenderTestOutputDir = …;
bool gSaveScreenshots = …;
int gScreenshotFrame = …;
bool gVerboseLogging = …;
bool gWarmup = …;
int gTrialTimeSeconds = …;
int gTestTrials = …;
bool gNoFinish = …;
bool gRetraceMode = …;
bool gMinimizeGPUWork = …;
bool gTraceTestValidation = …;
const char *gPerfCounters = …;
const char *gUseANGLE = …;
const char *gUseGL = …;
bool gOffscreen = …;
bool gVsync = …;
bool gRunToKeyFrame = …;
int gFixedTestTime = …;
int gFixedTestTimeWithWarmup = …;
const char *gTraceInterpreter = …;
const char *gPrintExtensionsToFile = …;
const char *gRequestedExtensions = …;
bool gIncludeInactiveResources = …;
namespace
{
bool PerfTestArg(int *argc, char **argv, int argIndex)
{ … }
bool TraceTestArg(int *argc, char **argv, int argIndex)
{ … }
}
}
usingnamespaceangle;
void ANGLEProcessPerfTestArgs(int *argc, char **argv)
{ … }
void ANGLEProcessTraceTestArgs(int *argc, char **argv)
{ … }