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

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

Issue 18328026: Added SkPDFStream::setData(SkData*) in preparation for move from SkStream to SkData (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual bool populate(SkPDFCatalog* catalog); 61 virtual bool populate(SkPDFCatalog* catalog);
62 62
63 void setSubstitute(SkPDFStream* stream) { 63 void setSubstitute(SkPDFStream* stream) {
64 fSubstitute.reset(stream); 64 fSubstitute.reset(stream);
65 } 65 }
66 66
67 SkPDFStream* getSubstitute() { 67 SkPDFStream* getSubstitute() {
68 return fSubstitute.get(); 68 return fSubstitute.get();
69 } 69 }
70 70
71 void setData(SkData* data);
71 void setData(SkStream* stream); 72 void setData(SkStream* stream);
72 73
73 SkStream* getData() { 74 SkStream* getData() {
74 return fData.get(); 75 return fData.get();
75 } 76 }
76 77
77 void setState(State state) { 78 void setState(State state) {
78 fState = state; 79 fState = state;
79 } 80 }
80 81
81 State getState() { 82 State getState() {
82 return fState; 83 return fState;
83 } 84 }
84 85
85 private: 86 private:
86 // Indicates what form (or if) the stream has been requested. 87 // Indicates what form (or if) the stream has been requested.
87 State fState; 88 State fState;
88 89
89 // TODO(vandebo): Use SkData (after removing deprecated constructor). 90 // TODO(vandebo): Use SkData (after removing deprecated constructor).
90 SkAutoTUnref<SkStream> fData; 91 SkAutoTUnref<SkStream> fData;
91 SkAutoTUnref<SkPDFStream> fSubstitute; 92 SkAutoTUnref<SkPDFStream> fSubstitute;
92 93
93 typedef SkPDFDict INHERITED; 94 typedef SkPDFDict INHERITED;
94 }; 95 };
95 96
96 #endif 97 #endif
OLDNEW
« no previous file with comments | « no previous file | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698