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

Side by Side Diff: src/sfnt/SkOTUtils.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/ports/SkTypeface_win_dw.cpp ('k') | src/utils/SkFrontBufferedStream.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 2012 Google Inc. 2 * Copyright 2012 Google Inc.
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 #ifndef SkOTUtils_DEFINED 8 #ifndef SkOTUtils_DEFINED
9 #define SkOTUtils_DEFINED 9 #define SkOTUtils_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 * returns NULL. 26 * returns NULL.
27 * 27 *
28 * Essentially, this removes any existing 'name' table and replaces it 28 * Essentially, this removes any existing 'name' table and replaces it
29 * with a new one in which FontFamilyName, FontSubfamilyName, 29 * with a new one in which FontFamilyName, FontSubfamilyName,
30 * UniqueFontIdentifier, FullFontName, and PostscriptName are fontName. 30 * UniqueFontIdentifier, FullFontName, and PostscriptName are fontName.
31 * 31 *
32 * The new 'name' table records will be written with the Windows, 32 * The new 'name' table records will be written with the Windows,
33 * UnicodeBMPUCS2, and English_UnitedStates settings. 33 * UnicodeBMPUCS2, and English_UnitedStates settings.
34 * 34 *
35 * fontName and fontNameLen must be specified in terms of ASCII chars. 35 * fontName and fontNameLen must be specified in terms of ASCII chars.
36 *
37 * Does not affect fontData's ownership.
36 */ 38 */
37 static SkData* RenameFont(SkStream* fontData, const char* fontName, int font NameLen); 39 static SkData* RenameFont(SkStream* fontData, const char* fontName, int font NameLen);
38 40
39 /** An implementation of LocalizedStrings which obtains it's data from a 'na me' table. */ 41 /** An implementation of LocalizedStrings which obtains it's data from a 'na me' table. */
40 class LocalizedStrings_NameTable : public SkTypeface::LocalizedStrings { 42 class LocalizedStrings_NameTable : public SkTypeface::LocalizedStrings {
41 public: 43 public:
42 /** Takes ownership of the nameTableData and will free it with SK_DELETE . */ 44 /** Takes ownership of the nameTableData and will free it with SK_DELETE . */
43 LocalizedStrings_NameTable(SkOTTableName* nameTableData, 45 LocalizedStrings_NameTable(SkOTTableName* nameTableData,
44 SkOTTableName::Record::NameID::Predefined::Va lue types[], 46 SkOTTableName::Record::NameID::Predefined::Va lue types[],
45 int typesCount) 47 int typesCount)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 82 }
81 83
82 private: 84 private:
83 SkString fName; 85 SkString fName;
84 SkString fLanguage; 86 SkString fLanguage;
85 bool fHasNext; 87 bool fHasNext;
86 }; 88 };
87 }; 89 };
88 90
89 #endif 91 #endif
OLDNEW
« no previous file with comments | « src/ports/SkTypeface_win_dw.cpp ('k') | src/utils/SkFrontBufferedStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698