#include "ANGLEPerfTest.h"
#include "GLSLANG/ShaderLang.h"
#include "compiler/translator/Compiler.h"
#include "compiler/translator/InitializeGlobals.h"
#include "compiler/translator/PoolAlloc.h"
namespace
{
const char *kSimpleESSL100FragSource = …;
const char *kSimpleESSL100Id = …;
const char *kSimpleESSL300FragSource = …;
const char *kSimpleESSL300Id = …;
const char *kRealWorldESSL100FragSource = …;
const char *kRealWorldESSL100Id = …;
const char *kTrickyESSL300FragSource = …;
const char *kTrickyESSL300Id = …;
constexpr int kNumIterationsPerStep = …;
struct CompilerParameters
{ … };
bool IsPlatformAvailable(const CompilerParameters ¶m)
{ … }
struct CompilerPerfParameters final : public CompilerParameters
{ … };
std::ostream &operator<<(std::ostream &stream, const CompilerPerfParameters &p)
{ … }
class CompilerPerfTest : public ANGLEPerfTest,
public ::testing::WithParamInterface<CompilerPerfParameters>
{ … };
CompilerPerfTest::CompilerPerfTest()
: … { … }
void CompilerPerfTest::SetUp()
{ … }
void CompilerPerfTest::TearDown()
{ … }
void CompilerPerfTest::step()
{ … }
TEST_P(CompilerPerfTest, Run)
{ … }
ANGLE_INSTANTIATE_TEST(…);
}