#include "gpu/command_buffer/client/shared_image_pool.h"
#include "gpu/command_buffer/client/shared_image_interface.h"
namespace {
gpu::ImageInfo GetImageInfo(scoped_refptr<gpu::ClientImage> image) { … }
}
namespace gpu {
ClientImage::ClientImage(scoped_refptr<ClientSharedImage> shared_image)
: … { … }
ClientImage::~ClientImage() = default;
scoped_refptr<ClientSharedImage> ClientImage::GetSharedImage() const { … }
const SyncToken& ClientImage::GetSyncToken() const { … }
SharedImagePoolBase::SharedImagePoolBase(
const ImageInfo& image_info,
const scoped_refptr<SharedImageInterface> sii,
std::optional<uint8_t> max_pool_size)
: … { … }
SharedImagePoolBase::~SharedImagePoolBase() { … }
size_t SharedImagePoolBase::GetPoolSizeForTesting() const { … }
scoped_refptr<ClientSharedImage>
SharedImagePoolBase::CreateSharedImageInternal() { … }
scoped_refptr<ClientImage> SharedImagePoolBase::GetImageFromPoolInternal() { … }
void SharedImagePoolBase::ReleaseImageInternal(scoped_refptr<ClientImage> image,
SyncToken release_sync_token) { … }
void SharedImagePoolBase::ClearInternal() { … }
void SharedImagePoolBase::ReconfigureInternal(const ImageInfo& image_info) { … }
}