Home | History | Annotate | Download | only in tests

Lines Matching refs:SkRefPtr

68     SkRefPtr<SkPDFInt> int1 = new SkPDFInt(1);
69 int1->unref(); // SkRefPtr and new both took a reference.
70 SkRefPtr<SkPDFInt> int2 = new SkPDFInt(2);
71 int2->unref(); // SkRefPtr and new both took a reference.
72 SkRefPtr<SkPDFInt> int3 = new SkPDFInt(3);
73 int3->unref(); // SkRefPtr and new both took a reference.
74 SkRefPtr<SkPDFInt> int1Again(int1.get());
95 SkRefPtr<SkPDFInt> int1 = new SkPDFInt(1);
96 int1->unref(); // SkRefPtr and new both took a reference.
97 SkRefPtr<SkPDFInt> int2 = new SkPDFInt(2);
98 int2->unref(); // SkRefPtr and new both took a reference.
99 SkRefPtr<SkPDFObjRef> int2ref = new SkPDFObjRef(int2.get());
100 int2ref->unref(); // SkRefPtr and new both took a reference.
117 SkRefPtr<SkPDFInt> int42 = new SkPDFInt(42);
118 int42->unref(); // SkRefPtr and new both took a reference.
121 SkRefPtr<SkPDFScalar> realHalf = new SkPDFScalar(SK_ScalarHalf);
122 realHalf->unref(); // SkRefPtr and new both took a reference.
126 SkRefPtr<SkPDFScalar> bigScalar = new SkPDFScalar(110999.75);
127 bigScalar->unref(); // SkRefPtr and new both took a reference.
133 SkRefPtr<SkPDFScalar> biggerScalar = new SkPDFScalar(50000000.1);
134 biggerScalar->unref(); // SkRefPtr and new both took a reference.
137 SkRefPtr<SkPDFScalar> smallestScalar = new SkPDFScalar(1.0/65536);
138 smallestScalar->unref(); // SkRefPtr and new both took a reference.
143 SkRefPtr<SkPDFString> stringSimple = new SkPDFString("test ) string ( foo");
144 stringSimple->unref(); // SkRefPtr and new both took a reference.
147 SkRefPtr<SkPDFString> stringComplex =
149 stringComplex->unref(); // SkRefPtr and new both took a reference.
153 SkRefPtr<SkPDFName> name = new SkPDFName("Test name\twith#tab");
154 name->unref(); // SkRefPtr and new both took a reference.
157 SkRefPtr<SkPDFArray> array = new SkPDFArray;
158 array->unref(); // SkRefPtr and new both took a reference.
164 SkRefPtr<SkPDFInt> int0 = new SkPDFInt(0);
165 int0->unref(); // SkRefPtr and new both took a reference.
168 SkRefPtr<SkPDFInt> int1 = new SkPDFInt(1);
169 int1->unref(); // SkRefPtr and new both took a reference.
173 SkRefPtr<SkPDFDict> dict = new SkPDFDict;
174 dict->unref(); // SkRefPtr and new both took a reference.
176 SkRefPtr<SkPDFName> n1 = new SkPDFName("n1");
177 n1->unref(); // SkRefPtr and new both took a reference.
180 SkRefPtr<SkPDFName> n2 = new SkPDFName("n2");
181 n2->unref(); // SkRefPtr and new both took a reference.
182 SkRefPtr<SkPDFName> n3 = new SkPDFName("n3");
183 n3->unref(); // SkRefPtr and new both took a reference.
190 SkRefPtr<SkMemoryStream> streamData = new SkMemoryStream(
192 streamData->unref(); // SkRefPtr and new both took a reference.
193 SkRefPtr<SkPDFStream> stream = new SkPDFStream(streamData.get());
194 stream->unref(); // SkRefPtr and new both took a reference.