Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkAntiRun.h136 runs[0] = SkToS16(x);
137 runs[x] = SkToS16(n - x);
155 runs[0] = SkToS16(x);
156 runs[x] = SkToS16(n - x);
181 runs[0] = SkToS16(x); in BreakAt()
182 runs[x] = SkToS16(n - x); in BreakAt()
DSkAlphaRuns.cpp18 fRuns[0] = SkToS16(width); in reset()
DSkFDot6.h45 SkASSERT(SkToS16(x) == x); in SkIntToFDot6()
DSkBitmapScaler.cpp183 fixedFilterValues[fixedI] = SkToS16(curFixed); in computeFilters()
DSkScan_Antihair.cpp80 runs[0] = SkToS16(n); in call_hline_blitter()
DSkBlitter.cpp452 ((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()
DGrClipStackClip.cpp373 builder[1] = SkToS16(bounds.fLeft) | (SkToS16(bounds.fRight) << 16); in create_clip_mask_key()
374 builder[2] = SkToS16(bounds.fTop) | (SkToS16(bounds.fBottom) << 16); in create_clip_mask_key()
/external/skia/src/ports/
DSkTypeface_win_dw.cpp335 info->fAscent = SkToS16(dwfm.ascent); in onGetAdvancedMetrics()
336 info->fDescent = SkToS16(dwfm.descent); in onGetAdvancedMetrics()
337 info->fCapHeight = SkToS16(dwfm.capHeight); in onGetAdvancedMetrics()
DSkFontHost_win.cpp857 glyph->fWidth = SkToS16(fTM.tmMaxCharWidth); in generateMetrics()
859 glyph->fWidth = SkToS16(size.cx); in generateMetrics()
861 glyph->fHeight = SkToS16(size.cy); in generateMetrics()
863 glyph->fTop = SkToS16(-fTM.tmAscent); in generateMetrics()
866 glyph->fLeft = SkToS16(0); in generateMetrics()
918 glyph->fTop = SkToS16(-gm.gmptGlyphOrigin.y); in generateMetrics()
919 glyph->fLeft = SkToS16(gm.gmptGlyphOrigin.x); in generateMetrics()
1793 info->fAscent = SkToS16(otm.otmTextMetrics.tmAscent); in onGetAdvancedMetrics()
1794 info->fDescent = SkToS16(-otm.otmTextMetrics.tmDescent); in onGetAdvancedMetrics()
DSkFontHost_FreeType.cpp1134 glyph->fTop = -SkToS16(SkFDot6Floor(bbox.yMax)); in generateMetrics()
1135 glyph->fLeft = SkToS16(SkFDot6Floor(bbox.xMin)); in generateMetrics()
1168 glyph->fTop = SkToS16(irect.top()); in generateMetrics()
1169 glyph->fLeft = SkToS16(irect.left()); in generateMetrics()
DSkScalerContext_win_dw.cpp510 glyph->fLeft = SkToS16(bbox.left); in glyph_check_and_set_bounds()
511 glyph->fTop = SkToS16(bbox.top); in glyph_check_and_set_bounds()
DSkFontHost_mac.cpp1047 glyph->fLeft = SkToS16(skIBounds.fLeft); in generateMetrics()
1048 glyph->fTop = SkToS16(skIBounds.fTop); in generateMetrics()
/external/skia/src/pdf/
DSkPDFFont.cpp172 stemV = SkTMin(stemV, SkToS16(SkScalarRoundToInt(bounds.width()))); in GetMetrics()
184 metrics->fCapHeight = SkToS16(SkScalarRoundToInt(capHeight / 2)); in GetMetrics()
464 glyphCache.get(), &this->glyphUsage(), SkToS16(emSize), &defaultWidth); in getFontSubset()
469 "DW", scaleFromFontUnits(defaultWidth, SkToS16(emSize))); in getFontSubset()
/external/skia/include/core/
DSkPoint.h31 fX = SkToS16(x); in set()
32 fY = SkToS16(y); in set()
DSkTypes.h217 #define SkToS16(x) SkTo<int16_t>(x) macro
/external/skia/src/utils/
DSkInterpolator.cpp30 fFrameCount = SkToS16(frameCount); in reset()
/external/skia/tests/
DMathTest.cpp515 SkToS16(32768); in DEF_TEST()
516 SkToS16(-32769); in DEF_TEST()