| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 10cdd0965bad931b3e719b8ef1db3227bc77bada..a4e240bbaa9e647b0e005859726f059e106170b3 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -930,6 +930,12 @@ Error PDFSink::draw(const Src& src, SkBitmap*, SkWStream* dst, SkString*) const
|
| if (!doc) {
|
| return "SkDocument::CreatePDF() returned nullptr";
|
| }
|
| + SkTArray<SkDocument::Attribute> info;
|
| + info.emplace_back(SkString("Title"), src.name());
|
| + info.emplace_back(SkString("Subject"),
|
| + SkString("rendering correctness test"));
|
| + info.emplace_back(SkString("Creator"), SkString("Skia/DM"));
|
| + doc->setMetadata(info, nullptr, nullptr);
|
| return draw_skdocument(src, doc.get(), dst);
|
| }
|
|
|
|
|