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 |
11 #define SkPDFStream_DEFINED | 11 #define SkPDFStream_DEFINED |
12 | 12 |
13 #include "SkPDFTypes.h" | 13 #include "SkPDFTypes.h" |
14 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
15 #include "SkStream.h" | 15 #include "SkStream.h" |
16 #include "SkTemplates.h" | 16 #include "SkTemplates.h" |
17 | 17 |
18 class SkPDFObjNumMap; | 18 class SkPDFObjNumMap; |
19 | 19 |
20 /** \class SkPDFStream | 20 /** \class SkPDFStream |
21 | 21 |
22 A stream object in a PDF. Note, all streams must be indirect objects (via | 22 A stream object in a PDF. Note, all streams must be indirect objects (via |
23 SkObjRef). | 23 SkObjRef). |
24 */ | 24 */ |
25 class SkPDFStream : public SkPDFDict { | 25 class SkPDFStream : public SkPDFDict { |
26 SK_DECLARE_INST_COUNT(SkPDFStream) | 26 |
27 public: | 27 public: |
28 /** Create a PDF stream. A Length entry is automatically added to the | 28 /** Create a PDF stream. A Length entry is automatically added to the |
29 * stream dictionary. | 29 * stream dictionary. |
30 * @param data The data part of the stream. Will be ref()ed. | 30 * @param data The data part of the stream. Will be ref()ed. |
31 */ | 31 */ |
32 explicit SkPDFStream(SkData* data); | 32 explicit SkPDFStream(SkData* data); |
33 | 33 |
34 /** Create a PDF stream. A Length entry is automatically added to the | 34 /** Create a PDF stream. A Length entry is automatically added to the |
35 * stream dictionary. | 35 * stream dictionary. |
36 * @param stream The data part of the stream. Will be duplicate()d. | 36 * @param stream The data part of the stream. Will be duplicate()d. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 private: | 69 private: |
70 // Indicates what form (or if) the stream has been requested. | 70 // Indicates what form (or if) the stream has been requested. |
71 State fState; | 71 State fState; |
72 | 72 |
73 SkAutoTDelete<SkStreamRewindable> fDataStream; | 73 SkAutoTDelete<SkStreamRewindable> fDataStream; |
74 | 74 |
75 typedef SkPDFDict INHERITED; | 75 typedef SkPDFDict INHERITED; |
76 }; | 76 }; |
77 | 77 |
78 #endif | 78 #endif |
OLD | NEW |