Home | History | Annotate | Download | only in tests

Lines Matching refs:ref

15     SkRefCnt* ref = static_cast<SkRefCnt*>(data);
17 ref->ref();
18 ref->unref();
23 SkRefCnt* ref = new SkRefCnt();
25 SkThread thing1(bounce_ref, ref);
26 SkThread thing2(bounce_ref, ref);
34 REPORTER_ASSERT(reporter, ref->unique());
35 ref->unref();
39 SkWeakRefCnt* ref = static_cast<SkWeakRefCnt*>(data);
41 if (ref->try_ref()) {
42 ref->unref();
48 SkWeakRefCnt* ref = static_cast<SkWeakRefCnt*>(data);
50 ref->weak_ref();
51 ref->weak_unref();
56 SkWeakRefCnt* ref = new SkWeakRefCnt();
58 SkThread thing1(bounce_ref, ref);
59 SkThread thing2(bounce_ref, ref);
60 SkThread thing3(bounce_weak_ref, ref);
61 SkThread thing4(bounce_weak_weak_ref, ref);
73 REPORTER_ASSERT(reporter, ref->unique());
74 REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1);
75 ref->unref();