Flutter Engine
The Flutter Engine
|
#include <Resource.h>
Classes | |
class | UniqueID |
Public Member Functions | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
Resource & | operator= (const Resource &)=delete |
Resource & | operator= (Resource &&)=delete |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
Ownership | ownership () const |
skgpu::Budgeted | budgeted () const |
size_t | gpuMemorySize () const |
UniqueID | uniqueID () const |
virtual const char * | getResourceType () const =0 |
std::string | getLabel () const |
void | setLabel (std::string_view label) |
bool | wasDestroyed () const |
const GraphiteResourceKey & | key () const |
void | setKey (const GraphiteResourceKey &key) |
void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
virtual void | prepareForReturnToCache (const std::function< void()> &takeRef) |
Protected Member Functions | |
Resource (const SharedContext *, Ownership, skgpu::Budgeted, size_t gpuMemorySize, bool commandBufferRefsAsUsageRefs=false) | |
virtual | ~Resource () |
const SharedContext * | sharedContext () const |
virtual void | onDumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump, const char *dumpName) const |
void | setDeleteASAP () |
Private Member Functions | |
virtual void | freeGpuData ()=0 |
virtual void | invokeReleaseProc () |
virtual void | setBackendLabel (char const *label) |
Friends | |
class | ProxyCache |
Base class for objects that can be kept in the ResourceCache.
Definition at line 37 of file Resource.h.
|
delete |
|
delete |
|
protected |
Definition at line 26 of file Resource.cpp.
|
protectedvirtual |
Definition at line 45 of file Resource.cpp.
|
inline |
Definition at line 100 of file Resource.h.
void skgpu::graphite::Resource::dumpMemoryStatistics | ( | SkTraceMemoryDump * | traceMemoryDump | ) | const |
Definition at line 95 of file Resource.cpp.
|
privatepure virtual |
Implemented in skgpu::graphite::VulkanBuffer.
|
inline |
Definition at line 132 of file Resource.h.
|
pure virtual |
Implemented in skgpu::graphite::Buffer, skgpu::graphite::ComputePipeline, skgpu::graphite::GraphicsPipeline, skgpu::graphite::MtlBlitCommandEncoder, skgpu::graphite::MtlComputeCommandEncoder, skgpu::graphite::MtlRenderCommandEncoder, skgpu::graphite::Sampler, skgpu::graphite::Texture, skgpu::graphite::VulkanDescriptorSet, skgpu::graphite::VulkanFramebuffer, skgpu::graphite::VulkanRenderPass, skgpu::graphite::VulkanYcbcrConversion, and skgpu::graphite::TestResource.
|
inline |
Definition at line 104 of file Resource.h.
|
inlineprivatevirtual |
|
inline |
Definition at line 156 of file Resource.h.
|
inlineprotectedvirtual |
|
inline |
Definition at line 98 of file Resource.h.
|
inlinevirtual |
If the resource has a non-shareable key then this gives the resource subclass an opportunity to prepare itself to re-enter the cache. The ResourceCache extends its privilege to take the first UsageRef to this function via takeRef. If takeRef is called this resource will not immediately enter the cache but will be re-reprocessed with the Usage Ref count again reaches zero.
Definition at line 173 of file Resource.h.
|
inline |
Definition at line 45 of file Resource.h.
|
inline |
Definition at line 70 of file Resource.h.
|
inlineprivatevirtual |
Definition at line 229 of file Resource.h.
|
inlineprotected |
Definition at line 202 of file Resource.h.
|
inline |
Definition at line 158 of file Resource.h.
|
inline |
Definition at line 136 of file Resource.h.
|
inlineprotected |
Definition at line 189 of file Resource.h.
|
inline |
Definition at line 123 of file Resource.h.
|
inline |
Definition at line 53 of file Resource.h.
|
inline |
Definition at line 79 of file Resource.h.
|
inline |
Definition at line 154 of file Resource.h.
|
friend |
Definition at line 205 of file Resource.h.