Home
last modified time | relevance | path

Searched refs:SkToS16 (Results 1 – 17 of 17) sorted by relevance

/external/skia/src/core/
DSkAntiRun.h131 runs[0] = SkToS16(x);
132 runs[x] = SkToS16(n - x);
150 runs[0] = SkToS16(x);
151 runs[x] = SkToS16(n - x);
176 runs[0] = SkToS16(x); in BreakAt()
177 runs[x] = SkToS16(n - x); in BreakAt()
DSkFDot6.h45 SkASSERT(SkToS16(x) == x); in SkIntToFDot6()
DSkAlphaRuns.cpp19 fRuns[0] = SkToS16(width); in reset()
DSkDebug.cpp24 int16_t SkToS16(intmax_t x) { in SkToS16() function
DSkBitmapScaler.cpp185 fixedFilterValues[fixedI] = SkToS16(curFixed); in computeFilters()
DSkScan_Antihair.cpp81 runs[0] = SkToS16(n); in call_hline_blitter()
DSkBlitter.cpp453 ((int16_t*)runs)[index] = SkToS16(left - prevRite); in blitAntiH()
/external/skia/src/gpu/
DGrRect.h50 fLeft = SkToS16(r.fLeft); in set()
51 fTop = SkToS16(r.fTop); in set()
52 fRight = SkToS16(r.fRight); in set()
53 fBottom = SkToS16(r.fBottom); in set()
/external/skia/src/ports/
DSkTypeface_win_dw.cpp414 info->fAscent = SkToS16(dwfm.ascent); in onGetAdvancedTypefaceMetrics()
415 info->fDescent = SkToS16(dwfm.descent); in onGetAdvancedTypefaceMetrics()
416 info->fCapHeight = SkToS16(dwfm.capHeight); in onGetAdvancedTypefaceMetrics()
DSkFontHost_win.cpp848 glyph->fWidth = SkToS16(fTM.tmMaxCharWidth); in generateMetrics()
850 glyph->fWidth = SkToS16(size.cx); in generateMetrics()
852 glyph->fHeight = SkToS16(size.cy); in generateMetrics()
854 glyph->fTop = SkToS16(-fTM.tmAscent); in generateMetrics()
857 glyph->fLeft = SkToS16(0); in generateMetrics()
909 glyph->fTop = SkToS16(-gm.gmptGlyphOrigin.y); in generateMetrics()
910 glyph->fLeft = SkToS16(gm.gmptGlyphOrigin.x); in generateMetrics()
1805 info->fAscent = SkToS16(otm.otmTextMetrics.tmAscent); in onGetAdvancedTypefaceMetrics()
1806 info->fDescent = SkToS16(-otm.otmTextMetrics.tmDescent); in onGetAdvancedTypefaceMetrics()
DSkScalerContext_win_dw.cpp455 glyph->fLeft = SkToS16(bbox.left); in glyph_check_and_set_bounds()
456 glyph->fTop = SkToS16(bbox.top); in glyph_check_and_set_bounds()
DSkFontHost_FreeType.cpp1148 glyph->fTop = -SkToS16(SkFDot6Floor(bbox.yMax)); in generateMetrics()
1149 glyph->fLeft = SkToS16(SkFDot6Floor(bbox.xMin)); in generateMetrics()
1171 glyph->fTop = -SkToS16(fFace->glyph->bitmap_top); in generateMetrics()
1172 glyph->fLeft = SkToS16(fFace->glyph->bitmap_left); in generateMetrics()
DSkFontHost_mac.cpp1135 glyph->fLeft = SkToS16(skIBounds.fLeft); in generateMetrics()
1136 glyph->fTop = SkToS16(skIBounds.fTop); in generateMetrics()
/external/skia/include/core/
DSkTypes.h262 SK_API int16_t SkToS16(intmax_t);
272 #define SkToS16(x) ((int16_t)(x)) macro
DSkPoint.h31 fX = SkToS16(x); in set()
32 fY = SkToS16(y); in set()
/external/skia/src/utils/
DSkInterpolator.cpp29 fFrameCount = SkToS16(frameCount); in reset()
/external/skia/tests/
DMathTest.cpp501 SkToS16(32768); in DEF_TEST()
502 SkToS16(-32769); in DEF_TEST()