Searched refs:SkRefPtr (Results 1 - 18 of 18) sorted by relevance

/external/skia/include/core/
H A DSkRefCnt.h151 template <typename T> class SkRefPtr { class
153 SkRefPtr() : fObj(NULL) {} function in class:SkRefPtr
154 SkRefPtr(T* obj) : fObj(obj) { SkSafeRef(fObj); } function in class:SkRefPtr
155 SkRefPtr(const SkRefPtr& o) : fObj(o.fObj) { SkSafeRef(fObj); } function in class:SkRefPtr
156 ~SkRefPtr() { SkSafeUnref(fObj); }
158 SkRefPtr& operator=(const SkRefPtr& rp) {
162 SkRefPtr& operator=(T* obj) {
171 typedef T* SkRefPtr
[all...]
/external/skia/tests/
H A DPDFPrimitivesTest.cpp99 SkRefPtr<SkMemoryStream> streamData = new SkMemoryStream(
101 streamData->unref(); // SkRefPtr and new both took a reference.
102 SkRefPtr<SkPDFStream> stream = new SkPDFStream(streamData.get());
103 stream->unref(); // SkRefPtr and new both took a reference.
119 SkRefPtr<SkPDFStream> stream = new SkPDFStream(streamData2.get());
120 stream->unref(); // SkRefPtr and new both took a reference.
151 SkRefPtr<SkPDFInt> int1 = new SkPDFInt(1);
152 int1->unref(); // SkRefPtr and new both took a reference.
153 SkRefPtr<SkPDFInt> int2 = new SkPDFInt(2);
154 int2->unref(); // SkRefPtr an
[all...]
H A DUtilsTest.cpp27 SkRefPtr<RefClass> rc0;
31 SkRefPtr<RefClass> rc1;
/external/skia/include/pdf/
H A DSkPDFDocument.h75 SkRefPtr<SkPDFDict> fDocCatalog;
80 SkRefPtr<SkPDFDict> fTrailerDict;
H A DSkPDFPage.h93 SkRefPtr<SkPDFDevice> fDevice;
96 SkRefPtr<SkPDFStream> fContentStream;
H A DSkPDFStream.h65 SkRefPtr<SkStream> fData;
66 SkRefPtr<SkPDFStream> fSubstitute;
H A DSkPDFFont.h183 SkRefPtr<SkTypeface> fTypeface;
191 SkRefPtr<SkAdvancedTypefaceMetrics> fFontInfo;
193 SkRefPtr<SkPDFDict> fDescriptor;
H A DSkPDFDevice.h136 SK_API SkRefPtr<SkPDFArray> getMediaBox() const;
176 SkRefPtr<SkPDFDict> fResourceDict;
208 void createFormXObjectFromDevice(SkRefPtr<SkPDFFormXObject>* xobject);
227 SkRefPtr<SkPDFFormXObject>* dst);
H A DSkPDFTypes.h114 SkRefPtr<SkPDFObject> fObj;
/external/skia/src/pdf/
H A DSkPDFFormXObject.cpp25 SkRefPtr<SkStream> content = device->content();
26 content->unref(); // SkRefPtr and content() both took a reference.
46 SkRefPtr<SkPDFDict> group = new SkPDFDict("Group");
47 group->unref(); // SkRefPtr and new both took a reference.
H A DSkPDFPage.cpp28 SkRefPtr<SkStream> content = fDevice->content();
29 content->unref(); // SkRefPtr and content() both took a reference.
31 fContentStream->unref(); // SkRefPtr and new both took a reference.
63 SkRefPtr<SkPDFName> kidsName = new SkPDFName("Kids");
64 kidsName->unref(); // SkRefPtr and new both took a reference.
65 SkRefPtr<SkPDFName> countName = new SkPDFName("Count");
66 countName->unref(); // SkRefPtr and new both took a reference.
67 SkRefPtr<SkPDFName> parentName = new SkPDFName("Parent");
68 parentName->unref(); // SkRefPtr and new both took a reference.
91 SkRefPtr<SkPDFObjRe
[all...]
H A DSkPDFFont.cpp158 SkRefPtr<SkMemoryStream> staticStream;
164 staticStream->unref(); // new and SkRefPtr both took a ref.
321 SkRefPtr<SkPDFArray> advanceArray = new SkPDFArray();
322 advanceArray->unref(); // SkRefPtr and new both took a ref.
526 SkRefPtr<SkMemoryStream> cmapStream = new SkMemoryStream();
527 cmapStream->unref(); // SkRefPtr and new took a reference.
541 SkRefPtr<SkStream> fontData =
543 fontData->unref(); // SkRefPtr and OpenStream both took a ref.
749 SkRefPtr<SkAdvancedTypefaceMetrics> fontMetrics;
768 SkSafeUnref(fontMetrics.get()); // SkRefPtr an
[all...]
H A DSkPDFGraphicState.cpp116 SkRefPtr<SkPDFArray> domainAndRange = new SkPDFArray;
117 domainAndRange->unref(); // SkRefPtr and new both took a reference.
123 SkRefPtr<SkMemoryStream> psInvertStream =
125 psInvertStream->unref(); // SkRefPtr and new both took a reference.
142 SkRefPtr<SkPDFDict> sMaskDict = new SkPDFDict("Mask");
143 sMaskDict->unref(); // SkRefPtr and new both took a reference.
203 SkRefPtr<SkPDFScalar> alpha =
205 alpha->unref(); // SkRefPtr and new both took a reference.
H A DSkPDFImage.cpp308 SkRefPtr<SkPDFInt> one = new SkPDFInt(1);
309 one->unref(); // SkRefPtr and new both took a reference.
338 SkRefPtr<SkPDFInt> zeroVal = new SkPDFInt(0);
339 zeroVal->unref(); // SkRefPtr and new both took a reference.
340 SkRefPtr<SkPDFScalar> scale5Val =
342 scale5Val->unref(); // SkRefPtr and new both took a reference.
343 SkRefPtr<SkPDFScalar> scale6Val =
345 scale6Val->unref(); // SkRefPtr and new both took a reference.
346 SkRefPtr<SkPDFArray> decodeValue = new SkPDFArray();
347 decodeValue->unref(); // SkRefPtr an
[all...]
H A DSkPDFDevice.cpp469 SkRefPtr<SkPDFFormXObject> fDstFormXObject;
975 fResourceDict->unref(); // SkRefPtr and new both took a reference.
978 SkRefPtr<SkPDFDict> extGState = new SkPDFDict();
979 extGState->unref(); // SkRefPtr and new both took a reference.
991 SkRefPtr<SkPDFDict> xObjects = new SkPDFDict();
992 xObjects->unref(); // SkRefPtr and new both took a reference.
1004 SkRefPtr<SkPDFDict> fonts = new SkPDFDict();
1005 fonts->unref(); // SkRefPtr and new both took a reference.
1016 SkRefPtr<SkPDFDict> patterns = new SkPDFDict();
1017 patterns->unref(); // SkRefPtr an
[all...]
H A DSkPDFShader.cpp476 SkRefPtr<SkPDFArray> domain = new SkPDFArray;
477 domain->unref(); // SkRefPtr and new both took a reference.
502 SkRefPtr<SkPDFStream> function = makePSFunction(functionCode, domain.get());
503 // Pass one reference to fResources, SkRefPtr and new both took a reference.
506 SkRefPtr<SkPDFDict> pdfShader = new SkPDFDict;
507 pdfShader->unref(); // SkRefPtr and new both took a reference.
684 SkRefPtr<SkPDFArray> patternBBoxArray = new SkPDFArray;
685 patternBBoxArray->unref(); // SkRefPtr and new both took a reference.
693 SkRefPtr<SkStream> content = pattern.content();
694 content->unref(); // SkRefPtr an
[all...]
/external/skia/samplecode/
H A DSampleDrawBitmap.cpp57 SkRefPtr<SkDevice> primaryDevice(canvas->getDevice());
58 SkRefPtr<SkDevice> secondDevice(canvas->createCompatibleDevice(
H A DSampleTextureDomain.cpp64 SkRefPtr<SkDevice> primaryDevice(canvas->getDevice());
65 SkRefPtr<SkDevice> secondDevice(canvas->createCompatibleDevice(

Completed in 153 milliseconds