chromium/third_party/angle/src/tests/perf_tests/CompilerPerf.cpp

//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// CompilerPerfTest:
//   Performance test for the shader translator. The test initializes the compiler once and then
//   compiles the same shader repeatedly. There are different variations of the tests using
//   different shaders.
//

#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 =;

// This shader is intended to trigger many AST transformations, particularly on the HLSL backend.
const char *kTrickyESSL300FragSource =;

const char *kTrickyESSL300Id =;

constexpr int kNumIterationsPerStep =;

struct CompilerParameters
{};

bool IsPlatformAvailable(const CompilerParameters &param)
{}

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();

}  // anonymous namespace