halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 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 | */ |
Mike Reed | a50c9c7 | 2017-12-14 16:27:52 -0500 | [diff] [blame] | 7 | |
Hal Canary | 0f88861 | 2018-10-04 13:34:44 -0400 | [diff] [blame] | 8 | #include "SkCanvas.h" |
Hal Canary | 23564b9 | 2018-09-07 14:33:14 -0400 | [diff] [blame] | 9 | #include "SkPDFDocument.h" |
Mike Reed | a50c9c7 | 2017-12-14 16:27:52 -0500 | [diff] [blame] | 10 | |
Hal Canary | 23564b9 | 2018-09-07 14:33:14 -0400 | [diff] [blame] | 11 | sk_sp<SkDocument> SkPDF::MakeDocument(SkWStream*, const SkPDF::Metadata&) { return nullptr; } |
Mike Reed | a50c9c7 | 2017-12-14 16:27:52 -0500 | [diff] [blame] | 12 | |
Hal Canary | 0f88861 | 2018-10-04 13:34:44 -0400 | [diff] [blame] | 13 | void SkPDF::SetNodeId(SkCanvas* c, int n) { |
| 14 | c->drawAnnotation({0, 0, 0, 0}, "PDF_Node_Key", SkData::MakeWithCopy(&n, sizeof(n)).get()); |
| 15 | } |