/third_party/skia/src/effects/ |
D | SkDashPathEffect.cpp | 290 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() local 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()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/ |
D | vktDynamicStateVPTests.cpp | 322 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/dynamic_state/ |
D | vktDynamicStateVPTests.cpp | 322 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/ |
D | vktMeshShaderBuiltinTests.cpp | 463 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 = static_cast<float>(extent.height) / 2.0f; in initPrograms() local 2022 …<< " const int expectedRate = ((gl_FragCoord.y < " << halfHeight << ")? " << topMask << " : " <… in initPrograms()
|
D | vktMeshShaderBuiltinTestsEXT.cpp | 575 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 = static_cast<float>(extent.height) / 2.0f; in initPrograms() local 2320 …<< " const int expectedRate = ((gl_FragCoord.y < " << halfHeight << ")? " << topMask << " : " <… in initPrograms()
|
D | vktMeshShaderMiscTestsEXT.cpp | 431 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; ++x) in generateReferenceLevel() [all …]
|
D | vktMeshShaderSmokeTests.cpp | 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()
|
D | vktMeshShaderMiscTests.cpp | 426 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; ++x) in generateReferenceLevel()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
D | vktMeshShaderBuiltinTests.cpp | 463 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 = static_cast<float>(extent.height) / 2.0f; in initPrograms() local 2022 …<< " const int expectedRate = ((gl_FragCoord.y < " << halfHeight << ")? " << topMask << " : " <… in initPrograms()
|
D | vktMeshShaderBuiltinTestsEXT.cpp | 575 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 = static_cast<float>(extent.height) / 2.0f; in initPrograms() local 2320 …<< " const int expectedRate = ((gl_FragCoord.y < " << halfHeight << ")? " << topMask << " : " <… in initPrograms()
|
D | vktMeshShaderMiscTestsEXT.cpp | 431 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; ++x) in generateReferenceLevel() [all …]
|
D | vktMeshShaderSmokeTests.cpp | 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()
|
D | vktMeshShaderMiscTests.cpp | 426 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; ++x) in generateReferenceLevel()
|
/third_party/skia/tests/ |
D | RoundRectTest.cpp | 946 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/vulkan/multiview/ |
D | vktMultiViewRenderTests.cpp | 3267 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_no_buildgn/vulkan/multiview/ |
D | vktMultiViewRenderTests.cpp | 3267 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/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | StateChangeTest.cpp | 1737 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()
|