aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFTypes.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-09-02 11:29:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-02 11:29:46 -0700
commit022c2bd37a3d5b1611928b67e0be1c30a1a0946f (patch)
tree7b7d317361d1a0c10633575081c662b2a79502d8 /src/pdf/SkPDFTypes.cpp
parent233eb0adc7df47ac38eac20231f4b04e90cb0d8d (diff)
SkMakeUnique.h defines skstd::make_unique<T>(Args...)
Diffstat (limited to 'src/pdf/SkPDFTypes.cpp')
-rw-r--r--src/pdf/SkPDFTypes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index 838b5efeb9..7a1e0a48f5 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -7,6 +7,7 @@
#include "SkData.h"
#include "SkDeflate.h"
+#include "SkMakeUnique.h"
#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
#include "SkStream.h"
@@ -506,8 +507,7 @@ void SkPDFSharedStream::addResources(
////////////////////////////////////////////////////////////////////////////////
SkPDFStream:: SkPDFStream(sk_sp<SkData> data) {
- this->setData(std::unique_ptr<SkStreamAsset>(
- new SkMemoryStream(std::move(data))));
+ this->setData(skstd::make_unique<SkMemoryStream>(std::move(data)));
}
SkPDFStream::SkPDFStream(std::unique_ptr<SkStreamAsset> stream) {