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

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

Issue 12315131: Make SkTDArray accessors const-friendly (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFFont.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 2011 Google Inc. 3 * Copyright 2011 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 SkPDFFont_DEFINED 10 #ifndef SkPDFFont_DEFINED
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SkPDFFont* fFont; 42 SkPDFFont* fFont;
43 SkPDFGlyphSet* fGlyphSet; 43 SkPDFGlyphSet* fGlyphSet;
44 }; 44 };
45 45
46 SkPDFGlyphSetMap(); 46 SkPDFGlyphSetMap();
47 ~SkPDFGlyphSetMap(); 47 ~SkPDFGlyphSetMap();
48 48
49 class F2BIter { 49 class F2BIter {
50 public: 50 public:
51 explicit F2BIter(const SkPDFGlyphSetMap& map); 51 explicit F2BIter(const SkPDFGlyphSetMap& map);
52 FontGlyphSetPair* next() const; 52 const FontGlyphSetPair* next() const;
53 void reset(const SkPDFGlyphSetMap& map); 53 void reset(const SkPDFGlyphSetMap& map);
54 54
55 private: 55 private:
56 const SkTDArray<FontGlyphSetPair>* fMap; 56 const SkTDArray<FontGlyphSetPair>* fMap;
57 mutable int fIndex; 57 mutable int fIndex;
58 }; 58 };
59 59
60 void merge(const SkPDFGlyphSetMap& usage); 60 void merge(const SkPDFGlyphSetMap& usage);
61 void reset(); 61 void reset();
62 62
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 SkAutoTUnref<SkPDFDict> fDescriptor; 193 SkAutoTUnref<SkPDFDict> fDescriptor;
194 194
195 SkAdvancedTypefaceMetrics::FontType fFontType; 195 SkAdvancedTypefaceMetrics::FontType fFontType;
196 196
197 // This should be made a hash table if performance is a problem. 197 // This should be made a hash table if performance is a problem.
198 static SkTDArray<FontRec>& CanonicalFonts(); 198 static SkTDArray<FontRec>& CanonicalFonts();
199 static SkBaseMutex& CanonicalFontsMutex(); 199 static SkBaseMutex& CanonicalFontsMutex();
200 }; 200 };
201 201
202 #endif 202 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698