Home
last modified time | relevance | path

Searched refs:SkScalarHalf (Results 1 – 25 of 32) sorted by relevance

12

/external/skia/src/animator/
DSkParseSVGPath.cpp49 m.set(SkScalarHalf(3*j.fX - c.fX), SkScalarHalf(3*j.fY - c.fY)); in quadApprox()
50 n.set(SkScalarHalf(3*o.fX -q.fX), SkScalarHalf(3*o.fY - q.fY)); in quadApprox()
55 m.set(SkScalarHalf(3*p.fX - c.fX), SkScalarHalf(3*p.fY - c.fY)); in quadApprox()
56 n.set(SkScalarHalf(3*l.fX -p2.fX),SkScalarHalf(3*l.fY -p2.fY)); in quadApprox()
/external/skia/samplecode/
DSampleCull.cpp18 path->lineTo(SkScalarHalf(pts[0].fX + pts[1].fX) - tang.fY, in addbump()
19 SkScalarHalf(pts[0].fY + pts[1].fY) + tang.fX); in addbump()
138 canvas->translate( SkScalarHalf(this->width() - fClip.width()), in onDrawContent()
139 SkScalarHalf(this->height() - fClip.height())); in onDrawContent()
DSampleOvalTest.cpp48 const SkScalar rad = SkScalarHalf(fSize.width()); in checkOval()
49 SkScalar cx = SkScalarHalf(fSize.width()); in checkOval()
50 SkScalar cy = SkScalarHalf(fSize.height()); in checkOval()
DSampleBox.cpp25 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in onDrawContent()
DSampleSpiral.cpp25 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in onDrawContent()
DSampleHairline.cpp120 c.fX = SkScalarHalf(c.fX); in ave()
121 c.fY = SkScalarHalf(c.fY); in ave()
DSampleLines.cpp54 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in drawRings()
DSampleAnimatedGradient.cpp29 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in onDrawContent()
/external/webkit/Source/WebKit/android/
DRenderSkinMediaButton.cpp180 SkScalar quarterHeight = SkScalarHalf(SkScalarHalf(bounds.height())); in Draw()
181 bounds.fTop += quarterHeight + SkScalarHalf(3); in Draw()
/external/skia/src/core/
DSkPathMeasure.cpp81 SkScalar dx = SkScalarHalf(pts[1].fX) - in quad_too_curvy()
82 SkScalarHalf(SkScalarHalf(pts[0].fX + pts[2].fX)); in quad_too_curvy()
83 SkScalar dy = SkScalarHalf(pts[1].fY) - in quad_too_curvy()
84 SkScalarHalf(SkScalarHalf(pts[0].fY + pts[2].fY)); in quad_too_curvy()
DSkScan_Hairline.cpp179 SkScalar dx = SkScalarHalf(pts[0].fX + pts[2].fX) - pts[1].fX; in compute_int_quad_dist()
180 SkScalar dy = SkScalarHalf(pts[0].fY + pts[2].fY) - pts[1].fY; in compute_int_quad_dist()
329 SkScalar rx = SkScalarHalf(dx); in FrameRect()
330 SkScalar ry = SkScalarHalf(dy); in FrameRect()
DSkPath.cpp414 SkScalar halfW = SkScalarHalf(w); in addRoundRect()
416 SkScalar halfH = SkScalarHalf(h); in addRoundRect()
500 rx = SkMinScalar(SkScalarHalf(rect.width()), rx); in add_corner_arc()
501 ry = SkMinScalar(SkScalarHalf(rect.height()), ry); in add_corner_arc()
556 SkScalar rx = SkScalarHalf(oval.width()); in addOval()
557 SkScalar ry = SkScalarHalf(oval.height()); in addOval()
660 matrix.setScale(SkScalarHalf(oval.width()), SkScalarHalf(oval.height())); in build_arc_points()
DSkStrokerPriv.cpp221 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
DSkDraw.cpp589 SkScalar radius = SkScalarHalf(width); in drawPoints()
839 return x + SkScalarHalf(y); in fast_len()
1547 offsetX = SkScalarHalf(underlineWidth); in drawText()
1595 stopX = SkScalarHalf(stopX); in drawText()
1596 stopY = SkScalarHalf(stopY); in drawText()
1972 pathLen = SkScalarHalf(pathLen); in drawTextOnPath()
DSkScan_Antihair.cpp753 SkScalar rx = SkScalarHalf(strokeSize.fX); in AntiFrameRect()
754 SkScalar ry = SkScalarHalf(strokeSize.fY); in AntiFrameRect()
/external/skia/tests/
DClipperTest.cpp11 static const SkScalar CX = SkScalarHalf(L + R); in test_intersectline()
12 static const SkScalar CY = SkScalarHalf(T + B); in test_intersectline()
/external/skia/src/views/
DSkTextBox.cpp165 x = SkScalarHalf(marginWidth); in draw()
193 y = SkScalarHalf(height - textHeight); in draw()
DSkWidgets.cpp286 canvas->drawRoundRect(r, SkScalarHalf(this->height()), SkScalarHalf(this->height()), p);
DSkStackViewLayout.cpp60 static SkScalar center_align_proc(SkScalar childLimit, SkScalar parentLimit) { return SkScalarHalf(… in center_align_proc()
DSkWidget.cpp157 x = SkScalarHalf(this->width());
/external/skia/gpu/include/
DGrScalar.h40 #define GrScalarHalf(a) SkScalarHalf(a)
/external/skia/include/core/
DSkScalar.h193 #define SkScalarHalf(a) ((a) * 0.5f) macro
261 #define SkScalarHalf(a) ((a) >> 1) macro
DSkRect.h343 SkScalar centerX() const { return SkScalarHalf(fLeft + fRight); } in centerX()
344 SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); } in centerY()
/external/skia/src/pdf/
DSkPDFDevice.cpp102 xAdj = SkScalarHalf(xAdj); in align_text()
103 yAdj = SkScalarHalf(yAdj); in align_text()
639 SkScalar halfStroke = SkScalarHalf(strokeWidth); in drawPoints()
/external/webkit/Source/WebCore/platform/graphics/android/
DGraphicsContextAndroid.cpp175 shadow.blur = SkScalarHalf(SkIntToScalar(radius)); in setShadow()
566 const SkScalar radius = SkScalarHalf(diameter); in drawLine()

12