chromium/third_party/skia/src/gpu/ganesh/GrGpuBuffer.cpp

/*
 * Copyright 2019 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/gpu/ganesh/GrGpuBuffer.h"

#include "include/private/base/SkAlign.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTo.h"
#include "src/gpu/ResourceKey.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrGpu.h"

#include <cstdint>

GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type,
                         GrAccessPattern pattern,
                         std::string_view label)
        :{}

void* GrGpuBuffer::map() {}

void GrGpuBuffer::unmap() {}

bool GrGpuBuffer::isMapped() const {}

bool GrGpuBuffer::clearToZero() {}

bool GrGpuBuffer::updateData(const void* src, size_t offset, size_t size, bool preserve) {}

void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size,
                                                    GrGpuBufferType intendedType,
                                                    skgpu::ScratchKey* key) {}

void GrGpuBuffer::computeScratchKey(skgpu::ScratchKey* key) const {}