chromium/components/viz/test/test_raster_interface.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/viz/test/test_raster_interface.h"

#include <limits>
#include <utility>

#include "base/notreached.h"
#include "base/time/time.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/common/constants.h"

namespace viz {

TestRasterInterface::TestRasterInterface() {}

TestRasterInterface::~TestRasterInterface() = default;

void TestRasterInterface::Finish() {}

void TestRasterInterface::Flush() {}

GLenum TestRasterInterface::GetError() {}

GLenum TestRasterInterface::GetGraphicsResetStatusKHR() {}

void TestRasterInterface::LoseContextCHROMIUM(GLenum current, GLenum other) {}

void TestRasterInterface::GenQueriesEXT(GLsizei n, GLuint* queries) {}

void TestRasterInterface::DeleteQueriesEXT(GLsizei n, const GLuint* queries) {}
void TestRasterInterface::BeginQueryEXT(GLenum target, GLuint id) {}
void TestRasterInterface::EndQueryEXT(GLenum target) {}
void TestRasterInterface::QueryCounterEXT(GLuint id, GLenum target) {}

void TestRasterInterface::GetQueryObjectuivEXT(GLuint id,
                                               GLenum pname,
                                               GLuint* params) {}

void TestRasterInterface::GetQueryObjectui64vEXT(GLuint id,
                                                 GLenum pname,
                                                 GLuint64* params) {}

gpu::SyncToken TestRasterInterface::ScheduleImageDecode(
    base::span<const uint8_t> encoded_data,
    const gfx::Size& output_size,
    uint32_t transfer_cache_entry_id,
    const gfx::ColorSpace& target_color_space,
    bool needs_mips) {}

GLuint TestRasterInterface::CreateAndConsumeForGpuRaster(
    const gpu::Mailbox& mailbox) {}

GLuint TestRasterInterface::CreateAndConsumeForGpuRaster(
    const scoped_refptr<gpu::ClientSharedImage>& shared_image) {}

void TestRasterInterface::DeleteGpuRasterTexture(GLuint texture) {}

void TestRasterInterface::BeginGpuRaster() {}

void TestRasterInterface::EndGpuRaster() {}

void TestRasterInterface::BeginSharedImageAccessDirectCHROMIUM(GLuint texture,
                                                               GLenum mode) {}

void TestRasterInterface::EndSharedImageAccessDirectCHROMIUM(GLuint texture) {}

void TestRasterInterface::InitializeDiscardableTextureCHROMIUM(GLuint texture) {}

void TestRasterInterface::UnlockDiscardableTextureCHROMIUM(GLuint texture) {}

bool TestRasterInterface::LockDiscardableTextureCHROMIUM(GLuint texture) {}

void TestRasterInterface::GenSyncTokenCHROMIUM(GLbyte* sync_token) {}

void TestRasterInterface::GenUnverifiedSyncTokenCHROMIUM(GLbyte* sync_token) {}

void TestRasterInterface::VerifySyncTokensCHROMIUM(GLbyte** sync_tokens,
                                                   GLsizei count) {}

void TestRasterInterface::WaitSyncTokenCHROMIUM(const GLbyte* sync_token) {}

void TestRasterInterface::ShallowFlushCHROMIUM() {}

void TestRasterInterface::set_supports_gpu_memory_buffer_format(
    gfx::BufferFormat format,
    bool support) {}

bool TestRasterInterface::ReadbackImagePixels(
    const gpu::Mailbox& source_mailbox,
    const SkImageInfo& dst_info,
    GLuint dst_row_bytes,
    int src_x,
    int src_y,
    int plane_index,
    void* dst_pixels) {}
}  // namespace viz