aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFCanon.h
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-04-24 13:58:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-24 19:13:56 +0000
commit6736236fafb93080cc8954c0016c05afcf9824a0 (patch)
treea4d55c6b9da9185539f55fd336f7ceeb1f067ffb /src/pdf/SkPDFCanon.h
parent849dce1d7bc10b532c3d8f81a503416caf5f444e (diff)
include/private/SkTemplates: Cleanup bare pointers.
include/private: - SkAutoTArray, SkAutoTMalloc no longer use bare pointers to owned memory, - SkTHash and SkAutoTArray are now std::move()able. - SkAutoTArray::swap no longer neccesary. - SkAutoTMalloc::operator=() defined. src/pdf: - SkPDFCanon and SkPDFObjectSerializer are now std::move()able. - `template <class T> static void renew(T* t) { t->~T(); new (t) T; }` is gone. Change-Id: I2f36a0780c47d1427a85da240121c898387fb4cf Reviewed-on: https://skia-review.googlesource.com/123401 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/pdf/SkPDFCanon.h')
-rw-r--r--src/pdf/SkPDFCanon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 3c0e87bb1c..99d8ab8a0d 100644
--- a/src/pdf/SkPDFCanon.h
+++ b/src/pdf/SkPDFCanon.h
@@ -26,7 +26,9 @@ class SkPDFCanon {
public:
~SkPDFCanon();
SkPDFCanon();
+ SkPDFCanon(SkPDFCanon&&);
SkPDFCanon(const SkPDFCanon&) = delete;
+ SkPDFCanon& operator=(SkPDFCanon&&);
SkPDFCanon& operator=(const SkPDFCanon&) = delete;
SkTHashMap<SkPDFImageShaderKey, sk_sp<SkPDFObject>> fImageShaderMap;