Searched refs:TestResource (Results 1 – 3 of 3) sorted by relevance
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 175 class TestResource : public GrGpuResource { class 179 SK_DECLARE_INST_COUNT(TestResource); 184 TestResource(GrGpu* gpu, size_t size, GrGpuResource::LifeCycle lifeCycle) in TestResource() function in TestResource 193 TestResource(GrGpu* gpu, GrGpuResource::LifeCycle lifeCycle) in TestResource() function in TestResource 202 TestResource(GrGpu* gpu) in TestResource() function in TestResource 211 static TestResource* CreateScratch(GrGpu* gpu, SimulatedProperty property, bool cached = true) { in CreateScratch() 212 return SkNEW_ARGS(TestResource, (gpu, property, cached, kScratchConstructor)); in CreateScratch() 215 ~TestResource() { in ~TestResource() 227 void setUnrefWhenDestroyed(TestResource* resource) { in setUnrefWhenDestroyed() 246 TestResource(GrGpu* gpu, SimulatedProperty property, bool cached, ScratchConstructor) in TestResource() function in TestResource [all …]
|
/external/skia/include/gpu/ |
D | GrResourceKey.h | 135 friend class TestResource; // For unit test to access kMetaDataCnt. variable
|
/external/v8/test/cctest/ |
D | test-api.cc | 411 class TestResource: public String::ExternalStringResource { class 413 explicit TestResource(uint16_t* data, int* counter = NULL, in TestResource() function in TestResource 419 ~TestResource() { in ~TestResource() 477 TestResource* resource = new TestResource(two_byte_source, &dispose_count); in THREADED_TEST() 485 static_cast<TestResource*>(source->GetExternalStringResource())); in THREADED_TEST() 544 bool success = source->MakeExternal(new TestResource(two_byte_source, in THREADED_TEST() 711 CcTest::isolate(), new TestResource(two_byte_string)); in THREADED_TEST() 754 CcTest::isolate(), new TestResource(two_byte_string, &dispose_count)); in THREADED_TEST() 883 new TestResource(AsciiToTwoByteString(two_byte_extern_1))); in THREADED_TEST() 895 new TestResource(AsciiToTwoByteString(two_byte_extern_2))); in THREADED_TEST() [all …]
|