Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 – 20 of 20) sorted by relevance

/external/mesa3d/src/mesa/swrast/
Ds_aaline.c50 GLfloat halfWidth; /* half of line width */ member
375 xLeft = x0 - line->halfWidth; in segment()
376 xRight = x1 + line->halfWidth; in segment()
378 yBot = y0 - 3.0F * line->halfWidth; in segment()
379 yTop = y0 + line->halfWidth; in segment()
382 yBot = y0 - line->halfWidth; in segment()
383 yTop = y0 + 3.0F * line->halfWidth; in segment()
387 xLeft = x1 - line->halfWidth; in segment()
388 xRight = x0 + line->halfWidth; in segment()
390 yBot = y1 - 3.0F * line->halfWidth; in segment()
[all …]
Ds_aalinetemp.h122 line.halfWidth = 0.5F * CLAMP(ctx->Line.Width, in NAME()
132 line.xAdj = line.dx / line.len * line.halfWidth; in NAME()
133 line.yAdj = line.dy / line.len * line.halfWidth; in NAME()
/external/skia/src/effects/
DSkDashPathEffect.cpp282 SkScalar halfWidth, halfHeight; in asPoints() local
284 halfWidth = SkScalarHalf(clampedInitialDashLength); in asPoints()
287 halfWidth = SkScalarHalf(rec.getWidth()); in asPoints()
292 results->fFirst.addRect(x - halfWidth, y - halfHeight, in asPoints()
293 x + halfWidth, y + halfHeight); in asPoints()
333 SkScalar halfWidth, halfHeight; in asPoints() local
335 halfWidth = SkScalarHalf(temp); in asPoints()
338 halfWidth = SkScalarHalf(rec.getWidth()); in asPoints()
341 results->fLast.addRect(x - halfWidth, y - halfHeight, in asPoints()
342 x + halfWidth, y + halfHeight); in asPoints()
/external/skqp/src/effects/
DSkDashPathEffect.cpp282 SkScalar halfWidth, halfHeight; in asPoints() local
284 halfWidth = SkScalarHalf(clampedInitialDashLength); in asPoints()
287 halfWidth = SkScalarHalf(rec.getWidth()); in asPoints()
292 results->fFirst.addRect(x - halfWidth, y - halfHeight, in asPoints()
293 x + halfWidth, y + halfHeight); in asPoints()
333 SkScalar halfWidth, halfHeight; in asPoints() local
335 halfWidth = SkScalarHalf(temp); in asPoints()
338 halfWidth = SkScalarHalf(rec.getWidth()); in asPoints()
341 results->fLast.addRect(x - halfWidth, y - halfHeight, in asPoints()
342 x + halfWidth, y + halfHeight); in asPoints()
/external/skia/src/gpu/ops/
DGrShadowRRectOp.cpp298 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local
301 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
308 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
315 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
322 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
329 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
336 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
343 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
350 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
DGrOvalOpFactory.cpp924 SkScalar halfWidth = 0; in CircleOp() local
927 halfWidth = SK_ScalarHalf; in CircleOp()
929 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
932 outerRadius += halfWidth; in CircleOp()
934 innerRadius = radius - halfWidth; in CircleOp()
1074 radius += halfWidth; in CircleOp()
1181 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local
1184 v0->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in onPrepareDraws()
1190 v1->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in onPrepareDraws()
1196 v2->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in onPrepareDraws()
[all …]
/external/skqp/src/gpu/ops/
DGrShadowRRectOp.cpp298 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local
301 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
308 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
315 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
322 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
329 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
336 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
343 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
350 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
DGrOvalOpFactory.cpp641 SkScalar halfWidth = 0; in CircleOp() local
644 halfWidth = SK_ScalarHalf; in CircleOp()
646 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
649 outerRadius += halfWidth; in CircleOp()
651 innerRadius = radius - halfWidth; in CircleOp()
771 radius += halfWidth; in CircleOp()
874 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local
877 v0->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in onPrepareDraws()
883 v1->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in onPrepareDraws()
889 v2->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in onPrepareDraws()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp292 const float halfWidth = (float)WIDTH / 2; in iterate() local
299 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
300 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
301 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
302 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
308 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate()
309 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/external/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.h27 int halfWidth, in Make() argument
32 std::move(proxy), dir, halfWidth, gaussianSigma, mode, bounds)); in Make()
64 int halfWidth, float gaussianSigma,
/external/skqp/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.h27 int halfWidth, in Make() argument
32 std::move(proxy), dir, halfWidth, gaussianSigma, mode, bounds)); in Make()
64 int halfWidth, float gaussianSigma,
/external/replicaisland/src/com/replica/replicaisland/
DInputGameInterface.java99 final float halfWidth = ButtonConstants.MOVEMENT_SLIDER_BAR_WIDTH / 2.0f; in update() local
100 final float center = ButtonConstants.MOVEMENT_SLIDER_X + halfWidth; in update()
102 float magnitudeRamp = Math.abs(offset) > halfWidth ? 1.0f : (Math.abs(offset) / halfWidth); in update()
DSimpleCollisionComponent.java62 final float halfWidth = parentObject.width / 2.0f; in update() local
65 parentObject.getPosition().x = mHitPoint.x - halfWidth; in update()
DGameRenderer.java214 final float halfWidth = mHalfWidth; in onDrawFrame() local
222 x = (x - mCameraX) + halfWidth; in onDrawFrame()
/external/skqp/src/gpu/
DSkGpuDevice.cpp569 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine() local
570 SkASSERT(halfWidth > 0); in drawStrokedLine()
585 xtraLength = halfWidth; in drawStrokedLine()
591 SkRect rect = SkRect::MakeLTRB(mid.fX-halfWidth, mid.fY - 0.5f*length - xtraLength, in drawStrokedLine()
592 mid.fX+halfWidth, mid.fY + 0.5f*length + xtraLength); in drawStrokedLine()
/external/skia/src/gpu/
DSkGpuDevice.cpp565 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine() local
566 SkASSERT(halfWidth > 0); in drawStrokedLine()
581 xtraLength = halfWidth; in drawStrokedLine()
587 SkRect rect = SkRect::MakeLTRB(mid.fX-halfWidth, mid.fY - 0.5f*length - xtraLength, in drawStrokedLine()
588 mid.fX+halfWidth, mid.fY + 0.5f*length + xtraLength); in drawStrokedLine()
/external/freetype/src/psaux/
Dpshints.c694 CF2_Fixed halfWidth = in cf2_hintmap_insertHint() local
700 firstHintEdge->dsCoord = SUB_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
701 secondHintEdge->dsCoord = ADD_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
/external/skqp/tests/
DRoundRectTest.cpp731 SkScalar halfWidth = SkScalarHalf(dst.width()); in test_issue_2696() local
736 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()
/external/skia/tests/
DRoundRectTest.cpp731 SkScalar halfWidth = SkScalarHalf(dst.width()); in test_issue_2696() local
736 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageLoadStoreTests.cpp231 const int halfWidth = access.getWidth() / 2; in flipHorizontally() local
236 for (int x = 0; x < halfWidth; x++) in flipHorizontally()
245 for (int x = 0; x < halfWidth; x++) in flipHorizontally()