のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Skia

mesure_text

979 SkScalar SkPaint::measureText(const void* textData, size_t length, 980 SkRect* bounds, SkScalar zoom) const { 981 const char* text = (const char*)textData; 982 SkASSERT(text != NULL || length == 0); 983 984 SkScalar scale = 0; 985 SkAu…

MesureText

905 SkScalar SkPaint::measure_text(SkGlyphCache* cache, 906 const char* text, size_t byteLength, 907 int* count, SkRect* bounds) const { 908 SkASSERT(count); 909 if (byteLength == 0) { 910 *count = 0; 911 if (bounds) { 912 bounds->setEmpty…

sk_getAdvance

669 static const SkGlyph& sk_getAdvance_utf8_next(SkGlyphCache* cache, 670 const char** text) { 671 SkASSERT(cache != NULL); 672 SkASSERT(text != NULL); 673 674 return cache->getUnicharAdvance(SkUTF8_NextUnichar(text)); 675 } 676 677 stati…

getAdvanced

236 SkGlyph* SkGlyphCache::lookupMetrics(uint32_t id, MetricsType mtype) { 237 SkGlyph* glyph; 238 239 int hi = 0; 240 int count = fGlyphArray.count(); 241 242 if (count) { 243 SkGlyph** gptr = fGlyphArray.begin(); 244 int lo = 0; 245 246 …

NextLogicalFont

117 static SkScalerContext* allocNextContext(const SkScalerContext::Rec& rec) { 118 // fonthost will determine the next possible font to search, based 119 // on the current font in fRec. It will return NULL if ctx is our 120 // last font t…

fontFileElementHandler

83 /** 84 * Handler for font files. This processes the attributes for language and 85 * variants then lets textHandler handle the actual file name 86 */ 87 void fontFileElementHandler(FamilyData *familyData, const char **attributes) { 88 F…

fontVariant

675 enum FontVariant { 676 kDefault_Variant, // Currently setting yourself to Default gives you Compact Variant 677 kCompact_Variant, 678 kElegant_Variant, 679 kLast_Variant = kElegant_Variant, 680 };

skia debug

59 #if !defined(SK_DEBUG) && !defined(SK_RELEASE) 60 #ifdef NDEBUG 61 #define SK_RELEASE 62 #else 63 #define SK_DEBUG 64 #endif 65 #endif 17 #if defined(SK_DEBUG) && defined(SK_RELEASE) 18 #error "cannot define both SK_DEBUG and SK_RELEASE…

kImageIsOpaque_Flag

kImageIsOpaque_Flag 541 bool SkBitmap::isOpaque() const { 542 switch (fConfig) { 543 case kNo_Config: 544 return true; 545 546 case kA1_Config: 547 case kA8_Config: 548 case kARGB_4444_Config: 549 case kARGB_8888_Config: 550 return (fFlags…

kColorsAreOpaque_Flag

kColorsAreOpaque_Flag /external/skia/src/images/ SkImageDecoder_libgif.cpp 235 ctable->setFlags(ctable->getFlags() | SkColorTable::kColorsAreOpaque_Flag); SkImageDecoder_libpng.cpp 595 colorTable->setFlags(colorTable->getFlags() | SkColorT…

Skia gyp_skia

d:\skia\src\trunkへ一度チェックアウトした。VS2010のプロジェクトを作るために、gyp_skiaを実行した。 以下のようなエラーがでる。