blob: 57567883aa67d92660efd996db75cae0c437ab4c [file] [log] [blame]
halcanary8ee06f22015-08-11 10:30:12 -07001/*
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 Reeda50c9c72017-12-14 16:27:52 -05007
Hal Canary0f888612018-10-04 13:34:44 -04008#include "SkCanvas.h"
Hal Canary23564b92018-09-07 14:33:14 -04009#include "SkPDFDocument.h"
Mike Reeda50c9c72017-12-14 16:27:52 -050010
Hal Canary23564b92018-09-07 14:33:14 -040011sk_sp<SkDocument> SkPDF::MakeDocument(SkWStream*, const SkPDF::Metadata&) { return nullptr; }
Mike Reeda50c9c72017-12-14 16:27:52 -050012
Hal Canary0f888612018-10-04 13:34:44 -040013void SkPDF::SetNodeId(SkCanvas* c, int n) {
14 c->drawAnnotation({0, 0, 0, 0}, "PDF_Node_Key", SkData::MakeWithCopy(&n, sizeof(n)).get());
15}