#include "ANGLEPerfTest.h"
#include <iostream>
#include <random>
#include <sstream>
#include "test_utils/gl_raii.h"
#include "util/shader_utils.h"
usingnamespaceangle;
namespace
{
constexpr unsigned int kIterationsPerStep = …;
enum class PreRotation
{ … };
struct PreRotationParams final : public RenderTestParams
{ … };
std::ostream &operator<<(std::ostream &os, const PreRotationParams ¶ms)
{ … }
std::string PreRotationParams::story() const
{ … }
class PreRotationBenchmark : public ANGLERenderTest,
public ::testing::WithParamInterface<PreRotationParams>
{ … };
PreRotationBenchmark::PreRotationBenchmark() : … { … }
void PreRotationBenchmark::initializeBenchmark()
{ … }
void PreRotationBenchmark::destroyBenchmark()
{ … }
void PreRotationBenchmark::drawBenchmark()
{ … }
PreRotationParams VulkanParams(PreRotation preRotation)
{ … }
}
TEST_P(PreRotationBenchmark, Run)
{ … }
usingnamespaceparams;
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(…);
ANGLE_INSTANTIATE_TEST(…);