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

//
// Copyright 2023 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.
//
// RGBImageAllocationBenchmark:
//   GL_RGB8 image allocation and loading using GL_UNSIGNED_BYTE.
//

#include "ANGLEPerfTest.h"

#include <iostream>
#include <random>
#include <sstream>

#include "test_utils/gl_raii.h"
#include "util/shader_utils.h"

usingnamespaceangle;

namespace
{
struct RGBImageAllocationParams final : public RenderTestParams
{};

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

std::string RGBImageAllocationParams::story() const
{}

struct RGBColor
{};

class RGBImageAllocationBenchmark : public ANGLERenderTest,
                                    public ::testing::WithParamInterface<RGBImageAllocationParams>
{};

RGBImageAllocationBenchmark::RGBImageAllocationBenchmark()
    :{}

void RGBImageAllocationBenchmark::initializeBenchmark()
{}

void RGBImageAllocationBenchmark::destroyBenchmark()
{}

void RGBImageAllocationBenchmark::drawBenchmark()
{}

RGBImageAllocationParams VulkanParams(bool aligned, size_t textureSize)
{}

RGBImageAllocationParams OpenGLOrGLESParams(bool aligned, size_t textureSize)
{}

RGBImageAllocationParams MetalParams(bool aligned, size_t textureSize)
{}

RGBImageAllocationParams D3D11Params(bool aligned, size_t textureSize)
{}

}  // anonymous namespace

// Runs the test to measure the performance of RGB8 image allocation and loading.
TEST_P(RGBImageAllocationBenchmark, Run)
{}

usingnamespaceparams;

ANGLE_INSTANTIATE_TEST();