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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 fSubstitute.reset(stream); | 67 fSubstitute.reset(stream); |
68 } | 68 } |
69 | 69 |
70 SkPDFStream* getSubstitute() { | 70 SkPDFStream* getSubstitute() { |
71 return fSubstitute.get(); | 71 return fSubstitute.get(); |
72 } | 72 } |
73 | 73 |
74 void setData(SkData* data); | 74 void setData(SkData* data); |
75 void setData(SkStream* stream); | 75 void setData(SkStream* stream); |
76 | 76 |
77 SkStream* getData() { | 77 SkData* getData() { return fData.get(); } |
78 return fData.get(); | |
79 } | |
80 | 78 |
81 void setState(State state) { | 79 void setState(State state) { |
82 fState = state; | 80 fState = state; |
83 } | 81 } |
84 | 82 |
83 size_t dataSize(); | |
mtklein
2014/06/25 15:53:17
move this up with getData?
hal.canary
2014/06/25 18:00:30
Done.
| |
84 | |
85 State getState() { | 85 State getState() { |
86 return fState; | 86 return fState; |
87 } | 87 } |
88 | 88 |
89 private: | 89 private: |
90 // Indicates what form (or if) the stream has been requested. | 90 // Indicates what form (or if) the stream has been requested. |
91 State fState; | 91 State fState; |
92 | 92 |
93 // TODO(vandebo): Use SkData (after removing deprecated constructor). | 93 SkAutoTUnref<SkData> fData; |
94 SkAutoTUnref<SkStream> fData; | |
95 SkAutoTUnref<SkPDFStream> fSubstitute; | 94 SkAutoTUnref<SkPDFStream> fSubstitute; |
96 | 95 |
97 typedef SkPDFDict INHERITED; | 96 typedef SkPDFDict INHERITED; |
98 }; | 97 }; |
99 | 98 |
100 #endif | 99 #endif |
OLD | NEW |