Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 - 25 of 35) sorted by relevance

12

/third_party/skia/src/gpu/ops/
H A 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, halfWidt in fillInCircleVerts()
[all...]
H A DGrOvalOpFactory.cpp1081 SkScalar halfWidth = 0;
1084 halfWidth = SK_ScalarHalf;
1086 halfWidth = SkScalarHalf(strokeWidth);
1089 outerRadius += halfWidth;
1091 innerRadius = radius - halfWidth;
1237 radius += halfWidth;
1338 SkScalar halfWidth = 0.5f * bounds.width();
1352 offsetClipDist = 0.5f / halfWidth;
1360 vertices << (center + offset * halfWidth)
1573 SkScalar halfWidth
[all...]
/third_party/skia/src/effects/
H A 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()
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, in onAsPoints()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
H A DvktDynamicStateVPTests.cpp323 const float halfWidth = (float)WIDTH / 2; in iterate() local
330 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
331 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
332 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
333 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
339 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate()
340 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
H A 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/
H A DGrGaussianConvolutionFragmentProcessor.cpp146 int halfWidth,
160 halfWidth = 0;
169 case Direction::kX: domain.outset(halfWidth, 0); break;
170 case Direction::kY: domain.outset(0, halfWidth); break;
195 std::move(child), dir, halfWidth, gaussianSigma));
H A DGrGaussianConvolutionFragmentProcessor.h34 int halfWidth,
61 int halfWidth,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineExtendedDynamicStateMiscTests.cpp289 const int halfWidth = fbExtent.x() / 2; in sampleShadingWithDynamicSampleCount() local
290 const uint32_t halfWidthU = static_cast<uint32_t>(halfWidth); in sampleShadingWithDynamicSampleCount()
291 const float halfWidthF = static_cast<float>(halfWidth); in sampleShadingWithDynamicSampleCount()
293 const std::vector<VkRect2D> dynamicScissors { makeRect2D(0, 0, halfWidthU, vkExtent.height), makeRect2D(halfWidth, 0, halfWidthU, vkExtent.height) }; in sampleShadingWithDynamicSampleCount()
H A DvktPipelineMultisampleTests.cpp6014 const auto halfWidth = iExtent.x() / 2;
6027 auto topLeft = tcu::getSubregion(refColorAccess, 0, 0, halfWidth, halfHeight);
6028 auto bottomLeft = tcu::getSubregion(refColorAccess, 0, halfHeight, halfWidth, halfHeight);
6029 auto topRight = tcu::getSubregion(refColorAccess, halfWidth, 0, halfWidth, halfHeight);
6030 auto bottomRight = tcu::getSubregion(refColorAccess, halfWidth, halfHeight, halfWidth, halfHeight);
6039 auto topLeft = tcu::getSubregion(refDepthAccess, 0, 0, halfWidth, halfHeight);
6040 auto bottomLeft = tcu::getSubregion(refDepthAccess, 0, halfHeight, halfWidth, halfHeight);
6041 auto topRight = tcu::getSubregion(refDepthAccess, halfWidth,
[all...]
H A DvktPipelineBindVertexBuffers2Tests.cpp1007 deUint32 halfWidth = m_params.width / 2; in iterate() local
1011 for (deUint32 X = 0; (X < halfWidth); ++X) in iterate()
1021 const double mismatch = double(equalClearCount) / double(halfWidth * halfHeight); in iterate()
1026 const tcu::UVec2 middle (halfWidth - 1u, halfHeight - 1u); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
H A 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, halfHeigh in createInstance()
[all...]
H A 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, halfHeigh in createInstance()
[all...]
H A DvktMeshShaderMiscTestsEXT.cpp430 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
442 const float green = ((x < halfWidth) ? 0.0f : 1.0f); in generateReferenceLevel()
695 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
699 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
839 const auto halfWidth = static_cast<int>(m_params->width / 2u); in generateReferenceLevel() local
844 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2292 const auto halfWidth = iWidth / 2; in generateReferenceLevel() local
2304 for (int y = 0; y < halfWidth; ++y) in generateReferenceLevel()
3271 const auto halfWidth = width / 2u; in getQuadrantColors() local
3273 const auto iHalfWidth = static_cast<int>(halfWidth); in getQuadrantColors()
4624 const auto halfWidth = iWidth / 2; generateReferenceLevel() local
[all...]
H A DvktMeshShaderSmokeTests.cpp595 << " const float halfWidth = (1.0 / (width - 1.0)) / 2.0;\n" in initGradientPrograms()
597 << " const float minGreen = -halfWidth;\n" in initGradientPrograms()
598 << " const float maxGreen = 1.0+halfWidth;\n" in initGradientPrograms()
662 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()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
H A 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, halfHeigh in createInstance()
[all...]
H A 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, halfHeigh in createInstance()
[all...]
H A 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()
4621 const auto halfWidth = iWidth / 2; generateReferenceLevel() local
[all...]
H A DvktMeshShaderSmokeTests.cpp595 << " const float halfWidth = (1.0 / (width - 1.0)) / 2.0;\n" in initGradientPrograms()
597 << " const float minGreen = -halfWidth;\n" in initGradientPrograms()
598 << " const float maxGreen = 1.0+halfWidth;\n" in initGradientPrograms()
662 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()
/third_party/skia/modules/skparagraph/src/
H A DRun.cpp334 float halfWidth = widths[i + pos] * 0.5f; in scaleFontWithCompressionConfig() local
335 float x = hOffset + posX(i + pos) + halfWidth + fOffsets[i + pos].x() + fTextShift; in scaleFontWithCompressionConfig()
347 xform[i].tx_ = rsPos.GetX() - rsTan.GetY() * vOffset - halfWidth * rsTan.GetX(); in scaleFontWithCompressionConfig()
348 xform[i].ty_ = rsPos.GetY() + rsTan.GetX() * vOffset - halfWidth * rsTan.GetY(); in scaleFontWithCompressionConfig()
/third_party/skia/experimental/graphite/src/
H A DDrawList.h80 float halfWidth() const { return fHalfWidth; } in halfWidth() function in skgpu::StrokeParams
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/clipping/
H A 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/clipping/
H A 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/skia/third_party/externals/freetype/src/psaux/
H A 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/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
H A DvktWsiSwapchainTests.cpp2105 const deUint32 halfWidth = desiredSize.x() / 2; in deviceGroupRenderTest2() local
2109 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2110 { { (deInt32)halfWidth, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2111 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2()
2112 { { (deInt32)halfWidth, 0 }, { halfWidth, height } } // offset, extent in deviceGroupRenderTest2()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
H A 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()

Completed in 62 milliseconds

12