#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "src/pdf/SkPDFUnion.h"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <utility>
#include <vector>
Go to the source code of this file.
|
static void | SkPDFArray_Append (SkPDFArray *a, int v) |
|
static void | SkPDFArray_Append (SkPDFArray *a, SkScalar v) |
|
template<typename T , typename... Args> |
static void | SkPDFArray_Append (SkPDFArray *a, T v, Args... args) |
|
static void | SkPDFArray_Append (SkPDFArray *a) |
|
template<typename... Args> |
static std::unique_ptr< SkPDFArray > | SkPDFMakeArray (Args... args) |
|
static std::unique_ptr< SkPDFDict > | SkPDFMakeDict (const char *type=nullptr) |
|
void | SkPDFWriteTextString (SkWStream *wStream, const char *cin, size_t len) |
|
void | SkPDFWriteByteString (SkWStream *wStream, const char *cin, size_t len) |
|
SkPDFIndirectReference | SkPDFStreamOut (std::unique_ptr< SkPDFDict > dict, std::unique_ptr< SkStreamAsset > stream, SkPDFDocument *doc, SkPDFSteamCompressionEnabled compress=SkPDFSteamCompressionEnabled::Default) |
|
◆ SkPDFSteamCompressionEnabled
Definition at line 189 of file SkPDFTypes.h.
189 : bool {
193#ifdef SK_PDF_LESS_COMPRESSION
195#else
197#endif
198};
◆ SkPDFArray_Append() [1/4]
◆ SkPDFArray_Append() [2/4]
◆ SkPDFArray_Append() [3/4]
◆ SkPDFArray_Append() [4/4]
template<typename
T , typename... Args>
static void SkPDFArray_Append |
( |
SkPDFArray * |
a, |
|
|
T |
v, |
|
|
Args... |
args |
|
) |
| |
|
inlinestatic |
Definition at line 117 of file SkPDFTypes.h.
117 {
120}
static void SkPDFArray_Append(SkPDFArray *a, int v)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
◆ SkPDFMakeArray()
template<typename... Args>
static std::unique_ptr< SkPDFArray > SkPDFMakeArray |
( |
Args... |
args | ) |
|
|
inlinestatic |
Definition at line 125 of file SkPDFTypes.h.
125 {
126 std::unique_ptr<SkPDFArray> ret(
new SkPDFArray());
127 ret->reserve(sizeof...(Args));
129 return ret;
130}
◆ SkPDFMakeDict()
static std::unique_ptr< SkPDFDict > SkPDFMakeDict |
( |
const char * |
type = nullptr | ) |
|
|
inlinestatic |
Definition at line 185 of file SkPDFTypes.h.
185 {
186 return std::make_unique<SkPDFDict>(
type);
187}
◆ SkPDFStreamOut()
Definition at line 591 of file SkPDFTypes.cpp.
594 {
599
600
602 executor->add([dictPtr, contentPtr, compress, doc, ref]() {
604 delete dictPtr;
605 delete contentPtr;
607 });
608 return ref;
609 }
611 return ref;
612}
static void serialize_stream(SkPDFDict *origDict, SkStreamAsset *stream, SkPDFSteamCompressionEnabled compress, SkPDFDocument *doc, SkPDFIndirectReference ref)
SkExecutor * executor() const
SkPDFIndirectReference reserveRef()
union flutter::testing::@2836::KeyboardChange::@76 content
◆ SkPDFWriteByteString()
void SkPDFWriteByteString |
( |
SkWStream * |
wStream, |
|
|
const char * |
cin, |
|
|
size_t |
len |
|
) |
| |
Definition at line 248 of file SkPDFTypes.cpp.
248 {
250}
static void write_byte_string(SkWStream *wStream, const char *cin, size_t len)
◆ SkPDFWriteTextString()
void SkPDFWriteTextString |
( |
SkWStream * |
wStream, |
|
|
const char * |
cin, |
|
|
size_t |
len |
|
) |
| |
Definition at line 245 of file SkPDFTypes.cpp.
245 {
247}
static void write_text_string(SkWStream *wStream, const char *cin, size_t len)