Home
last modified time | relevance | path

Searched refs:expectedColor (Results 1 – 25 of 66) sorted by relevance

123

/third_party/flutter/skia/tests/
DColorFilterTest.cpp80 SkColor expectedColor = color; in DEF_TEST() local
88 if (c != expectedColor) { in DEF_TEST()
89 expectedColor = 0; in DEF_TEST()
98 REPORTER_ASSERT(reporter, c == expectedColor); in DEF_TEST()
108 REPORTER_ASSERT(reporter, c2 == expectedColor); in DEF_TEST()
DApplyGammaTest.cpp54 uint32_t expectedColor = src & 0xff000000; in check_gamma() local
89 expectedColor |= expectedComponent << (c * 8); in check_gamma()
92 *expected = expectedColor; in check_gamma()
/third_party/skia/tests/
DColorFilterTest.cpp63 SkColor expectedColor = color; in DEF_TEST() local
71 if (c != expectedColor) { in DEF_TEST()
72 expectedColor = 0; in DEF_TEST()
81 REPORTER_ASSERT(reporter, c == expectedColor); in DEF_TEST()
91 REPORTER_ASSERT(reporter, c2 == expectedColor); in DEF_TEST()
DApplyGammaTest.cpp54 uint32_t expectedColor = src & 0xff000000; in check_gamma() local
89 expectedColor |= expectedComponent << (c * 8); in check_gamma()
92 *expected = expectedColor; in check_gamma()
DBackendAllocationTest.cpp255 SkColor4f expectedColor = get_expected_color(color, colorType); in check_base_readbacks() local
302 check_solid_pixmap(reporter, expectedColor, actual, colorType, label, name.c_str()); in check_base_readbacks()
326 SkColor4f expectedColor = get_expected_color(testColor, colorType); in test_color_init() local
327 SkColor4f expectedColors[6] = {expectedColor, expectedColor, expectedColor, in test_color_init()
328 expectedColor, expectedColor, expectedColor}; in test_color_init()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DSubresourceRenderAttachmentTests.cpp41 RGBA8 expectedColor(0, 255, 0, 255); in DoSingleTest() local
50 static_cast<float>(expectedColor.r) / 255.f, in DoSingleTest()
51 static_cast<float>(expectedColor.g) / 255.f, in DoSingleTest()
52 static_cast<float>(expectedColor.b) / 255.f, in DoSingleTest()
53 static_cast<float>(expectedColor.a) / 255.f, in DoSingleTest()
81 std::vector<RGBA8> expected(renderTargetSize * renderTargetSize, expectedColor); in DoSingleTest()
DOpArrayLengthTests.cpp198 RGBA8 expectedColor = RGBA8(mExpectedLengths[0], mExpectedLengths[1], mExpectedLengths[2], 0); in TEST_P() local
199 EXPECT_PIXEL_RGBA8_EQ(expectedColor, renderPass.color, 0, 0); in TEST_P()
258 RGBA8 expectedColor = RGBA8(mExpectedLengths[0], mExpectedLengths[1], mExpectedLengths[2], 0); in TEST_P() local
259 EXPECT_PIXEL_RGBA8_EQ(expectedColor, renderPass.color, 0, 0); in TEST_P()
DMultisampledRenderingTests.cpp191 RGBA8 expectedColor = ExpectedMSAAColor(inputColor, msaaCoverage); in VerifyResolveTarget() local
192 EXPECT_TEXTURE_EQ(&expectedColor, resolveTexture, {kMiddleX, kMiddleY, arrayLayer}, {1, 1}, in VerifyResolveTarget()
812 RGBA8 expectedColor = ExpectedMSAAColor(kGreen, kMSAACoverage); in TEST_P() local
813 EXPECT_TEXTURE_EQ(&expectedColor, mResolveTexture, {1, 0}, {1, 1}); in TEST_P()
926 RGBA8 expectedColor = ExpectedMSAAColor(kGreen, msaaCoverage); in TEST_P() local
927 EXPECT_TEXTURE_EQ(&expectedColor, mResolveTexture, {1, 0}, {1, 1}); in TEST_P()
1040 RGBA8 expectedColor = ExpectedMSAAColor(kHalfGreenHalfRed, 1.0f); in TEST_P() local
1042 EXPECT_TEXTURE_EQ(&expectedColor, mResolveTexture, {1, 0}, {1, 1}); in TEST_P()
1085 RGBA8 expectedColor = ExpectedMSAAColor(kGreen, kMSAACoverage * alpha); in TEST_P() local
1086 EXPECT_TEXTURE_EQ(&expectedColor, mResolveTexture, {1, 0}, {1, 1}); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DPointSpritesTest.cpp337 GLubyte expectedColor[4] = {0, 0, 0, 0}; in TEST_P() local
340 expectedColor[0] = 255; in TEST_P()
341 expectedColor[3] = 255; in TEST_P()
343 EXPECT_PIXEL_EQ(x, y, expectedColor[0], expectedColor[1], expectedColor[2], in TEST_P()
344 expectedColor[3]); in TEST_P()
DS3TCTextureSizesTest.cpp146 GLColor expectedColor; in TEST_P() member
169 EXPECT_PIXEL_COLOR_EQ(0, 0, level.expectedColor) << " failed on level " << i; in TEST_P()
195 GLColor expectedColor; in TEST_P() member
217 EXPECT_PIXEL_COLOR_EQ(0, 0, level.expectedColor) << " failed on level " << i; in TEST_P()
DCopyTextureTest.cpp1801 auto testOutput = [this](GLuint texture, const GLColor &expectedColor) { in TEST_P() argument
1842 EXPECT_PIXEL_COLOR_NEAR(0, 0, expectedColor, 1.0); in TEST_P()
1849 const GLColor &expectedColor) { in TEST_P() argument
1862 testOutput(destTexture, expectedColor); in TEST_P()
1869 bool unmultiplyAlpha, const GLColor &expectedColor) { in TEST_P() argument
1883 testOutput(destTexture, expectedColor); in TEST_P()
1938 auto testOutput = [this](GLuint texture, const GLColor32F &expectedColor) { in TEST_P() argument
1979 EXPECT_PIXEL_COLOR32F_NEAR(0, 0, expectedColor, 0.05); in TEST_P()
1986 const GLColor32F &expectedColor) { in TEST_P() argument
1999 testOutput(destTexture, expectedColor); in TEST_P()
[all …]
DVulkanUniformUpdatesTest.cpp547 GLColor expectedColor = vsUniformValue > 11.0f ? GLColor::red : GLColor::green; in TEST_P() local
551 EXPECT_PIXEL_RECT_EQ(xoffset, yoffset, kHalfX, kHalfY, expectedColor); in TEST_P()
686 GLColor expectedColor = vsUniformValue > 11.0f ? GLColor::red : GLColor::green; in TEST_P() local
689 EXPECT_PIXEL_RECT_EQ(xoffset, yoffset, kHalfX, kHalfY, expectedColor); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DPointSpritesTest.cpp358 GLubyte expectedColor[4] = {0, 0, 0, 0}; in TEST_P() local
361 expectedColor[0] = 255; in TEST_P()
362 expectedColor[3] = 255; in TEST_P()
364 EXPECT_PIXEL_EQ(x, y, expectedColor[0], expectedColor[1], expectedColor[2], in TEST_P()
365 expectedColor[3]); in TEST_P()
DCopyTextureTest.cpp1606 auto testOutput = [this](GLuint texture, const GLColor &expectedColor) { in TEST_P() argument
1647 EXPECT_PIXEL_COLOR_NEAR(0, 0, expectedColor, 1.0); in TEST_P()
1654 const GLColor &expectedColor) { in TEST_P() argument
1667 testOutput(destTexture, expectedColor); in TEST_P()
1674 bool unmultiplyAlpha, const GLColor &expectedColor) { in TEST_P() argument
1688 testOutput(destTexture, expectedColor); in TEST_P()
1743 auto testOutput = [this](GLuint texture, const GLColor32F &expectedColor) { in TEST_P() argument
1784 EXPECT_PIXEL_COLOR32F_NEAR(0, 0, expectedColor, 0.05); in TEST_P()
1791 const GLColor32F &expectedColor) { in TEST_P() argument
1804 testOutput(destTexture, expectedColor); in TEST_P()
[all …]
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fShaderFragDataTests.cpp64 …ingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA thr… in compareSingleColor() argument
69 …log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << Tes… in compareSingleColor()
76 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
/third_party/flutter/flutter/packages/flutter/test/material/
Danimated_icons_test.dart225 const PaintColorMatcher(this.expectedColor);
227 final int expectedColor;
231 description.add('color was not $expectedColor');
236 return actualPaint.color == Color(expectedColor);
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DMultisampledRenderingTests.cpp162 RGBA8 expectedColor; in VerifyResolveTarget() local
163 expectedColor.r = static_cast<uint8_t>(0xFF * inputColor.r * kMSAACoverage); in VerifyResolveTarget()
164 expectedColor.g = static_cast<uint8_t>(0xFF * inputColor.g * kMSAACoverage); in VerifyResolveTarget()
165 expectedColor.b = static_cast<uint8_t>(0xFF * inputColor.b * kMSAACoverage); in VerifyResolveTarget()
166 expectedColor.a = static_cast<uint8_t>(0xFF * inputColor.a * kMSAACoverage); in VerifyResolveTarget()
168 EXPECT_TEXTURE_RGBA8_EQ(&expectedColor, resolveTexture, kMiddleX, kMiddleY, 1, 1, in VerifyResolveTarget()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcLayoutLocationTests.cpp516 const tcu::RGBA expectedColor(255, 0, 0, 0); in iterate() local
518 if (pixel != expectedColor) in iterate()
521 << expectedColor.getRed() << ", " << expectedColor.getGreen() << ", " in iterate()
522 << expectedColor.getBlue() << ", " << expectedColor.getAlpha() << "], got [" in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageMisalignedCubeTests.cpp256 const tcu::Vec4 expectedColor = tcu::Vec4(componentValue, componentValue, componentValue, 1.0f); in iterate() local
258 const tcu::Vec4 delta = expectedColor - resultColor; in iterate()
269 const tcu::Vec4 expectedColor = tcu::Vec4(componentValue, componentValue, componentValue, 1.0f); in iterate() local
271 const tcu::Vec4 delta = expectedColor - resultColor; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineLogicOpTests.cpp442 tcu::UVec4 expectedColor (0u, 0u, 0u, 0u); // Overwritten below. in verifyImage() local
450 expectedColor[c] = calcOpResult(m_params.logicOp, m_params.quadColor[c], m_params.fbColor[c]); in verifyImage()
451 expectedColor[c] &= m_channelMask; in verifyImage()
456 referenceAccess.setPixel(expectedColor, x, y); in verifyImage()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderFragDataTests.cpp82 …ingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA thr… in compareSingleColor() argument
87 …log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << Tes… in compareSingleColor()
94 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
DvktMeshShaderSmokeTests.cpp92 tcu::Vec4 expectedColor; member
98 , expectedColor (expectedColor_) in MeshTriangleRendererParams()
102 …td::move(other.vertexCoords), std::move(other.vertexIndices), other.taskCount, other.expectedColor) in MeshTriangleRendererParams()
538 …if (!tcu::floatThresholdCompare(log, "Result", "", m_params.expectedColor, outPixels, threshold, t… in iterate()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLBufferAgeTest.cpp192 angle::GLColor expectedColor = GLColor::black; in TEST_P() local
200 expectedColor = kColorSet[i - age]; in TEST_P()
201 EXPECT_PIXEL_COLOR_EQ(1, 1, expectedColor); in TEST_P()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/draw_buffers_indexed/
DesextcDrawBuffersIndexedColorMasks.hpp60 bool VerifyImg(const tcu::TextureLevel& textureLevel, tcu::RGBA expectedColor, tcu::RGBA epsilon);
DesextcDrawBuffersIndexedBlending.hpp63 bool VerifyImg(const tcu::TextureLevel& textureLevel, tcu::RGBA expectedColor, tcu::RGBA epsilon);

123