Home
last modified time | relevance | path

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

12

/third_party/skia/src/pdf/
DSkPDFUtils.h73 inline void AppendColorComponent(uint8_t value, SkWStream* wStream) { in AppendColorComponent() argument
76 wStream->write(buffer, len); in AppendColorComponent()
78 inline void AppendColorComponentF(float value, SkWStream* wStream) { in AppendColorComponentF() argument
81 wStream->write(buffer, len); in AppendColorComponentF()
91 inline void WriteUInt16BE(SkDynamicMemoryWStream* wStream, uint16_t value) { in WriteUInt16BE() argument
96 wStream->write(result, 4); in WriteUInt16BE()
99 inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) { in WriteUInt8() argument
102 wStream->write(result, 2); in WriteUInt8()
105 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
109 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex()
[all …]
DSkPDFGraphicStackState.cpp96 static void append_clip_path(const SkPath& clipPath, SkWStream* wStream) { in append_clip_path() argument
97 SkPDFUtils::EmitPath(clipPath, SkPaint::kFill_Style, wStream); in append_clip_path()
102 wStream->writeText("W* n\n"); in append_clip_path()
104 wStream->writeText("W n\n"); in append_clip_path()
110 SkWStream* wStream) { in append_clip() argument
118 SkPDFUtils::AppendRectangle(clipStackRect, wStream); in append_clip()
119 wStream->writeText("W* n\n"); in append_clip()
127 append_clip_path(clipPath, wStream); in append_clip()
132 apply_clip(clipStack, outsetBounds, [wStream](const SkPath& path) { in append_clip()
133 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);
/third_party/flutter/skia/src/pdf/
DSkPDFUtils.h73 inline void AppendColorComponent(uint8_t value, SkWStream* wStream) { in AppendColorComponent() argument
76 wStream->write(buffer, len); in AppendColorComponent()
78 inline void AppendColorComponentF(float value, SkWStream* wStream) { in AppendColorComponentF() argument
81 wStream->write(buffer, len); in AppendColorComponentF()
91 inline void WriteUInt16BE(SkDynamicMemoryWStream* wStream, uint16_t value) { in WriteUInt16BE() argument
96 wStream->write(result, 4); in WriteUInt16BE()
99 inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) { in WriteUInt8() argument
102 wStream->write(result, 2); in WriteUInt8()
105 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
109 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex()
[all …]
DSkPDFGraphicStackState.cpp105 static void append_clip_path(const SkPath& clipPath, SkWStream* wStream) { in append_clip_path() argument
106 SkPDFUtils::EmitPath(clipPath, SkPaint::kFill_Style, wStream); in append_clip_path()
111 wStream->writeText("W* n\n"); in append_clip_path()
113 wStream->writeText("W n\n"); in append_clip_path()
119 SkWStream* wStream) { in append_clip() argument
127 SkPDFUtils::AppendRectangle(clipStackRect, wStream); in append_clip()
128 wStream->writeText("W* n\n"); in append_clip()
136 append_clip_path(clipPath, wStream); in append_clip()
141 apply_clip(clipStack, outsetBounds, [wStream](const SkPath& path) { in append_clip()
142 append_clip_path(path, wStream); in append_clip()
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 …]
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()
DSkPDFUnion.h23 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len);
/third_party/flutter/skia/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()
87 p->serialize(wStream, &fProcs); in onClose()
99 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs) { in SkMakeMultiPictureDocument() argument
100 return sk_make_sp<MultiPictureDocument>(wStream, procs); in SkMakeMultiPictureDocument()
/third_party/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()
/third_party/flutter/skia/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.cpp157 SkDynamicMemoryWStream wStream; in bitmap_to_base64_data_uri() local
158 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in bitmap_to_base64_data_uri()
163 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()
/third_party/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.cpp114 SkDynamicMemoryWStream wStream; in BipmapToBase64DataURI() local
115 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in BipmapToBase64DataURI()
120 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()
/third_party/flutter/skia/bench/
DPDFBench.cpp175 SkNullWStream wStream; in onDraw() local
176 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
292 SkNullWStream wStream; in onDraw() local
293 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
430 SkFILEWStream wStream("/tmp/big_pdf.pdf"); in onDraw() local
432 SkNullWStream wStream; in onDraw()
436 auto doc = SkPDF::MakeDocument(&wStream, metadata); in onDraw()
/third_party/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()
/third_party/flutter/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()
/third_party/skia/tools/
Dusing_skia_and_harfbuzz.cpp185 static sk_sp<SkDocument> MakePDFDocument(const Config &config, SkWStream *wStream) { in MakePDFDocument() argument
199 return SkPDF::MakeDocument(wStream, pdf_info); in MakePDFDocument()
204 SkFILEWStream wStream(config.output_file_name.value.c_str()); in main() local
205 sk_sp<SkDocument> doc = MakePDFDocument(config, &wStream); in main()
223 wStream.flush(); in main()
/third_party/flutter/skia/tools/skqp/src/
Dskqp.cpp206 SkFILEWStream wStream(dst.c_str()); in encode_png() local
208 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
213 SkFILEWStream wStream(dst.c_str()); in write_to_file() local
214 bool success = wStream.isValid() && wStream.write(src->data(), src->size()); in write_to_file()
434 inline void write(SkWStream* wStream, const T& text) { in write() argument
435 wStream->write(text.c_str(), text.size()); in write()
/third_party/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()
/third_party/skia/dm/
DDMSrcSink.cpp1609 Result GPUThreadTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1618 Result result = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1642 Result GPUPersistentCacheTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1653 Result result = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1679 Result GPUPrecompileTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1690 Result result = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
2232 SkDynamicMemoryWStream wStream; in check_against_reference() local
2233 Result result = sink->draw(src, &reference, &wStream, &log); in check_against_reference()

12