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 22 matching lines...) Expand all Loading... |
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. |
37 */ | 37 */ |
38 explicit SkPDFStream(SkStream* stream); | 38 explicit SkPDFStream(SkStream* stream); |
39 | 39 |
40 virtual ~SkPDFStream(); | 40 virtual ~SkPDFStream(); |
41 | 41 |
42 // The SkPDFObject interface. | 42 // The SkPDFObject interface. |
43 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog) SK_OVERRID
E; | 43 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog) override; |
44 | 44 |
45 protected: | 45 protected: |
46 enum State { | 46 enum State { |
47 kUnused_State, //!< The stream hasn't been requested yet. | 47 kUnused_State, //!< The stream hasn't been requested yet. |
48 kNoCompression_State, //!< The stream's been requested in an | 48 kNoCompression_State, //!< The stream's been requested in an |
49 // uncompressed form. | 49 // uncompressed form. |
50 kCompressed_State, //!< The stream's already been compressed. | 50 kCompressed_State, //!< The stream's already been compressed. |
51 }; | 51 }; |
52 | 52 |
53 /** Create a PDF stream with the same content and dictionary entries | 53 /** Create a PDF stream with the same content and dictionary entries |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Indicates what form (or if) the stream has been requested. | 89 // Indicates what form (or if) the stream has been requested. |
90 State fState; | 90 State fState; |
91 | 91 |
92 SkAutoTDelete<SkStreamRewindable> fDataStream; | 92 SkAutoTDelete<SkStreamRewindable> fDataStream; |
93 SkAutoTUnref<SkPDFStream> fSubstitute; | 93 SkAutoTUnref<SkPDFStream> fSubstitute; |
94 | 94 |
95 typedef SkPDFDict INHERITED; | 95 typedef SkPDFDict INHERITED; |
96 }; | 96 }; |
97 | 97 |
98 #endif | 98 #endif |
OLD | NEW |