Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: src/pdf/SkPDFStream.h

Issue 1837553002: SkPDF s/SkAutoTDelete/std::unique_ptr/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-03-28 (Monday) 10:22:50 EDT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFStream_DEFINED 10 #ifndef SkPDFStream_DEFINED
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 SkPDFStream() {} 52 SkPDFStream() {}
53 53
54 /** Only call this function once. */ 54 /** Only call this function once. */
55 void setData(SkStream* stream); 55 void setData(SkStream* stream);
56 void setData(SkData* data) { 56 void setData(SkData* data) {
57 SkMemoryStream memoryStream(data); 57 SkMemoryStream memoryStream(data);
58 this->setData(&memoryStream); 58 this->setData(&memoryStream);
59 } 59 }
60 60
61 private: 61 private:
62 SkAutoTDelete<SkStreamRewindable> fCompressedData; 62 std::unique_ptr<SkStreamRewindable> fCompressedData;
63 63
64 typedef SkPDFDict INHERITED; 64 typedef SkPDFDict INHERITED;
65 }; 65 };
66 66
67 #endif 67 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698