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

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

Issue 1124193003: SkPDF: Move utility fns to SkPDFUtils (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-05-06 (Wednesday) 13:16:21 EDT Created 5 years, 7 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/SkPDFFont.cpp ('k') | src/pdf/SkPDFTypes.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 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef SkPDFTypes_DEFINED 9 #ifndef SkPDFTypes_DEFINED
10 #define SkPDFTypes_DEFINED 10 #define SkPDFTypes_DEFINED
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const SkPDFSubstituteMap& substitutes) final; 173 const SkPDFSubstituteMap& substitutes) final;
174 void addResources(SkPDFObjNumMap*, const SkPDFSubstituteMap&) const final; 174 void addResources(SkPDFObjNumMap*, const SkPDFSubstituteMap&) const final;
175 SkPDFAtom(SkPDFUnion&& v) : fValue(v.move()) {} 175 SkPDFAtom(SkPDFUnion&& v) : fValue(v.move()) {}
176 176
177 private: 177 private:
178 const SkPDFUnion fValue; 178 const SkPDFUnion fValue;
179 typedef SkPDFObject INHERITED; 179 typedef SkPDFObject INHERITED;
180 }; 180 };
181 #endif // 0 181 #endif // 0
182 182
183 class SkPDFScalar { 183 ////////////////////////////////////////////////////////////////////////////////
184 public:
185 static void Append(SkScalar value, SkWStream* stream);
186 };
187
188 class SkPDFString {
189 public:
190 static SkString FormatString(const char* input, size_t len);
191 static const size_t kMaxLen = 65535;
192 };
193
194 184
195 /** \class SkPDFArray 185 /** \class SkPDFArray
196 186
197 An array object in a PDF. 187 An array object in a PDF.
198 */ 188 */
199 class SkPDFArray : public SkPDFObject { 189 class SkPDFArray : public SkPDFObject {
200 public: 190 public:
201 SK_DECLARE_INST_COUNT(SkPDFArray) 191 SK_DECLARE_INST_COUNT(SkPDFArray)
202 192
203 static const int kMaxLen = 8191; 193 static const int kMaxLen = 8191;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 352
363 SkPDFObject* operator()(SkPDFObject* o) const { 353 SkPDFObject* operator()(SkPDFObject* o) const {
364 return this->getSubstitute(o); 354 return this->getSubstitute(o);
365 } 355 }
366 356
367 private: 357 private:
368 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; 358 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap;
369 }; 359 };
370 360
371 #endif 361 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFont.cpp ('k') | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698