| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Mutex guards fState, fDataStream, and fSubstitute in public interface. | 93 // Mutex guards fState, fDataStream, and fSubstitute in public interface. |
| 94 SkMutex fMutex; | 94 SkMutex fMutex; |
| 95 | 95 |
| 96 SkMemoryStream fMemoryStream; // Used by fDataStream when | 96 SkAutoTDelete<SkStreamRewindable> fDataStream; |
| 97 // fDataStream needs to be backed | |
| 98 // by SkData. | |
| 99 SkAutoTUnref<SkStreamRewindable> fDataStream; | |
| 100 SkAutoTUnref<SkPDFStream> fSubstitute; | 97 SkAutoTUnref<SkPDFStream> fSubstitute; |
| 101 | 98 |
| 102 typedef SkPDFDict INHERITED; | 99 typedef SkPDFDict INHERITED; |
| 103 }; | 100 }; |
| 104 | 101 |
| 105 #endif | 102 #endif |
| OLD | NEW |