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

Side by Side Diff: src/ports/SkFontHost_android.cpp

Issue 12739007: refactor android defines to implicitly assume NDK compliance unless it is explicitly marked as bein… (Closed) Base URL: https://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
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 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 #include "SkFontHost.h" 8 #include "SkFontHost.h"
9 #include "SkFontDescriptor.h" 9 #include "SkFontDescriptor.h"
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 if (index) { 878 if (index) {
879 *index = 0; // we don't have collections (yet) 879 *index = 0; // we don't have collections (yet)
880 } 880 }
881 return size; 881 return size;
882 } else { 882 } else {
883 return 0; 883 return 0;
884 } 884 }
885 } 885 }
886 886
887 SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) { 887 SkFontID SkFontHost::NextLogicalFont(SkFontID currFontID, SkFontID origFontID) {
888 #ifdef SK_BUILD_FOR_ANDROID_NDK 888 #if defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
889 // Skia does not support font fallback for ndk applications in order to 889 // Skia does not support font fallback for ndk applications in order to
890 // enable clients such as WebKit to customize their font selection. 890 // enable clients such as WebKit to customize their font selection.
891 // Clients can use GetFallbackFamilyNameForChar() to get the fallback 891 // Clients can use GetFallbackFamilyNameForChar() to get the fallback
892 // font for individual characters. 892 // font for individual characters.
893 return 0; 893 return 0;
894 #else 894 #else
895 SkAutoMutexAcquire ac(gFamilyHeadAndNameListMutex); 895 SkAutoMutexAcquire ac(gFamilyHeadAndNameListMutex);
896 896
897 load_system_fonts(); 897 load_system_fonts();
898 898
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 const char* fontsdir) { 1142 const char* fontsdir) {
1143 gTestMainConfigFile = mainconf; 1143 gTestMainConfigFile = mainconf;
1144 gTestFallbackConfigFile = fallbackconf; 1144 gTestFallbackConfigFile = fallbackconf;
1145 gTestFontFilePrefix = fontsdir; 1145 gTestFontFilePrefix = fontsdir;
1146 SkASSERT(gTestMainConfigFile); 1146 SkASSERT(gTestMainConfigFile);
1147 SkASSERT(gTestFallbackConfigFile); 1147 SkASSERT(gTestFallbackConfigFile);
1148 SkASSERT(gTestFontFilePrefix); 1148 SkASSERT(gTestFontFilePrefix);
1149 SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s", 1149 SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s",
1150 gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix) ); 1150 gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix) );
1151 } 1151 }
OLDNEW
« include/core/SkThread_platform.h ('K') | « include/core/SkThread_platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698