#include <gtest/gtest.h>
#include <stdio.h>
#include <sstream>
#include "../perf_tests/third_party/perf/perf_result_reporter.h"
#include "ANGLEPerfTestArgs.h"
#include "common/platform.h"
#include "common/string_utils.h"
#include "common/system_utils.h"
#include "test_utils/angle_test_configs.h"
#include "test_utils/angle_test_instantiate.h"
#include "util/test_utils.h"
usingnamespaceangle;
namespace
{
struct BenchmarkInfo
{ … };
constexpr BenchmarkInfo kBenchmarks[] = …;
struct GLMark2TestParams : public PlatformParameters
{ … };
std::ostream &operator<<(std::ostream &os, const GLMark2TestParams ¶ms)
{ … }
class GLMark2Benchmark : public testing::TestWithParam<GLMark2TestParams>
{ … };
TEST_P(GLMark2Benchmark, Run)
{ … }
GLMark2TestParams CombineEGLPlatform(const GLMark2TestParams &in, EGLPlatformParameters eglParams)
{ … }
GLMark2TestParams CombineInfo(const GLMark2TestParams &in, BenchmarkInfo info)
{ … }
usingnamespaceegl_platform;
std::vector<GLMark2TestParams> gTestsWithInfo = …;
std::vector<EGLPlatformParameters> gEGLPlatforms = …;
std::vector<GLMark2TestParams> gTestsWithPlatform = …;
ANGLE_INSTANTIATE_TEST_ARRAY(…);
}