Definition at line 293 of file ResourceCacheTest.cpp.
◆ SimulatedProperty
Property that distinctly categorizes the resource. For example, textures have width, height, ...
Enumerator |
---|
kA_SimulatedProperty | |
kB_SimulatedProperty | |
Definition at line 300 of file ResourceCacheTest.cpp.
◆ TestResource()
Definition at line 302 of file ResourceCacheTest.cpp.
306 : INHERITED(gpu, label)
307 , fToDelete(nullptr)
308 , fSize(size)
310 , fIsScratch(false) {
311 ++fNumAlive;
313 }
void registerWithCache(skgpu::Budgeted)
◆ ~TestResource()
TestResource::~TestResource |
( |
| ) |
|
|
inlineoverride |
◆ ComputeScratchKey()
Definition at line 337 of file ResourceCacheTest.cpp.
337 {
340 for (int i = 0; i < kScratchKeyFieldCnt; ++i) {
341 builder[i] =
static_cast<uint32_t
>(i + property);
342 }
343 }
static ResourceType GenerateResourceType()
◆ computeScratchKey()
|
inlineoverrideprivatevirtual |
Called by the registerWithCache if the resource is available to be used as scratch. Resource subclasses should override this if the instances should be recycled as scratch resources and populate the scratchKey with the key. By default resources are not recycled as scratch.
Reimplemented from GrGpuResource.
Definition at line 377 of file ResourceCacheTest.cpp.
377 {
378 if (fIsScratch) {
380 }
381 }
static void ComputeScratchKey(SimulatedProperty property, skgpu::ScratchKey *key)
◆ CreateScratch()
Definition at line 315 of file ResourceCacheTest.cpp.
318 {
319 return new TestResource(gpu, budgeted, property, kScratchConstructor, {},
size);
320 }
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ CreateWrapped()
◆ ExpectedScratchKeySize()
static size_t TestResource::ExpectedScratchKeySize |
( |
| ) |
|
|
inlinestatic |
Definition at line 345 of file ResourceCacheTest.cpp.
345 {
346 return sizeof(uint32_t) * (kScratchKeyFieldCnt + skgpu::ScratchKey::kMetaDataCnt);
347 }
◆ getResourceType()
const char * TestResource::getResourceType |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
Describes the type of gpu resource that is represented by the implementing class (e.g. texture, buffer object, stencil). This data is used for diagnostic purposes by dumpMemoryStatistics().
The value returned is expected to be long lived and will not be copied by the caller.
Implements GrGpuResource.
Definition at line 385 of file ResourceCacheTest.cpp.
◆ NumAlive()
static int TestResource::NumAlive |
( |
| ) |
|
|
inlinestatic |
◆ onGpuMemorySize()
size_t TestResource::onGpuMemorySize |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ onSetLabel()
void TestResource::onSetLabel |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ setUnrefWhenDestroyed()
◆ kDefaultSize
const size_t TestResource::kDefaultSize = 100 |
|
static |
The documentation for this class was generated from the following file: