#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTo.h"
#include "src/core/SkTHash.h"
#include <memory>
#include <new>
#include <type_traits>
#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 199 of file SkPDFTypes.h.
199 : bool {
203#ifdef SK_PDF_LESS_COMPRESSION
205#else
207#endif
208};
◆ 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 127 of file SkPDFTypes.h.
127 {
130}
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 135 of file SkPDFTypes.h.
135 {
136 std::unique_ptr<SkPDFArray> ret(
new SkPDFArray());
137 ret->reserve(sizeof...(Args));
139 return ret;
140}
◆ SkPDFMakeDict()
static std::unique_ptr< SkPDFDict > SkPDFMakeDict |
( |
const char * |
type = nullptr | ) |
|
|
inlinestatic |
Definition at line 195 of file SkPDFTypes.h.
195 {
196 return std::make_unique<SkPDFDict>(
type);
197}
◆ SkPDFStreamOut()
Definition at line 585 of file SkPDFTypes.cpp.
588 {
593
594
596 executor->add([dictPtr, contentPtr, compress, doc, ref]() {
598 delete dictPtr;
599 delete contentPtr;
601 });
602 return ref;
603 }
605 return ref;
606}
static void serialize_stream(SkPDFDict *origDict, SkStreamAsset *stream, SkPDFSteamCompressionEnabled compress, SkPDFDocument *doc, SkPDFIndirectReference ref)
SkExecutor * executor() const
SkPDFIndirectReference reserveRef()
union flutter::testing::@2838::KeyboardChange::@76 content
◆ SkPDFWriteByteString()
void SkPDFWriteByteString |
( |
SkWStream * |
wStream, |
|
|
const char * |
cin, |
|
|
size_t |
len |
|
) |
| |
Definition at line 242 of file SkPDFTypes.cpp.
242 {
244}
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 239 of file SkPDFTypes.cpp.
239 {
241}
static void write_text_string(SkWStream *wStream, const char *cin, size_t len)