Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 – 22 of 22) 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/gpu/ops/
DGrShadowRRectOp.cpp296 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local
299 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
305 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
311 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
317 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
323 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
329 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
335 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
341 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
DGrOvalOpFactory.cpp1039 SkScalar halfWidth = 0; in CircleOp() local
1042 halfWidth = SK_ScalarHalf; in CircleOp()
1044 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
1047 outerRadius += halfWidth; in CircleOp()
1049 innerRadius = radius - halfWidth; in CircleOp()
1190 radius += halfWidth; in CircleOp()
1273 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local
1287 offsetClipDist = 0.5f / halfWidth; in onPrepareDraws()
1295 vertices.write(center + offset * halfWidth, in onPrepareDraws()
1481 SkScalar halfWidth = 0; in ButtCapDashedCircleOp() local
[all …]
/external/skqp/src/gpu/ops/
DGrShadowRRectOp.cpp295 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local
298 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
304 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
310 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
316 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
322 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
328 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
334 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
340 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
DGrOvalOpFactory.cpp965 SkScalar halfWidth = 0; in CircleOp() local
968 halfWidth = SK_ScalarHalf; in CircleOp()
970 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
973 outerRadius += halfWidth; in CircleOp()
975 innerRadius = radius - halfWidth; in CircleOp()
1116 radius += halfWidth; in CircleOp()
1198 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local
1212 offsetClipDist = 0.5f / halfWidth; in onPrepareDraws()
1220 vertices.write(center + offset * halfWidth, in onPrepareDraws()
1403 SkScalar halfWidth = 0; in ButtCapDashedCircleOp() local
[all …]
/external/skqp/src/effects/
DSkDashPathEffect.cpp290 SkScalar halfWidth, halfHeight; in onAsPoints() local
292 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
295 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
300 results->fFirst.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
301 x + halfWidth, y + halfHeight); in onAsPoints()
341 SkScalar halfWidth, halfHeight; in onAsPoints() local
343 halfWidth = SkScalarHalf(temp); in onAsPoints()
346 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
350 x + halfWidth, y + halfHeight); in onAsPoints()
/external/skia/src/effects/
DSkDashPathEffect.cpp290 SkScalar halfWidth, halfHeight; in onAsPoints() local
292 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints()
295 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
300 results->fFirst.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
301 x + halfWidth, y + halfHeight); in onAsPoints()
341 SkScalar halfWidth, halfHeight; in onAsPoints() local
343 halfWidth = SkScalarHalf(temp); in onAsPoints()
346 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints()
349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
350 x + halfWidth, y + halfHeight); in onAsPoints()
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp281 const float halfWidth = (float)WIDTH / 2; in iterate() local
288 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
289 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
290 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
291 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
297 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate()
298 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/external/skqp/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.h27 int halfWidth, in Make() argument
32 std::move(proxy), dir, halfWidth, gaussianSigma, mode, bounds)); in Make()
75 int halfWidth, float gaussianSigma,
/external/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.h27 int halfWidth, in Make() argument
32 std::move(proxy), dir, halfWidth, gaussianSigma, mode, bounds)); in Make()
75 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/deqp/external/vulkancts/modules/vulkan/clipping/
DvktClippingTests.cpp803 const float halfWidth = lineWidth / float(RENDER_SIZE); in testWideLines() local
819 tcu::Vec4(vertices[vertexNdx0] + lineNormalDir * halfWidth), in testWideLines()
820 tcu::Vec4(vertices[vertexNdx0] - lineNormalDir * halfWidth), in testWideLines()
821 tcu::Vec4(vertices[vertexNdx1] - lineNormalDir * halfWidth), in testWideLines()
822 tcu::Vec4(vertices[vertexNdx1] + lineNormalDir * halfWidth) in testWideLines()
/external/skia/src/gpu/
DSkGpuDevice.cpp589 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine() local
590 SkASSERT(halfWidth > 0); in drawStrokedLine()
605 xtraLength = halfWidth; in drawStrokedLine()
611 SkRect rect = SkRect::MakeLTRB(mid.fX-halfWidth, mid.fY - 0.5f*length - xtraLength, in drawStrokedLine()
612 mid.fX+halfWidth, mid.fY + 0.5f*length + xtraLength); in drawStrokedLine()
/external/skqp/src/gpu/
DSkGpuDevice.cpp575 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine() local
576 SkASSERT(halfWidth > 0); in drawStrokedLine()
591 xtraLength = halfWidth; in drawStrokedLine()
597 SkRect rect = SkRect::MakeLTRB(mid.fX-halfWidth, mid.fY - 0.5f*length - xtraLength, in drawStrokedLine()
598 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/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/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/deqp/external/vulkancts/modules/vulkan/image/
DvktImageLoadStoreTests.cpp233 const int halfWidth = access.getWidth() / 2; in flipHorizontally() local
238 for (int x = 0; x < halfWidth; x++) in flipHorizontally()
247 for (int x = 0; x < halfWidth; x++) in flipHorizontally()
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp2767 const deUint32 halfWidth = m_parameters.extent.width / 2; in MultiViewReadbackTestInstance() local
2773 const deInt32 offsetX = static_cast<deInt32>(halfWidth) * x; in MultiViewReadbackTestInstance()
2775 const VkRect2D area = { { offsetX, offsetY}, {halfWidth, halfHeight} }; in MultiViewReadbackTestInstance()