Flutter Engine
The Flutter Engine
third_party
skia
src
pdf
SkDocument_PDF_None.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2015 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#include "
include/core/SkCanvas.h
"
9
#include "
include/core/SkData.h
"
10
#include "
include/docs/SkPDFDocument.h
"
11
12
class
SkPDFArray
{};
13
14
sk_sp<SkDocument>
SkPDF::MakeDocument
(
SkWStream
*,
const
SkPDF::Metadata
&) {
return
nullptr
; }
15
16
void
SkPDF::SetNodeId
(
SkCanvas
* c,
int
n) {
17
c->
drawAnnotation
({0, 0, 0, 0},
"PDF_Node_Key"
,
SkData::MakeWithCopy
(&n,
sizeof
(n)).
get
());
18
}
19
20
SkPDF::AttributeList::AttributeList
() =
default
;
21
22
SkPDF::AttributeList::~AttributeList
() =
default
;
SkCanvas.h
SkData.h
SkPDFDocument.h
SkCanvas
Definition:
SkCanvas.h:106
SkCanvas::drawAnnotation
void drawAnnotation(const SkRect &rect, const char key[], SkData *value)
Definition:
SkCanvas.cpp:1824
SkData::MakeWithCopy
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
Definition:
SkData.cpp:111
SkPDFArray
Definition:
SkDocument_PDF_None.cpp:12
SkPDF::AttributeList::~AttributeList
~AttributeList()
SkPDF::AttributeList::AttributeList
AttributeList()
SkWStream
Definition:
SkStream.h:218
sk_sp
Definition:
SkRefCnt.h:220
sk_sp::get
T * get() const
Definition:
SkRefCnt.h:303
SkPDF::MakeDocument
SK_API sk_sp< SkDocument > MakeDocument(SkWStream *stream, const Metadata &metadata)
Definition:
SkDocument_PDF_None.cpp:14
SkPDF::SetNodeId
SK_API void SetNodeId(SkCanvas *dst, int nodeID)
Definition:
SkDocument_PDF_None.cpp:16
SkPDF::Metadata
Definition:
SkPDFDocument.h:85
Generated on Sun Jun 23 2024 21:56:30 for Flutter Engine by
1.9.4