#include "src/gpu/graphite/UploadBufferManager.h"
#include "include/gpu/graphite/Recording.h"
#include "include/private/base/SkAlign.h"
#include "include/private/base/SkTFitsIn.h"
#include "src/gpu/graphite/Buffer.h"
#include "src/gpu/graphite/Caps.h"
#include "src/gpu/graphite/CommandBuffer.h"
#include "src/gpu/graphite/RecordingPriv.h"
#include "src/gpu/graphite/ResourceProvider.h"
namespace skgpu::graphite {
static constexpr size_t kReusedBufferSize = …;
UploadBufferManager::UploadBufferManager(ResourceProvider* resourceProvider,
const Caps* caps)
: … { … }
UploadBufferManager::~UploadBufferManager() { … }
std::tuple<TextureUploadWriter, BindBufferInfo> UploadBufferManager::getTextureUploadWriter(
size_t requiredBytes, size_t requiredAlignment) { … }
std::tuple<void* , BindBufferInfo> UploadBufferManager::makeBindInfo(
size_t requiredBytes, size_t requiredAlignment, std::string_view label) { … }
void UploadBufferManager::transferToRecording(Recording* recording) { … }
void UploadBufferManager::transferToCommandBuffer(CommandBuffer* commandBuffer) { … }
}