#include "gpu/command_buffer/client/client_transfer_cache.h"
namespace gpu {
ClientTransferCache::ClientTransferCache(Client* client) : … { … }
ClientTransferCache::~ClientTransferCache() = default;
void* ClientTransferCache::MapEntry(MappedMemoryManager* mapped_memory,
uint32_t size) { … }
void* ClientTransferCache::MapTransferBufferEntry(
TransferBufferInterface* transfer_buffer,
uint32_t size) { … }
void ClientTransferCache::UnmapAndCreateEntry(uint32_t type, uint32_t id) { … }
void ClientTransferCache::AddTransferCacheEntry(uint32_t type,
uint32_t id,
uint32_t shm_id,
uint32_t shm_offset,
uint32_t size) { … }
void ClientTransferCache::StartTransferCacheEntry(
uint32_t type,
uint32_t id,
base::OnceCallback<void(ClientDiscardableHandle)> create_entry_cb) { … }
ClientDiscardableHandle ClientTransferCache::CreateDiscardableHandle(
const EntryKey& key) { … }
bool ClientTransferCache::LockEntry(uint32_t type, uint32_t id) { … }
void ClientTransferCache::UnlockEntries(
const std::vector<std::pair<uint32_t, uint32_t>>& entries) { … }
void ClientTransferCache::DeleteEntry(uint32_t type, uint32_t id) { … }
ClientDiscardableHandle::Id ClientTransferCache::FindDiscardableHandleId(
const EntryKey& key) { … }
}