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

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

Issue 340783013: Switch SkPDFStream's internal storage from SkStream to SkData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/pdf/SkPDFImage.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | src/pdf/SkPDFStream.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698