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

//
// Copyright 2017 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.
//
// BlitFramebufferPerf:
//   Performance tests for glBlitFramebuffer in ES3. Includes tests for
//   color, depth, and stencil blit, as well as the mutlisample versions.
//   The test works by clearing a framebuffer, then blitting it to a second.

#include "ANGLEPerfTest.h"

#include "util/gles_loader_autogen.h"

namespace
{
constexpr unsigned int kIterationsPerStep =;

enum class BufferType
{};

const char *BufferTypeString(BufferType type)
{}

GLbitfield BufferTypeMask(BufferType type)
{}

GLenum BufferTypeFormat(BufferType type)
{}

GLenum BufferTypeAttachment(BufferType type)
{}

struct BlitFramebufferParams final : public RenderTestParams
{};

std::ostream &operator<<(std::ostream &os, const BlitFramebufferParams &params)
{}

class BlitFramebufferPerf : public ANGLERenderTest,
                            public ::testing::WithParamInterface<BlitFramebufferParams>
{};

void BlitFramebufferPerf::initializeBenchmark()
{}

void BlitFramebufferPerf::destroyBenchmark()
{}

void BlitFramebufferPerf::drawBenchmark()
{}

TEST_P(BlitFramebufferPerf, Run)
{}

BlitFramebufferParams Vulkan(BufferType type, unsigned int samples)
{}
BlitFramebufferParams D3D11(BufferType type, unsigned int samples)
{}
}  // anonymous namespace

// TODO(jmadill): Programatically generate these combinations.
ANGLE_INSTANTIATE_TEST();

// This test suite is not instantiated on some OSes.
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();