Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 - 19 of 19) sorted by relevance

/third_party/skia/src/effects/
H A DSkDashPathEffect.cpp290 SkScalar halfWidth, halfHeight; in onAsPoints() local
293 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
296 halfHeight = SkScalarHalf(clampedInitialDashLength); 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()
344 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
347 halfHeight = SkScalarHalf(temp); in onAsPoints()
349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
350 x + halfWidth, y + halfHeight); in onAsPoints()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
H A DvktDynamicStateVPTests.cpp324 const float halfHeight = (float)HEIGHT / 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()
340 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
341 { { quarterWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
H A DvktDynamicStateVPTests.cpp322 const float halfHeight = (float)HEIGHT / 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()
338 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
339 { { quarterWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
H A DvktMeshShaderBuiltinTests.cpp463 const auto halfHeight = height / 2; in verifyResults() local
470 if (y < halfHeight) in verifyResults()
920 const auto halfHeight = static_cast<float>(extent.height) / 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()
2009 const auto halfHeight in initPrograms() local
[all...]
H A DvktMeshShaderBuiltinTestsEXT.cpp575 const auto halfHeight = height / 2; in verifyResults() local
582 if (y < halfHeight) in verifyResults()
1063 const auto halfHeight = static_cast<float>(extent.height) / 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()
2307 const auto halfHeight in initPrograms() local
[all...]
H A DvktMeshShaderMiscTestsEXT.cpp431 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
441 const float red = ((y < halfHeight) ? 0.0f : 1.0f); in generateReferenceLevel()
696 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
699 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
765 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
770 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), x, halfHeight); in generateReferenceLevel()
840 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
844 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2293 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
2305 for (int x = 0; x < halfHeight; in generateReferenceLevel()
3272 const auto halfHeight = height / 2u; getQuadrantColors() local
4625 const auto halfHeight = iHeight / 2; generateReferenceLevel() local
[all...]
H A DvktMeshShaderSmokeTests.cpp596 << " const float halfHeight = (1.0 / (height - 1.0)) / 2.0;\n" in initGradientPrograms()
599 << " const float minBlue = -halfHeight;\n" in initGradientPrograms()
600 << " const float maxBlue = 1.0+halfHeight;\n" in initGradientPrograms()
663 const float halfHeight = (1.0 / (height - 1.0)) / 2.0; in initGradientPrograms()
666 const float minBlue = -halfHeight; in initGradientPrograms()
667 const float maxBlue = 1.0+halfHeight; in initGradientPrograms()
H A DvktMeshShaderMiscTests.cpp426 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
436 const float red = ((y < halfHeight) ? 0.0f : 1.0f); in generateReferenceLevel()
674 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
677 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
742 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
747 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), x, halfHeight); in generateReferenceLevel()
817 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
821 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2072 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
2084 for (int x = 0; x < halfHeight; in generateReferenceLevel()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
H A DvktMeshShaderBuiltinTests.cpp463 const auto halfHeight = height / 2; in verifyResults() local
470 if (y < halfHeight) in verifyResults()
920 const auto halfHeight = static_cast<float>(extent.height) / 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()
2009 const auto halfHeight in initPrograms() local
[all...]
H A DvktMeshShaderBuiltinTestsEXT.cpp575 const auto halfHeight = height / 2; in verifyResults() local
582 if (y < halfHeight) in verifyResults()
1063 const auto halfHeight = static_cast<float>(extent.height) / 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()
2307 const auto halfHeight in initPrograms() local
[all...]
H A DvktMeshShaderMiscTestsEXT.cpp431 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
441 const float red = ((y < halfHeight) ? 0.0f : 1.0f); in generateReferenceLevel()
678 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
681 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
747 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
752 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), x, halfHeight); in generateReferenceLevel()
822 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
826 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2275 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
2287 for (int x = 0; x < halfHeight; in generateReferenceLevel()
3254 const auto halfHeight = height / 2u; getQuadrantColors() local
4622 const auto halfHeight = iHeight / 2; generateReferenceLevel() local
[all...]
H A DvktMeshShaderSmokeTests.cpp596 << " const float halfHeight = (1.0 / (height - 1.0)) / 2.0;\n" in initGradientPrograms()
599 << " const float minBlue = -halfHeight;\n" in initGradientPrograms()
600 << " const float maxBlue = 1.0+halfHeight;\n" in initGradientPrograms()
663 const float halfHeight = (1.0 / (height - 1.0)) / 2.0; in initGradientPrograms()
666 const float minBlue = -halfHeight; in initGradientPrograms()
667 const float maxBlue = 1.0+halfHeight; in initGradientPrograms()
H A DvktMeshShaderMiscTests.cpp426 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
436 const float red = ((y < halfHeight) ? 0.0f : 1.0f); in generateReferenceLevel()
674 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
677 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
742 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
747 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), x, halfHeight); in generateReferenceLevel()
817 const auto halfHeight = static_cast<int>(m_params->height / 2u); in generateReferenceLevel() local
821 access.setPixel(tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), halfWidth, halfHeight); in generateReferenceLevel()
2072 const auto halfHeight = iHeight / 2; in generateReferenceLevel() local
2084 for (int x = 0; x < halfHeight; in generateReferenceLevel()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineMultisampleTests.cpp6015 const auto halfHeight = iExtent.y() / 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);
[all...]
H A DvktPipelineBindVertexBuffers2Tests.cpp1008 deUint32 halfHeight = m_params.height / 2; in iterate() local
1010 for (deUint32 Y = 0; (Y < halfHeight); ++Y) 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/skia/tests/
H A DRoundRectTest.cpp946 SkScalar halfHeight = SkScalarHalf(dst.height()); in test_issue_2696() local
952 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight)); in test_issue_2696()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/multiview/
H A DvktMultiViewRenderTests.cpp3267 const deUint32 halfHeight = m_parameters.extent.height / 2; in MultiViewReadbackTestInstance() local
3273 const deInt32 offsetY = static_cast<deInt32>(halfHeight) * y; in MultiViewReadbackTestInstance()
3274 const VkRect2D area = { { offsetX, offsetY}, {halfWidth, halfHeight} }; in MultiViewReadbackTestInstance()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/multiview/
H A DvktMultiViewRenderTests.cpp3374 const deUint32 halfHeight = m_parameters.extent.height / 2; in MultiViewReadbackTestInstance() local
3380 const deInt32 offsetY = static_cast<deInt32>(halfHeight) * y; in MultiViewReadbackTestInstance()
3381 const VkRect2D area = { { offsetX, offsetY}, {halfWidth, halfHeight} }; in MultiViewReadbackTestInstance()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DStateChangeTest.cpp1737 int halfHeight = getWindowHeight() / 2; in TEST_P() local
1740 EXPECT_PIXEL_COLOR_EQ(quarterWidth, halfHeight, GLColor::blue); in TEST_P()
1743 EXPECT_PIXEL_COLOR_EQ((quarterWidth * 3), halfHeight, GLColor::blue); in TEST_P()

Completed in 78 milliseconds