OLD | NEW |
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 Loading... |
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 |
OLD | NEW |