diff options
author | halcanary <halcanary@google.com> | 2016-05-03 12:10:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-03 12:10:04 -0700 |
commit | 676ab68b04597c997e3152f31c08090c0d2ccbe4 (patch) | |
tree | aa04e9083b1b788bdc63bb966bea03eb73637d71 /src/utils/SkLua.cpp | |
parent | 68f7460fd18357a81a3d4243f1a798f0d64b621e (diff) |
documentation: SkDocument::MakePDF()
also, update some tools.
DOCS_PREVIEW= https://skia.org/user/sample/pdf?cl=1936283003
DOCS_PREVIEW= https://skia.org/user/api/canvas?cl=1936283003
Review-Url: https://codereview.chromium.org/1936283003
Diffstat (limited to 'src/utils/SkLua.cpp')
-rw-r--r-- | src/utils/SkLua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp index 9369a6bd9d..886f3d4ffd 100644 --- a/src/utils/SkLua.cpp +++ b/src/utils/SkLua.cpp @@ -1950,12 +1950,12 @@ static int lsk_newDocumentPDF(lua_State* L) { file = lua_tolstring(L, 1, nullptr); } - SkDocument* doc = SkDocument::CreatePDF(file); + sk_sp<SkDocument> doc = SkDocument::MakePDF(file); if (nullptr == doc) { // do I need to push a nil on the stack and return 1? return 0; } else { - push_ref(L, doc)->unref(); + push_ref(L, std::move(doc)); return 1; } } |