#include "src/gpu/graphite/ScratchResourceManager.h"
#include "src/gpu/graphite/Resource.h"
#include "src/gpu/graphite/ResourceProvider.h"
#include "src/gpu/graphite/Texture.h"
#include "src/gpu/graphite/TextureProxy.h"
namespace skgpu::graphite {
ScratchResourceManager::ScratchResourceManager(ResourceProvider* resourceProvider,
std::unique_ptr<ProxyReadCountMap> proxyCounts)
: … { … }
ScratchResourceManager::~ScratchResourceManager() = default;
sk_sp<Texture> ScratchResourceManager::getScratchTexture(SkISize dimensions,
const TextureInfo& info,
std::string_view label) { … }
void ScratchResourceManager::returnTexture(sk_sp<Texture> texture) { … }
void ScratchResourceManager::pushScope() { … }
void ScratchResourceManager::popScope() { … }
void ScratchResourceManager::notifyResourcesConsumed() { … }
void ScratchResourceManager::markResourceInUse(PendingUseListener* listener) { … }
}