Home
last modified time | relevance | path

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

12

/external/skia/src/animator/
DSkParseSVGPath.cpp41 m.set(SkScalarHalf(3*j.fX - c.fX), SkScalarHalf(3*j.fY - c.fY)); in quadApprox()
42 n.set(SkScalarHalf(3*o.fX -q.fX), SkScalarHalf(3*o.fY - q.fY)); in quadApprox()
47 m.set(SkScalarHalf(3*p.fX - c.fX), SkScalarHalf(3*p.fY - c.fY)); in quadApprox()
48 n.set(SkScalarHalf(3*l.fX -p2.fX),SkScalarHalf(3*l.fY -p2.fY)); in quadApprox()
/external/skia/samplecode/
DSampleCull.cpp25 path->lineTo(SkScalarHalf(pts[0].fX + pts[1].fX) - tang.fY, in addbump()
26 SkScalarHalf(pts[0].fY + pts[1].fY) + tang.fX); in addbump()
145 canvas->translate( SkScalarHalf(this->width() - fClip.width()), in onDrawContent()
146 SkScalarHalf(this->height() - fClip.height())); in onDrawContent()
DSampleOvalTest.cpp55 const SkScalar rad = SkScalarHalf(fSize.width()); in checkOval()
56 SkScalar cx = SkScalarHalf(fSize.width()); in checkOval()
57 SkScalar cy = SkScalarHalf(fSize.height()); in checkOval()
DSampleBox.cpp32 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in onDrawContent()
DSampleSpiral.cpp32 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in onDrawContent()
DSampleHairline.cpp127 c.fX = SkScalarHalf(c.fX); in ave()
128 c.fY = SkScalarHalf(c.fY); in ave()
DSampleLines.cpp61 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in drawRings()
DSampleAnimatedGradient.cpp36 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in onDrawContent()
/external/webkit/Source/WebKit/android/
DRenderSkinMediaButton.cpp179 SkScalar quarterHeight = SkScalarHalf(SkScalarHalf(bounds.height())); in Draw()
180 bounds.fTop += quarterHeight + SkScalarHalf(3); in Draw()
/external/skia/src/core/
DSkPathMeasure.cpp73 SkScalar dx = SkScalarHalf(pts[1].fX) - in quad_too_curvy()
74 SkScalarHalf(SkScalarHalf(pts[0].fX + pts[2].fX)); in quad_too_curvy()
75 SkScalar dy = SkScalarHalf(pts[1].fY) - in quad_too_curvy()
76 SkScalarHalf(SkScalarHalf(pts[0].fY + pts[2].fY)); in quad_too_curvy()
DSkScan_Hairline.cpp178 SkScalar dx = SkScalarHalf(pts[0].fX + pts[2].fX) - pts[1].fX; in compute_int_quad_dist()
179 SkScalar dy = SkScalarHalf(pts[0].fY + pts[2].fY) - pts[1].fY; in compute_int_quad_dist()
335 SkScalar rx = SkScalarHalf(dx); in FrameRect()
336 SkScalar ry = SkScalarHalf(dy); in FrameRect()
DSkPath.cpp595 SkScalar halfW = SkScalarHalf(w); in addRoundRect()
597 SkScalar halfH = SkScalarHalf(h); in addRoundRect()
681 rx = SkMinScalar(SkScalarHalf(rect.width()), rx); in add_corner_arc()
682 ry = SkMinScalar(SkScalarHalf(rect.height()), ry); in add_corner_arc()
737 SkScalar rx = SkScalarHalf(oval.width()); in addOval()
738 SkScalar ry = SkScalarHalf(oval.height()); in addOval()
841 matrix.setScale(SkScalarHalf(oval.width()), SkScalarHalf(oval.height())); in build_arc_points()
DSkStrokerPriv.cpp213 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
DSkScan_Antihair.cpp774 SkScalar rx = SkScalarHalf(strokeSize.fX); in AntiFrameRect()
775 SkScalar ry = SkScalarHalf(strokeSize.fY); in AntiFrameRect()
DSkDraw.cpp601 SkScalar radius = SkScalarHalf(width); in drawPoints()
843 return x + SkScalarHalf(y); in fast_len()
1573 stopX = SkScalarHalf(stopX); in drawText()
1574 stopY = SkScalarHalf(stopY); in drawText()
1966 pathLen = SkScalarHalf(pathLen); in drawTextOnPath()
/external/skia/tests/
DClipperTest.cpp36 static const SkScalar CX = SkScalarHalf(L + R); in test_intersectline()
37 static const SkScalar CY = SkScalarHalf(T + B); in test_intersectline()
/external/skia/src/views/
DSkTextBox.cpp157 x = SkScalarHalf(marginWidth); in draw()
185 y = SkScalarHalf(height - textHeight); in draw()
DSkWidgets.cpp293 canvas->drawRoundRect(r, SkScalarHalf(this->height()), SkScalarHalf(this->height()), p);
DSkStackViewLayout.cpp67 static SkScalar center_align_proc(SkScalar childLimit, SkScalar parentLimit) { return SkScalarHalf(… in center_align_proc()
DSkWidget.cpp164 x = SkScalarHalf(this->width());
/external/skia/include/gpu/
DGrScalar.h33 #define GrScalarHalf(a) SkScalarHalf(a)
/external/skia/include/core/
DSkScalar.h186 #define SkScalarHalf(a) ((a) * 0.5f) macro
260 #define SkScalarHalf(a) ((a) >> 1) macro
DSkRect.h372 SkScalar centerX() const { return SkScalarHalf(fLeft + fRight); } in centerX()
373 SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); } in centerY()
/external/webkit/Source/WebCore/platform/graphics/android/context/
DPlatformGraphicsContext.cpp143 shadow.blur = SkScalarHalf(SkIntToScalar(radius)); in setShadow()
/external/skia/src/pdf/
DSkPDFDevice.cpp97 xAdj = SkScalarHalf(xAdj); in align_text()
98 yAdj = SkScalarHalf(yAdj); in align_text()
644 SkScalar halfStroke = SkScalarHalf(strokeWidth); in drawPoints()

12