| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef SkPDFStream_DEFINED | 9 #ifndef SkPDFStream_DEFINED |
| 10 #define SkPDFStream_DEFINED | 10 #define SkPDFStream_DEFINED |
| 11 | 11 |
| 12 #include "SkPDFTypes.h" | 12 #include "SkPDFTypes.h" |
| 13 #include "SkRefCnt.h" | |
| 14 #include "SkStream.h" | 13 #include "SkStream.h" |
| 15 #include "SkTemplates.h" | |
| 16 | |
| 17 class SkPDFObjNumMap; | |
| 18 | 14 |
| 19 /** \class SkPDFStream | 15 /** \class SkPDFStream |
| 20 | 16 |
| 21 A stream object in a PDF. Note, all streams must be indirect objects (via | 17 A stream object in a PDF. Note, all streams must be indirect objects (via |
| 22 SkObjRef). | 18 SkObjRef). |
| 23 */ | 19 */ |
| 24 class SkPDFStream : public SkPDFDict { | 20 class SkPDFStream : public SkPDFDict { |
| 25 | 21 |
| 26 public: | 22 public: |
| 27 /** Create a PDF stream. A Length entry is automatically added to the | 23 /** Create a PDF stream. A Length entry is automatically added to the |
| (...skipping 29 matching lines...) Expand all Loading... |
| 57 this->setData(&memoryStream); | 53 this->setData(&memoryStream); |
| 58 } | 54 } |
| 59 | 55 |
| 60 private: | 56 private: |
| 61 std::unique_ptr<SkStreamRewindable> fCompressedData; | 57 std::unique_ptr<SkStreamRewindable> fCompressedData; |
| 62 | 58 |
| 63 typedef SkPDFDict INHERITED; | 59 typedef SkPDFDict INHERITED; |
| 64 }; | 60 }; |
| 65 | 61 |
| 66 #endif | 62 #endif |
| OLD | NEW |