Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: src/pdf/SkPDFStream.h

Issue 849103004: Make SkStream *not* ref counted. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase, just in case. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698