Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/skia/src/gpu/ops/
DShadowRRectOp.cpp282 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local
285 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
291 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
297 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
303 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
309 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
315 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
321 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
327 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
DGrOvalOpFactory.cpp1052 SkScalar halfWidth = 0; in CircleOp() local
1055 halfWidth = SK_ScalarHalf; in CircleOp()
1057 halfWidth = SkScalarHalf(strokeWidth); in CircleOp()
1060 outerRadius += halfWidth; in CircleOp()
1062 innerRadius = radius - halfWidth; in CircleOp()
1208 radius += halfWidth; in CircleOp()
1309 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local
1323 offsetClipDist = 0.5f / halfWidth; in onPrepareDraws()
1331 vertices << (center + offset * halfWidth) in onPrepareDraws()
1544 SkScalar halfWidth = 0; in ButtCapDashedCircleOp() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp321 const float halfWidth = (float)WIDTH / 2; in iterate() local
328 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
329 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
330 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
331 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
337 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate()
338 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp321 const float halfWidth = (float)WIDTH / 2; in iterate() local
328 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
329 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
330 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
331 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
337 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate()
338 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/third_party/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.cpp146 int halfWidth, in Make() argument
160 halfWidth = 0; in Make()
169 case Direction::kX: domain.outset(halfWidth, 0); break; in Make()
170 case Direction::kY: domain.outset(0, halfWidth); break; in Make()
195 std::move(child), dir, halfWidth, gaussianSigma)); in Make()
DGrGaussianConvolutionFragmentProcessor.h34 int halfWidth,
59 int halfWidth,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderBuiltinTests.cpp462 const auto halfWidth = width / 2; in verifyResults() local
471 expected = ((x < halfWidth) ? m_topLeft : m_topRight); in verifyResults()
473 expected = ((x < halfWidth) ? m_bottomLeft : m_bottomRight); in verifyResults()
919 const auto halfWidth = static_cast<float>(extent.width) / 2.0f; in createInstance() local
929 viewports.emplace_back(makeViewport(0.0f, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
930 viewports.emplace_back(makeViewport(halfWidth, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
931 viewports.emplace_back(makeViewport(0.0f, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
932 viewports.emplace_back(makeViewport(halfWidth, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
DvktMeshShaderBuiltinTestsEXT.cpp574 const auto halfWidth = width / 2; in verifyResults() local
583 expected = ((x < halfWidth) ? m_topLeft : m_topRight); in verifyResults()
585 expected = ((x < halfWidth) ? m_bottomLeft : m_bottomRight); in verifyResults()
1062 const auto halfWidth = static_cast<float>(extent.width) / 2.0f; in createInstance() local
1072 viewports.emplace_back(makeViewport(0.0f, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1073 viewports.emplace_back(makeViewport(halfWidth, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1074 viewports.emplace_back(makeViewport(0.0f, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1075 viewports.emplace_back(makeViewport(halfWidth, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
DvktMeshShaderMiscTestsEXT.cpp430 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
442 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
677 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
681 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
821 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
826 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2274 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2286 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
3253 const auto halfWidth = width / 2u; in getQuadrantColors() local
3255 const auto iHalfWidth = static_cast<int>(halfWidth); in getQuadrantColors()
[all …]
DvktMeshShaderSmokeTests.cpp662 const float halfWidth = (1.0 / (width - 1.0)) / 2.0; in initGradientPrograms()
664 const float minGreen = -halfWidth; in initGradientPrograms()
665 const float maxGreen = 1.0+halfWidth; in initGradientPrograms()
DvktMeshShaderMiscTests.cpp425 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
437 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
673 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
677 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
816 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
821 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2071 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2083 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
DvktMeshShaderBuiltinTests.cpp462 const auto halfWidth = width / 2; in verifyResults() local
471 expected = ((x < halfWidth) ? m_topLeft : m_topRight); in verifyResults()
473 expected = ((x < halfWidth) ? m_bottomLeft : m_bottomRight); in verifyResults()
919 const auto halfWidth = static_cast<float>(extent.width) / 2.0f; in createInstance() local
929 viewports.emplace_back(makeViewport(0.0f, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
930 viewports.emplace_back(makeViewport(halfWidth, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
931 viewports.emplace_back(makeViewport(0.0f, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
932 viewports.emplace_back(makeViewport(halfWidth, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
DvktMeshShaderBuiltinTestsEXT.cpp574 const auto halfWidth = width / 2; in verifyResults() local
583 expected = ((x < halfWidth) ? m_topLeft : m_topRight); in verifyResults()
585 expected = ((x < halfWidth) ? m_bottomLeft : m_bottomRight); in verifyResults()
1062 const auto halfWidth = static_cast<float>(extent.width) / 2.0f; in createInstance() local
1072 viewports.emplace_back(makeViewport(0.0f, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1073 viewports.emplace_back(makeViewport(halfWidth, 0.0f, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1074 viewports.emplace_back(makeViewport(0.0f, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
1075 viewports.emplace_back(makeViewport(halfWidth, halfHeight, halfWidth, halfHeight, 0.0f, 1.0f)); in createInstance()
DvktMeshShaderMiscTestsEXT.cpp430 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
442 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
677 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
681 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
821 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
826 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2274 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2286 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
3253 const auto halfWidth = width / 2u; in getQuadrantColors() local
3255 const auto iHalfWidth = static_cast<int>(halfWidth); in getQuadrantColors()
[all …]
DvktMeshShaderSmokeTests.cpp662 const float halfWidth = (1.0 / (width - 1.0)) / 2.0; in initGradientPrograms()
664 const float minGreen = -halfWidth; in initGradientPrograms()
665 const float maxGreen = 1.0+halfWidth; in initGradientPrograms()
DvktMeshShaderMiscTests.cpp425 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
437 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
673 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
677 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
816 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
821 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2071 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2083 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
/third_party/skia/experimental/graphite/src/
DDrawList.h80 float halfWidth() const { return fHalfWidth; } in halfWidth() function
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/clipping/
DvktClippingTests.cpp971 const float halfWidth = lineWidth / float(RENDER_SIZE); in testWideLines() local
987 tcu::Vec4(vertices[vertexNdx0] + lineNormalDir * halfWidth), in testWideLines()
988 tcu::Vec4(vertices[vertexNdx0] - lineNormalDir * halfWidth), in testWideLines()
989 tcu::Vec4(vertices[vertexNdx1] - lineNormalDir * halfWidth), in testWideLines()
990 tcu::Vec4(vertices[vertexNdx1] + lineNormalDir * halfWidth) in testWideLines()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/clipping/
DvktClippingTests.cpp971 const float halfWidth = lineWidth / float(RENDER_SIZE); in testWideLines() local
987 tcu::Vec4(vertices[vertexNdx0] + lineNormalDir * halfWidth), in testWideLines()
988 tcu::Vec4(vertices[vertexNdx0] - lineNormalDir * halfWidth), in testWideLines()
989 tcu::Vec4(vertices[vertexNdx1] - lineNormalDir * halfWidth), in testWideLines()
990 tcu::Vec4(vertices[vertexNdx1] + lineNormalDir * halfWidth) in testWideLines()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
DvktWsiSwapchainTests.cpp2089 const deUint32 halfWidth = desiredSize.x() / 2; in deviceGroupRenderTest2() local
2093 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2094 { { (deInt32)halfWidth, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2095 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2096 { { (deInt32)halfWidth, 0 }, { halfWidth, height } } // offset, extent in deviceGroupRenderTest2()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
DvktWsiSwapchainTests.cpp2089 const deUint32 halfWidth = desiredSize.x() / 2; in deviceGroupRenderTest2() local
2093 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2094 { { (deInt32)halfWidth, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2095 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2096 { { (deInt32)halfWidth, 0 }, { halfWidth, height } } // offset, extent in deviceGroupRenderTest2()
/third_party/skia/third_party/externals/freetype/src/psaux/
Dpshints.c698 CF2_Fixed halfWidth = in cf2_hintmap_insertHint() local
704 firstHintEdge->dsCoord = SUB_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
705 secondHintEdge->dsCoord = ADD_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp1687 const SkScalar halfWidth = 0.5f * stroke.getWidth(); in drawStrokedLine() local
1688 if (halfWidth <= 0.f) { in drawStrokedLine()
1703 parallel *= halfWidth; in drawStrokedLine()
/third_party/skia/tests/
DRoundRectTest.cpp945 SkScalar halfWidth = SkScalarHalf(dst.width()); in test_issue_2696() local
950 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()

12