#include "ANGLEPerfTest.h"
#include <iostream>
#include <random>
#include <sstream>
#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
#include "util/random_utils.h"
#include "util/shader_utils.h"
usingnamespaceangle;
namespace
{
constexpr unsigned int kIterationsPerStep = …;
struct ClearParams final : public RenderTestParams
{ … };
std::ostream &operator<<(std::ostream &os, const ClearParams ¶ms)
{ … }
std::string ClearParams::story() const
{ … }
class ClearBenchmark : public ANGLERenderTest, public ::testing::WithParamInterface<ClearParams>
{ … };
ClearBenchmark::ClearBenchmark() : … { … }
void ClearBenchmark::initializeBenchmark()
{ … }
void ClearBenchmark::initShaders()
{ … }
void ClearBenchmark::destroyBenchmark()
{ … }
void ClearBenchmark::drawBenchmark()
{ … }
ClearParams D3D11Params()
{ … }
ClearParams MetalParams()
{ … }
ClearParams OpenGLOrGLESParams()
{ … }
ClearParams VulkanParams(bool emulatedFormat, bool scissoredClear)
{ … }
}
TEST_P(ClearBenchmark, Run)
{ … }
ANGLE_INSTANTIATE_TEST(…);