Lines Matching refs:GrGpuResource
241 class TestResource : public GrGpuResource {
250 TestResource(GrGpu* gpu, size_t size, GrGpuResource::LifeCycle lifeCycle) in TestResource()
259 TestResource(GrGpu* gpu, GrGpuResource::LifeCycle lifeCycle) in TestResource()
330 typedef GrGpuResource INHERITED;
424 TestResource* wrapped = new TestResource(context->getGpu(), GrGpuResource::kBorrowed_LifeCycle); in test_budgeting()
427 new TestResource(context->getGpu(), GrGpuResource::kUncached_LifeCycle); in test_budgeting()
462 wrapped = new TestResource(context->getGpu(), GrGpuResource::kBorrowed_LifeCycle); in test_budgeting()
525 unbudgeted = new TestResource(context->getGpu(), large, GrGpuResource::kUncached_LifeCycle); in test_unbudgeted()
537 wrapped = new TestResource(context->getGpu(), large, GrGpuResource::kBorrowed_LifeCycle); in test_unbudgeted()
688 GrGpuResource* find; in test_remove_scratch_key()
763 … GrGpuResource* find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, 0); in test_scratch_key_consistency()
772 …GrGpuResource* find2 = cache->findAndRefScratchResource(scratchKey2, TestResource::kDefaultSize, 0… in test_scratch_key_consistency()
872 SkAutoTUnref<GrGpuResource> d2(cache->findAndRefUniqueResource(key3)); in test_duplicate_unique_key()
930 …GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, … in test_purge_invalidated()
1066 SkTDArray<GrGpuResource*> resourcesToUnref; in test_timestamp_wrap()
1093 GrGpuResource* res = cache->findAndRefUniqueResource(key); in test_timestamp_wrap()
1138 GrGpuResource* r = cache->findAndRefUniqueResource(k); in test_flush()
1152 GrGpuResource* refedResources[kFlushCount >> 1]; in test_flush()
1269 SkAutoTUnref<GrGpuResource> resource(new TestResource(context->getGpu())); in test_abandoned()