#include "src/gpu/graphite/Resource.h"
#include "include/core/SkTraceMemoryDump.h"
#include "src/gpu/graphite/ResourceCache.h"
namespace skgpu::graphite {
namespace {
uint32_t create_unique_id() { … }
}
Resource::Resource(const SharedContext* sharedContext,
Ownership ownership,
skgpu::Budgeted budgeted,
size_t gpuMemorySize,
bool commandBufferRefsAsUsageRefs)
: … { … }
Resource::~Resource() { … }
void Resource::registerWithCache(sk_sp<ResourceCache> returnCache) { … }
bool Resource::notifyARefIsZero(LastRemovedRef removedRef) const { … }
void Resource::internalDispose() { … }
bool Resource::isPurgeable() const { … }
void Resource::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { … }
}