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: trunk/include/core/SkFontHost.h

Issue 12915003: call onGetUPEM to subclasses can optimize it, and place default behavior (Closed) Base URL: http://skia.googlecode.com/svn/
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 | « no previous file | trunk/src/core/SkTypeface.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 SkFontHost_DEFINED 10 #ifndef SkFontHost_DEFINED
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 kRGB_LCDOrder = 0, //!< this is the default 84 kRGB_LCDOrder = 0, //!< this is the default
85 kBGR_LCDOrder = 1, 85 kBGR_LCDOrder = 1,
86 kNONE_LCDOrder = 2 86 kNONE_LCDOrder = 2
87 }; 87 };
88 88
89 /** @deprecated set on Device creation. */ 89 /** @deprecated set on Device creation. */
90 static void SetSubpixelOrder(LCDOrder order); 90 static void SetSubpixelOrder(LCDOrder order);
91 /** @deprecated get from Device. */ 91 /** @deprecated get from Device. */
92 static LCDOrder GetSubpixelOrder(); 92 static LCDOrder GetSubpixelOrder();
93 93
94 #ifdef SK_BUILD_FOR_ANDROID
95 /**
96 * Return the number of font units per em.
97 *
98 * @param fontID the font to query.
99 * @return the number of font units per em or 0 on error.
100 */
101 static uint32_t GetUnitsPerEm(SkFontID fontID);
102 #endif
103
104 /** If Skia is running in a constrained environment and the typeface 94 /** If Skia is running in a constrained environment and the typeface
105 implementation is handle based, the typeface data may become 95 implementation is handle based, the typeface data may become
106 unavailable asynchronously. If a font host or scaler context method is 96 unavailable asynchronously. If a font host or scaler context method is
107 unable to access font data, it may call this function as a request to 97 unable to access font data, it may call this function as a request to
108 make the handle contained in the typeface useable. 98 make the handle contained in the typeface useable.
109 */ 99 */
110 static void EnsureTypefaceAccessible(const SkTypeface& typeface); 100 static void EnsureTypefaceAccessible(const SkTypeface& typeface);
111 101
112 /** 102 /**
113 * DEPRECATED -- will be DESTROYED 103 * DEPRECATED -- will be DESTROYED
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 */ 261 */
272 static size_t GetTableData(SkFontID fontID, SkFontTableTag tag, 262 static size_t GetTableData(SkFontID fontID, SkFontTableTag tag,
273 size_t offset, size_t length, void* data); 263 size_t offset, size_t length, void* data);
274 264
275 /////////////////////////////////////////////////////////////////////////// 265 ///////////////////////////////////////////////////////////////////////////
276 266
277 friend class SkTypeface; 267 friend class SkTypeface;
278 }; 268 };
279 269
280 #endif 270 #endif
OLDNEW
« no previous file with comments | « no previous file | trunk/src/core/SkTypeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698