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

Unified Diff: src/core/SkPaint.cpp

Issue 176963003: Upstream changes from Android (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkPaint.h ('k') | src/images/SkImageDecoder_libwebp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPaint.cpp
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index 9191ce00673d78eb39b429e0a0448b4f349a2de7..64a7a3da2ef63f7c84f145435a4a3fce66f897cf 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -515,42 +515,6 @@ static void DetachDescProc(SkTypeface* typeface, const SkDescriptor* desc,
*((SkGlyphCache**)context) = SkGlyphCache::DetachCache(typeface, desc);
}
-#ifdef SK_BUILD_FOR_ANDROID
-const SkGlyph& SkPaint::getUnicharMetrics(SkUnichar text,
- const SkMatrix* deviceMatrix) {
- SkGlyphCache* cache;
- descriptorProc(NULL, deviceMatrix, DetachDescProc, &cache, true);
-
- const SkGlyph& glyph = cache->getUnicharMetrics(text);
-
- SkGlyphCache::AttachCache(cache);
- return glyph;
-}
-
-const SkGlyph& SkPaint::getGlyphMetrics(uint16_t glyphId,
- const SkMatrix* deviceMatrix) {
- SkGlyphCache* cache;
- descriptorProc(NULL, deviceMatrix, DetachDescProc, &cache, true);
-
- const SkGlyph& glyph = cache->getGlyphIDMetrics(glyphId);
-
- SkGlyphCache::AttachCache(cache);
- return glyph;
-}
-
-const void* SkPaint::findImage(const SkGlyph& glyph,
- const SkMatrix* deviceMatrix) {
- // See ::detachCache()
- SkGlyphCache* cache;
- descriptorProc(NULL, deviceMatrix, DetachDescProc, &cache, true);
-
- const void* image = cache->findImage(glyph);
-
- SkGlyphCache::AttachCache(cache);
- return image;
-}
-#endif
-
int SkPaint::textToGlyphs(const void* textData, size_t byteLength,
uint16_t glyphs[]) const {
if (byteLength == 0) {
« no previous file with comments | « include/core/SkPaint.h ('k') | src/images/SkImageDecoder_libwebp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698