Home
last modified time | relevance | path

Searched refs:SkScalarRound (Results 1 – 25 of 44) sorted by relevance

12

/external/webkit/Source/WebCore/platform/graphics/android/
DImageAndroid.cpp160 dst->set(SkScalarRound(SkFloatToScalar(src.x())), in round()
161 SkScalarRound(SkFloatToScalar(src.y())), in round()
162 SkScalarRound(SkFloatToScalar((src.x() + src.width()))), in round()
163 SkScalarRound(SkFloatToScalar((src.y() + src.height())))); in round()
169 dst->set(SkScalarRound(SkFloatToScalar(src.x() * sx)), in round_scaled()
170 SkScalarRound(SkFloatToScalar(src.y() * sy)), in round_scaled()
171 SkScalarRound(SkFloatToScalar((src.x() + src.width()) * sx)), in round_scaled()
172 SkScalarRound(SkFloatToScalar((src.y() + src.height()) * sy))); in round_scaled()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DSimpleFontDataLinux.cpp96 ascent = SkScalarRound(-metrics.fAscent); in platformInit()
97 descent = SkScalarRound(height) - ascent; in platformInit()
130 m_maxCharWidth = SkScalarRound(xRange * SkScalarRound(m_platformData.size())); in platformInit()
133 m_avgCharWidth = SkScalarRound(metrics.fAvgCharWidth); in platformInit()
/external/skia/samplecode/
DSampleStrokeText.cpp45 int w = SkScalarRound(bounds.width()); in lettersToBitmap()
46 int h = SkScalarRound(bounds.height()); in lettersToBitmap()
91 int w = SkScalarRound(bounds.width()); in lettersToBitmap2()
92 int h = SkScalarRound(bounds.height()); in lettersToBitmap2()
DSampleCull.cpp82 array[n++].set(SkScalarRound(pts[0].fX), SkScalarRound(pts[0].fY)); in getpts()
85 array[n++].set(SkScalarRound(pts[1].fX), SkScalarRound(pts[1].fY)); in getpts()
DSampleLayerMask.cpp37 int w = SkScalarRound(r.width()); in drawMask()
38 int h = SkScalarRound(r.height()); in drawMask()
DSampleFilter2.cpp85 x = SkIntToScalar(SkScalarRound(x)); in onDrawContent()
86 y = SkIntToScalar(SkScalarRound(y)); in onDrawContent()
DSampleAAClip2.cpp174 return fRect.contains(SkScalarRound(x), SkScalarRound(y)) ? new Click(this) : NULL; in onFindClickHandler()
DSampleRegion.cpp260 return fRect.contains(SkScalarRound(x), SkScalarRound(y)) ? new Click(this) : NULL; in onFindClickHandler()
DSampleLines.cpp102 fAlpha = SkScalarRound(y); in onFindClickHandler()
DSampleApp.cpp242 desc.fWidth = SkScalarRound(win->width()); in windowSizeChanged()
243 desc.fHeight = SkScalarRound(win->height()); in windowSizeChanged()
256 desc.fWidth = SkScalarRound(win->width()); in windowSizeChanged()
257 desc.fHeight = SkScalarRound(win->height()); in windowSizeChanged()
919 int width = SkScalarRound(this->width()); in showZoomer()
920 int height = SkScalarRound(this->height()); in showZoomer()
1668 int w = SkScalarRound(this->width()); in onDispatchClick()
1669 int h = SkScalarRound(this->height()); in onDispatchClick()
/external/skia/tests/
DPathCoverageTest.cpp29 int idx = SkAbs32(SkScalarRound(dx)); in cheap_distance()
30 int idy = SkAbs32(SkScalarRound(dy)); in cheap_distance()
81 return estimate_pointCount(SkScalarRound(distance)); in quadraticPointCount_CE()
/external/skia/src/animator/
DSkAnimateBase.cpp170 SkColor color = SkColorSetARGB(SkScalarRound(array[0]), SkScalarRound(array[1]), in packARGB()
171 SkScalarRound(array[2]), SkScalarRound(array[3])); in packARGB()
DSkDrawColor.cpp88 return SkColorSetARGB(SkColorGetA(color), SkScalarRound(red), in HSV_to_RGB()
89 SkScalarRound(green), SkScalarRound(blue)); in HSV_to_RGB()
/external/chromium/chrome/common/
Dbadge_util.cc72 if (SkScalarRound(text_width) > (icon.width() - kMinPadding * 2)) { in DrawBadgeIconOverlay()
82 if ((SkScalarRound(text_width) % 1) != (badge_width % 1)) in DrawBadgeIconOverlay()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp33 uint32_t seed = SkScalarRound(meas.getLength()); in filterPath()
45 int n = SkScalarRound(SkScalarDiv(length, fSegLength)); in filterPath()
/external/skia/include/core/
DSkSize.h95 s.set(SkScalarRound(fWidth), SkScalarRound(fHeight)); in toRound()
DSkRect.h605 dst->set(SkScalarRound(fLeft), SkScalarRound(fTop), in round()
606 SkScalarRound(fRight), SkScalarRound(fBottom)); in round()
DSkScalar.h155 #define SkScalarMulRound(a, b) SkScalarRound((float)(a) * (b))
289 #define SkScalarRound(x) SkScalarRoundToInt(x) macro
/external/skia/src/ports/
DSkFontHost_ascender.cpp79 int ppemX = SkScalarRound(sx); in SkScalerContext_Ascender()
80 int ppemY = SkScalarRound(sy); in SkScalerContext_Ascender()
DSkFontHost_gamma.cpp44 int xx = SkScalarRound(SkFloatToScalar(x * 255)); in build_power_table()
/external/skia/src/utils/unix/
DSkOSWindow_Unix.cpp183 glViewport(0, 0, SkScalarRound(this->width()), SkScalarRound(this->height())); in attachGL()
/external/skia/src/views/
DSkStackViewLayout.cpp170 pos = SkIntToScalar(SkScalarRound(pos)); in onLayoutChildren()
174 crossLoc = SkIntToScalar(SkScalarRound(crossLoc)); in onLayoutChildren()
DSkWindow.cpp134 SkScalarRound(this->width()), in handleInval()
135 SkScalarRound(this->height())); in handleInval()
DSkParsePaint.cpp99 paint->setAlpha(SkScalarRound(x * 255)); in SkPaint_Inflate()
/external/skia/src/core/
DSkFP.h22 #define SkFPRound(x) SkScalarRound(n)

12