Home
last modified time | relevance | path

Searched refs:WebCoreFloatToSkScalar (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
DSkiaUtils.h60 inline SkScalar WebCoreFloatToSkScalar(float f) in WebCoreFloatToSkScalar() function
78 return SkScalarNearlyEqual(WebCoreFloatToSkScalar(a), WebCoreFloatToSkScalar(b)); in WebCoreFloatNearlyEqual()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DGradient.cpp187 pos[0] = WebCoreFloatToSkScalar(0.0); in fillStops()
195 pos[0] = WebCoreFloatToSkScalar(0.0); in fillStops()
201 pos[i] = WebCoreFloatToSkScalar(stop->stop); in fillStops()
209 pos[start + count] = WebCoreFloatToSkScalar(1.0); in fillStops()
255 SkScalar radius0 = m_r0 >= 0.0f ? WebCoreFloatToSkScalar(m_r0) : 0; in shader()
256 SkScalar radius1 = m_r1 >= 0.0f ? WebCoreFloatToSkScalar(m_r1) : 0; in shader()
DPath.cpp271 m_path.arcTo(p1, p2, WebCoreFloatToSkScalar(radius)); in addArcTo()
285 SkScalar cx = WebCoreFloatToSkScalar(p.x()); in addEllipse()
286 SkScalar cy = WebCoreFloatToSkScalar(p.y()); in addEllipse()
287 SkScalar radiusXScalar = WebCoreFloatToSkScalar(radiusX); in addEllipse()
288 SkScalar radiusYScalar = WebCoreFloatToSkScalar(radiusY); in addEllipse()
294 SkScalar startDegrees = WebCoreFloatToSkScalar(startAngle * 180 / piFloat); in addEllipse()
295 SkScalar sweepDegrees = WebCoreFloatToSkScalar(sweep * 180 / piFloat); in addEllipse()
441 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(size.height())); in translate()
DGraphicsContext.cpp891 SkScalar originX = WebCoreFloatToSkScalar(pt.x()) * deviceScaleFactor; in drawLineForDocumentMarker()
892 SkScalar originY = WebCoreFloatToSkScalar(pt.y()) * deviceScaleFactor; in drawLineForDocumentMarker()
900 SkScalar originX = WebCoreFloatToSkScalar(pt.x()); in drawLineForDocumentMarker()
903 SkScalar originY = WebCoreFloatToSkScalar(pt.y()) + 1; in drawLineForDocumentMarker()
918 …rect.set(originX, originY, originX + WebCoreFloatToSkScalar(width) * deviceScaleFactor, originY + … in drawLineForDocumentMarker()
939 r.fLeft = WebCoreFloatToSkScalar(pt.x()); in drawLineForText()
942 r.fTop = WebCoreFloatToSkScalar(floorf(pt.y() + 0.5f)); in drawLineForText()
943 r.fRight = r.fLeft + WebCoreFloatToSkScalar(width); in drawLineForText()
1425 paint.setStrokeWidth(WebCoreFloatToSkScalar(lineWidth)); in strokeRect()
1580 m_canvas->rotate(WebCoreFloatToSkScalar(angleInRadians * (180.0f / 3.14159265f))); in rotate()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DFloatPoint.cpp42 static inline SkScalar WebCoreFloatToSkScalar(float f) in WebCoreFloatToSkScalar() function
89 SkPoint p = { WebCoreFloatToSkScalar(m_x), WebCoreFloatToSkScalar(m_y) }; in operator SkPoint()