Home
last modified time | relevance | path

Searched refs:wStream (Results 1 – 25 of 35) sorted by relevance

12

/external/skqp/src/pdf/
DSkPDFUtils.h72 inline void AppendColorComponent(uint8_t value, SkWStream* wStream) { in AppendColorComponent() argument
75 wStream->write(buffer, len); in AppendColorComponent()
77 inline void AppendColorComponentF(float value, SkWStream* wStream) { in AppendColorComponentF() argument
80 wStream->write(buffer, len); in AppendColorComponentF()
90 inline void WriteUInt16BE(SkDynamicMemoryWStream* wStream, uint16_t value) { in WriteUInt16BE() argument
95 wStream->write(result, 4); in WriteUInt16BE()
98 inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) { in WriteUInt8() argument
101 wStream->write(result, 2); in WriteUInt8()
104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex()
[all …]
DSkPDFDocument.cpp74 static void serializeHeader(SkPDFOffsetMap* offsetMap, SkWStream* wStream) { in serializeHeader() argument
75 offsetMap->markStartOfDocument(wStream); in serializeHeader()
76 wStream->writeText("%PDF-1.4\n%" SKPDF_MAGIC "\n"); in serializeHeader()
95 SkWStream* wStream, in serialize_footer() argument
99 int xRefFileOffset = offsetMap.emitCrossReferenceTable(wStream); in serialize_footer()
109 wStream->writeText("trailer\n"); in serialize_footer()
110 trailerDict.emitObject(wStream); in serialize_footer()
111 wStream->writeText("\nstartxref\n"); in serialize_footer()
112 wStream->writeBigDecAsText(xRefFileOffset); in serialize_footer()
113 wStream->writeText("\n%%EOF"); in serialize_footer()
DSkPDFTypes.cpp120 static void write_string(SkWStream* wStream, const char* cin, size_t len) { in write_string() argument
133 wStream->writeText("("); in write_string()
141 wStream->write(octal, 4); in write_string()
144 wStream->writeText("\\"); in write_string()
146 wStream->write(&cin[i], 1); in write_string()
149 wStream->writeText(")"); in write_string()
151 wStream->writeText("<"); in write_string()
156 wStream->write(hexValue, 2); in write_string()
158 wStream->writeText(">"); in write_string()
162 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len) { in SkPDFWriteString() argument
[all …]
DSkPDFUnion.h23 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len);
DSkPDFDevice.cpp252 SkWStream* wStream) { in append_clip() argument
260 SkPDFUtils::AppendRectangle(clipStackRect, wStream); in append_clip()
261 wStream->writeText("W* n\n"); in append_clip()
269 SkPDFUtils::EmitPath(clipPath, SkPaint::kFill_Style, wStream); in append_clip()
274 wStream->writeText("W* n\n"); in append_clip()
276 wStream->writeText("W n\n"); in append_clip()
/external/skia/src/pdf/
DSkPDFUtils.h72 inline void AppendColorComponent(uint8_t value, SkWStream* wStream) { in AppendColorComponent() argument
75 wStream->write(buffer, len); in AppendColorComponent()
77 inline void AppendColorComponentF(float value, SkWStream* wStream) { in AppendColorComponentF() argument
80 wStream->write(buffer, len); in AppendColorComponentF()
90 inline void WriteUInt16BE(SkDynamicMemoryWStream* wStream, uint16_t value) { in WriteUInt16BE() argument
95 wStream->write(result, 4); in WriteUInt16BE()
98 inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) { in WriteUInt8() argument
101 wStream->write(result, 2); in WriteUInt8()
104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex()
[all …]
DSkPDFGraphicStackState.cpp100 static void append_clip_path(const SkPath& clipPath, SkWStream* wStream) { in append_clip_path() argument
101 SkPDFUtils::EmitPath(clipPath, SkPaint::kFill_Style, wStream); in append_clip_path()
106 wStream->writeText("W* n\n"); in append_clip_path()
108 wStream->writeText("W n\n"); in append_clip_path()
114 SkWStream* wStream) { in append_clip() argument
122 SkPDFUtils::AppendRectangle(clipStackRect, wStream); in append_clip()
123 wStream->writeText("W* n\n"); in append_clip()
131 append_clip_path(clipPath, wStream); in append_clip()
136 apply_clip(clipStack, outsetBounds, [wStream](const SkPath& path) { in append_clip()
137 append_clip_path(path, wStream); in append_clip()
DSkPDFTypes.cpp122 static void write_string(SkWStream* wStream, const char* cin, size_t len) { in write_string() argument
135 wStream->writeText("("); in write_string()
143 wStream->write(octal, 4); in write_string()
146 wStream->writeText("\\"); in write_string()
148 wStream->write(&cin[i], 1); in write_string()
151 wStream->writeText(")"); in write_string()
153 wStream->writeText("<"); in write_string()
158 wStream->write(hexValue, 2); in write_string()
160 wStream->writeText(">"); in write_string()
164 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len) { in SkPDFWriteString() argument
[all …]
DSkPDFDocument.cpp96 static void serializeHeader(SkPDFOffsetMap* offsetMap, SkWStream* wStream) { in serializeHeader() argument
97 offsetMap->markStartOfDocument(wStream); in serializeHeader()
98 wStream->writeText("%PDF-1.4\n%" SKPDF_MAGIC "\n"); in serializeHeader()
117 SkWStream* wStream, in serialize_footer() argument
121 int xRefFileOffset = offsetMap.emitCrossReferenceTable(wStream); in serialize_footer()
131 wStream->writeText("trailer\n"); in serialize_footer()
132 trailerDict.emitObject(wStream); in serialize_footer()
133 wStream->writeText("\nstartxref\n"); in serialize_footer()
134 wStream->writeBigDecAsText(xRefFileOffset); in serialize_footer()
135 wStream->writeText("\n%%EOF"); in serialize_footer()
DSkPDFUnion.h9 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len);
/external/skqp/src/utils/
DSkMultiPictureDocument.cpp70 void onClose(SkWStream* wStream) override { in onClose()
71 SkASSERT(wStream); in onClose()
72 SkASSERT(wStream->bytesWritten() == 0); in onClose()
73 wStream->writeText(kMagic); in onClose()
74 wStream->write32(kVersion); in onClose()
75 wStream->write32(SkToU32(fPages.count())); in onClose()
77 wStream->write(&s, sizeof(s)); in onClose()
86 p->serialize(wStream, &fProcs); in onClose()
98 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs) { in SkMakeMultiPictureDocument() argument
99 return sk_make_sp<MultiPictureDocument>(wStream, procs); in SkMakeMultiPictureDocument()
/external/skia/src/utils/
DSkMultiPictureDocument.cpp78 void onClose(SkWStream* wStream) override { in onClose()
79 SkASSERT(wStream); in onClose()
80 SkASSERT(wStream->bytesWritten() == 0); in onClose()
81 wStream->writeText(kMagic); in onClose()
82 wStream->write32(kVersion); in onClose()
83 wStream->write32(SkToU32(fPages.count())); in onClose()
85 wStream->write(&s, sizeof(s)); in onClose()
95 p->serialize(wStream, &fProcs); in onClose()
107 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs, in SkMakeMultiPictureDocument() argument
109 return sk_make_sp<MultiPictureDocument>(wStream, procs, onEndPage); in SkMakeMultiPictureDocument()
/external/skqp/tests/
DPDFDocumentTest.cpp207 SkDynamicMemoryWStream wStream; in DEF_TEST() local
209 auto doc = SkPDF::MakeDocument(&wStream, pdfMetadata); in DEF_TEST()
212 sk_sp<SkData> data(wStream.detachAsData()); in DEF_TEST()
233 SkFILEWStream wStream(SK_PDF_TEST_MULTIPAGE); in DEF_TEST() local
235 SkDynamicMemoryWStream wStream; in DEF_TEST() local
237 auto doc = SkPDF::MakeDocument(&wStream); in DEF_TEST()
DTestUtils.cpp161 SkDynamicMemoryWStream wStream; in bitmap_to_base64_data_uri() local
162 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in bitmap_to_base64_data_uri()
167 sk_sp<SkData> pngData = wStream.detachAsData(); in bitmap_to_base64_data_uri()
DStreamTest.cpp304 SkFILEWStream wStream(path.c_str()); in DEF_TEST() local
311 if (!wStream.isValid() || !wStream.write(data->data(), data->size())) { in DEF_TEST()
/external/skia/tests/
DPDFDocumentTest.cpp206 SkDynamicMemoryWStream wStream; in DEF_TEST() local
208 auto doc = SkPDF::MakeDocument(&wStream, pdfMetadata); in DEF_TEST()
211 sk_sp<SkData> data(wStream.detachAsData()); in DEF_TEST()
232 SkFILEWStream wStream(SK_PDF_TEST_MULTIPAGE); in DEF_TEST() local
234 SkDynamicMemoryWStream wStream; in DEF_TEST() local
236 auto doc = SkPDF::MakeDocument(&wStream); in DEF_TEST()
DTestUtils.cpp115 SkDynamicMemoryWStream wStream; in BipmapToBase64DataURI() local
116 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in BipmapToBase64DataURI()
121 sk_sp<SkData> pngData = wStream.detachAsData(); in BipmapToBase64DataURI()
DStreamTest.cpp312 SkFILEWStream wStream(path.c_str()); in DEF_TEST() local
319 if (!wStream.isValid() || !wStream.write(data->data(), data->size())) { in DEF_TEST()
/external/skia/bench/
DPDFBench.cpp176 SkNullWStream wStream; in onDraw() local
177 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
293 SkNullWStream wStream; in onDraw() local
294 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
431 SkFILEWStream wStream("/tmp/big_pdf.pdf"); in onDraw() local
433 SkNullWStream wStream; in onDraw()
437 auto doc = SkPDF::MakeDocument(&wStream, metadata); in onDraw()
/external/skqp/tools/
Dusing_skia_and_harfbuzz.cpp182 static sk_sp<SkDocument> MakePDFDocument(const Config &config, SkWStream *wStream) { in MakePDFDocument() argument
196 return SkPDF::MakeDocument(wStream, pdf_info); in MakePDFDocument()
201 SkFILEWStream wStream(config.output_file_name.value.c_str()); in main() local
202 sk_sp<SkDocument> doc = MakePDFDocument(config, &wStream); in main()
220 wStream.flush(); in main()
/external/skia/tools/
Dusing_skia_and_harfbuzz.cpp182 static sk_sp<SkDocument> MakePDFDocument(const Config &config, SkWStream *wStream) { in MakePDFDocument() argument
196 return SkPDF::MakeDocument(wStream, pdf_info); in MakePDFDocument()
201 SkFILEWStream wStream(config.output_file_name.value.c_str()); in main() local
202 sk_sp<SkDocument> doc = MakePDFDocument(config, &wStream); in main()
220 wStream.flush(); in main()
/external/skia/tools/skqp/src/
Dskqp.cpp219 SkFILEWStream wStream(dst.c_str()); in encode_png() local
221 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
226 SkFILEWStream wStream(dst.c_str()); in write_to_file() local
227 bool success = wStream.isValid() && wStream.write(src->data(), src->size()); in write_to_file()
445 inline void write(SkWStream* wStream, const T& text) { in write() argument
446 wStream->write(text.c_str(), text.size()); in write()
/external/skqp/tools/skqp/src/
Dskqp.cpp207 SkFILEWStream wStream(dst.c_str()); in encode_png() local
209 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
214 SkFILEWStream wStream(dst.c_str()); in write_to_file() local
215 bool success = wStream.isValid() && wStream.write(src->data(), src->size()); in write_to_file()
435 inline void write(SkWStream* wStream, const T& text) { in write() argument
436 wStream->write(text.c_str(), text.size()); in write()
/external/skqp/bench/
DPDFBench.cpp175 SkNullWStream wStream; in onDraw() local
176 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
371 SkFILEWStream wStream("/tmp/big_pdf.pdf"); in onDraw() local
373 SkNullWStream wStream; in onDraw()
377 auto doc = SkPDF::MakeDocument(&wStream, metadata); in onDraw()
/external/skia/dm/
DDMSrcSink.cpp1598 Result GPUThreadTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1607 Result result = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1631 Result GPUPersistentCacheTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1642 Result result = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1668 Result GPUPrecompileTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1679 Result result = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
2143 SkDynamicMemoryWStream wStream; in check_against_reference() local
2144 Result result = sink->draw(src, &reference, &wStream, &log); in check_against_reference()

12