Home | History | Annotate | Download | only in tests

Lines Matching refs:unique

403     // Since the resources have neither unique nor scratch keys, delete immediately upon unref.
444 // Create a scratch, a unique, and a wrapped resource
448 TestResource* unique = new TestResource(context->getGpu());
449 unique->setSize(11);
450 unique->resourcePriv().setUniqueKey(uniqueKey);
457 // Make sure we can add a unique key to the wrapped resource
469 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() +
473 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() ==
480 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() +
484 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() ==
491 REPORTER_ASSERT(reporter, scratch->gpuMemorySize() + unique->gpuMemorySize() +
498 unique->unref();
542 TestResource* unique;
558 unique = new TestResource(context->getGpu());
559 unique->setSize(11);
560 unique->resourcePriv().setUniqueKey(uniqueKey);
561 unique->unref();
844 // Create two resources that we will attempt to register with the same unique key.
861 // Create resource b and set the same key. It should replace a's unique key cache entry.
879 // Now replace b with c, but make sure c can start with one unique key and change it to b's key.
902 // Drop the ref on c, it should be kept alive because it has a unique key.
908 // Verify that we can find c, then remove its unique key. It should get purged immediately.
1386 // Add three unique resources to the cache.