Home
last modified time | relevance | path

Searched refs:SkToU16 (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/src/effects/
DSkPaintFlagsDrawFilter.cpp13 fClearFlags = SkToU16(clearFlags & SkPaint::kAllFlags); in SkPaintFlagsDrawFilter()
14 fSetFlags = SkToU16(setFlags & SkPaint::kAllFlags); in SkPaintFlagsDrawFilter()
DSkEmbossMask.cpp64 uint16_t value = SkToU16((1 << 15) / SkSqrt32(dx * dx + dy * dy + kDelta*kDelta/4)); in SkEmbossMask_BuildTable()
/external/skia/src/core/
DSkUtils.cpp335 dst[0] = SkToU16((0xD800 - 64) + (uni >> 10)); in SkUTF16_FromUnichar()
336 dst[1] = SkToU16(0xDC00 | (uni & 0x3FF)); in SkUTF16_FromUnichar()
341 dst[0] = SkToU16(uni); in SkUTF16_FromUnichar()
DSkScalerContext.cpp145 glyph->fWidth = SkToU16(mask.fBounds.width()); in getMetrics()
146 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics()
159 glyph->fWidth = SkToU16(ir.width()); in getMetrics()
160 glyph->fHeight = SkToU16(ir.height()); in getMetrics()
200 glyph->fWidth = SkToU16(dst.fBounds.width()); in getMetrics()
201 glyph->fHeight = SkToU16(dst.fBounds.height()); in getMetrics()
DSkMetaData.cpp129 rec->fDataCount = SkToU16(count); in set()
DSkPixmap.cpp110 return SkToU16(pixel); in pack_8888_to_4444()
DSkBitmapProcState_matrixProcs.cpp240 *xx++ = SkToU16(fx >> 16); fx += dx; in decal_nofilter_scale()
/external/skia/src/pdf/
DSkPDFFont.cpp200 SkGlyphID lastGlyph = SkToU16(typeface->countGlyphs() - 1); in GetFontResource()
210 lastGlyph = SkToU16(SkTMin<int>((int)lastGlyph, 254 + (int)subsetCode)); in GetFontResource()
366 uint16_t emSize = SkToU16(this->typeface()->getUnitsPerEm()); in getFontSubset()
475 uint16_t emSize = SkToU16(typeface->getUnitsPerEm()); in make_type1_font_descriptor()
515 widths->appendScalar(from_font_units(advance, SkToU16(emSize))); in populate_type_1_font()
518 widths->appendScalar(from_font_units(advance, SkToU16(emSize))); in populate_type_1_font()
DSkPDFDevice.cpp1338 const SkGlyphID maxGlyphID = SkToU16(typeface->countGlyphs() - 1); in internalDrawText()
/external/skia/src/views/
DSkEventSink.cpp113 fExtra16 = SkToU16(count); in SkListenersTagList()
194 list->fExtra16 = SkToU16(count - 1); in removeListenerID()
/external/skia/src/fonts/
DSkRandomScalerContext.cpp118 glyph->fWidth = SkToU16(ir.width()); in generateMetrics()
119 glyph->fHeight = SkToU16(ir.height()); in generateMetrics()
/external/skia/include/gpu/
DGrResourceKey.h90 SkASSERT(SkToU16(size) == size); in Builder()
91 SkASSERT(SkToU16(domain) == domain); in Builder()
/external/skia/include/core/
DSkColorPriv.h263 return SkToU16((r << SK_R16_SHIFT) | (g << SK_G16_SHIFT) | (b << SK_B16_SHIFT)); in SkPackRGB16()
646 #define SkPixel32ToPixel16_ToU16(src) SkToU16(SkPixel32ToPixel16(src))
724 SkASSERT(src == SkToU16(src)); in SkPixel16ToPixel32()
739 SkASSERT(src == SkToU16(src)); in SkPixel16ToColor()
DSkStream.h203 uint16_t v = SkToU16(value); in write16()
DSkTypes.h218 #define SkToU16(x) SkTo<uint16_t>(x) macro
/external/skia/src/gpu/
DGrProgramDesc.cpp59 return SkToU16(samplerTypeKey | in sampler_key()
/external/skia/src/ports/
DSkFontHost_FreeType.cpp1014 return SkToU16(FT_Get_Char_Index( fFace, uni )); in generateCharToGlyph()
1182 glyph->fWidth = SkToU16(SkFDot6Floor(bbox.xMax - bbox.xMin)); in generateMetrics()
1183 glyph->fHeight = SkToU16(SkFDot6Floor(bbox.yMax - bbox.yMin)); in generateMetrics()
1216 glyph->fWidth = SkToU16(irect.width()); in generateMetrics()
1217 glyph->fHeight = SkToU16(irect.height()); in generateMetrics()
1547 glyphs[i] = SkToU16(id); in onCharsToGlyphs()
DSkScalerContext_win_dw.cpp516 glyph->fWidth = SkToU16(bbox.right - bbox.left); in glyph_check_and_set_bounds()
517 glyph->fHeight = SkToU16(bbox.bottom - bbox.top); in glyph_check_and_set_bounds()
DSkFontHost_mac.cpp765 fGlyphCount = SkToU16(numGlyphs); in SkScalerContext_Mac()
1030 glyph->fWidth = SkToU16(skIBounds.width()); in generateMetrics()
1031 glyph->fHeight = SkToU16(skIBounds.height()); in generateMetrics()
/external/skia/src/sfnt/
DSkOTUtils.cpp132 nameRecords[i].length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(wchar_t))); in RenameFont()
/external/skia/src/opts/
DSkBitmapProcState_matrixProcs_neon.cpp177 *xx++ = SkToU16(fx >> 16); fx += dx; in decal_nofilter_scale_neon()
DSkBitmapProcState_opts_SSE2.cpp424 *xx++ = SkToU16(fx >> 16); in ClampX_ClampY_nofilter_scale_SSE2()
/external/skia/tests/
DMathTest.cpp517 SkToU16(65536); in DEF_TEST()
518 SkToU16(-5); in DEF_TEST()
/external/skia/src/xml/
DSkDOM.cpp209 node->fAttrCount = SkToU16(attrCount); in flushAttributes()
/external/skia/src/pipe/
DSkPipeCanvas.cpp89 return SkToU16(bits); in compute_nondef()

12