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)
310 , fIsScratch(false) {
311 ++fNumAlive;
313 }
void registerWithCache(skgpu::Budgeted)
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
◆ ~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()
◆ CreateScratch()
Definition at line 315 of file ResourceCacheTest.cpp.
318 {
319 return new TestResource(gpu, budgeted, property, kScratchConstructor, {},
size);
320 }
TestResource(GrGpu *gpu, std::string_view label, skgpu::Budgeted budgeted=skgpu::Budgeted::kYes, size_t size=kDefaultSize)
◆ 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 }
◆ NumAlive()
static int TestResource::NumAlive |
( |
| ) |
|
|
inlinestatic |
◆ setUnrefWhenDestroyed()
Definition at line 333 of file ResourceCacheTest.cpp.
333 {
335 }
static SkString resource(SkPDFResourceType type, int index)
◆ kDefaultSize
const size_t TestResource::kDefaultSize = 100 |
|
static |
The documentation for this class was generated from the following file: