/external/angle/src/tests/gl_tests/ |
D | CopyTexture3DTest.cpp | 69 const GLColor &sourceColor, in testCopy() 75 const GLColor &expectedColor) in testCopy() 77 std::vector<GLColor> texDataColor(2u * 2u * 2u, sourceColor); in testCopy() 233 GLColor actual; in testCopy() 257 GLColor(static_cast<GLubyte>(pixel[0]), static_cast<GLubyte>(pixel[1]), in testCopy() 267 GLColor(static_cast<GLubyte>(pixel[0]), static_cast<GLubyte>(pixel[1]), in testCopy() 335 std::vector<GLColor> texDataGreen(2u * 2u * 2u, GLColor::green); in TEST_P() 336 std::vector<GLColor> texDataRed(2u * 2u * 2u, GLColor::red); in TEST_P() 358 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 367 std::vector<GLColor> texDataGreen(4u * 4u * 4u, GLColor::green); in TEST_P() [all …]
|
D | MipmapTest.cpp | 440 const GLColor &color) in verifyAllMips() 514 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue); in TEST_P() 518 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::blue); in TEST_P() 522 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 8, getWindowHeight() / 8, GLColor::blue); in TEST_P() 541 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue); in TEST_P() 546 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::blue); in TEST_P() 553 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::green); in TEST_P() 558 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 8, getWindowHeight() / 8, GLColor::black); in TEST_P() 567 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue); in TEST_P() 571 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::green); in TEST_P() [all …]
|
D | CopyTextureTest.cpp | 69 std::array<GLColor, 256> sourceGradient; in testGradientDownsampleUniqueValues() 73 sourceGradient[i] = GLColor(value, value, value, value); in testGradientDownsampleUniqueValues() 90 std::array<GLColor, 256> destData; in testGradientDownsampleUniqueValues() 97 GLColor color = destData[i]; in testGradientDownsampleUniqueValues() 255 GLColor *destColor) in calculateCopyTextureResults() 257 GLColor color; in calculateCopyTextureResults() 262 color = GLColor(sourceColor[0], sourceColor[1], sourceColor[2], 255); in calculateCopyTextureResults() 265 color = GLColor(sourceColor[0], sourceColor[1], sourceColor[2], sourceColor[3]); in calculateCopyTextureResults() 268 color = GLColor(sourceColor[0], sourceColor[0], sourceColor[0], 255); in calculateCopyTextureResults() 271 color = GLColor(0, 0, 0, sourceColor[0]); in calculateCopyTextureResults() [all …]
|
D | GetImageTest.cpp | 67 std::vector<GLColor> pixelData(kSize * kSize, GLColor::red); in InitSimpleTexture() 95 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in TEST_P() 102 std::vector<GLColor> buffer(kSize * kSize); in TEST_P() 146 glBufferData(GL_PIXEL_PACK_BUFFER, kSize * kSize * sizeof(GLColor), nullptr, in TEST_P() 169 std::vector<GLColor> expectedData = {GLColor::red, GLColor::blue, GLColor::green, in TEST_P() 170 GLColor::yellow}; in TEST_P() 178 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in TEST_P() 185 std::vector<GLColor> actualData(kSmallSize * kSmallSize); in TEST_P() 197 const std::array<std::array<GLColor, kSmallSize * kSmallSize>, kCubeFaces.size()> expectedData = in TEST_P() 199 {GLColor::red, GLColor::red, GLColor::red, GLColor::red}, in TEST_P() [all …]
|
D | CubeMapTextureTest.cpp | 130 constexpr GLColor faceColors[kCubeFaceCount][kCubeFaceSectionCount] = { in runSampleCoordinateTransformTest() 131 {GLColor(255, 0, 0, 255), GLColor(191, 0, 0, 255), GLColor(127, 0, 0, 255), in runSampleCoordinateTransformTest() 132 GLColor(63, 0, 0, 255)}, in runSampleCoordinateTransformTest() 133 {GLColor(0, 255, 0, 255), GLColor(0, 191, 0, 255), GLColor(0, 127, 0, 255), in runSampleCoordinateTransformTest() 134 GLColor(0, 63, 0, 255)}, in runSampleCoordinateTransformTest() 135 {GLColor(0, 0, 255, 255), GLColor(0, 0, 191, 255), GLColor(0, 0, 127, 255), in runSampleCoordinateTransformTest() 136 GLColor(0, 0, 63, 255)}, in runSampleCoordinateTransformTest() 137 {GLColor(255, 63, 0, 255), GLColor(191, 127, 0, 255), GLColor(127, 191, 0, 255), in runSampleCoordinateTransformTest() 138 GLColor(63, 255, 0, 255)}, in runSampleCoordinateTransformTest() 139 {GLColor(0, 255, 63, 255), GLColor(0, 191, 127, 255), GLColor(0, 127, 191, 255), in runSampleCoordinateTransformTest() [all …]
|
D | ReadPixelsTest.cpp | 49 std::vector<GLColor> pixels((pixelsWidth + offset) * (pixelsHeight + offset)); in TEST_P() 60 EXPECT_EQ(GLColor::red, pixels[y * (pixelsWidth + offset) + x]); in TEST_P() 144 GLColor *dataColor = static_cast<GLColor *>(mappedPtr); in TEST_P() 147 EXPECT_EQ(GLColor::red, dataColor[0]); in TEST_P() 148 EXPECT_EQ(GLColor::red, dataColor[16 * 16 - 2]); in TEST_P() 149 EXPECT_EQ(GLColor::green, dataColor[16 * 16 - 1]); in TEST_P() 178 GLColor *dataColor = static_cast<GLColor *>(mappedPtr); in TEST_P() 181 EXPECT_EQ(GLColor(1, 2, 3, 4), dataColor[0]); in TEST_P() 182 EXPECT_EQ(GLColor::red, dataColor[1]); in TEST_P() 214 GLColor *dataColor = static_cast<GLColor *>(mappedPtr); in TEST_P() [all …]
|
D | BlitFramebufferANGLETest.cpp | 412 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::red); in TEST_P() 413 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, 3 * getWindowHeight() / 4, GLColor::green); in TEST_P() 414 EXPECT_PIXEL_COLOR_EQ(3 * getWindowWidth() / 4, getWindowHeight() / 4, GLColor::blue); in TEST_P() 415 EXPECT_PIXEL_COLOR_EQ(3 * getWindowWidth() / 4, 3 * getWindowHeight() / 4, GLColor::yellow); in TEST_P() 444 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::blue); in TEST_P() 445 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, 3 * getWindowHeight() / 4, GLColor::yellow); in TEST_P() 446 EXPECT_PIXEL_COLOR_EQ(3 * getWindowWidth() / 4, getWindowHeight() / 4, GLColor::red); in TEST_P() 447 EXPECT_PIXEL_COLOR_EQ(3 * getWindowWidth() / 4, 3 * getWindowHeight() / 4, GLColor::green); in TEST_P() 461 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, getWindowHeight() / 4, GLColor::green); in TEST_P() 462 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 4, 3 * getWindowHeight() / 4, GLColor::red); in TEST_P() [all …]
|
D | SimpleOperationTest.cpp | 90 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 110 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::transparentBlack); in TEST_P() 154 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 212 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::transparentBlack); in TEST_P() 215 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::green); in TEST_P() 320 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 332 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 345 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 380 EXPECT_PIXEL_COLOR_EQ(x, x, GLColor::green); in TEST_P() 422 EXPECT_PIXEL_COLOR_EQ(x, x, GLColor::green); in TEST_P() [all …]
|
D | StateChangeTest.cpp | 297 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 327 std::vector<GLColor> red(6, GLColor::red); in TEST_P() 330 glBufferData(GL_ARRAY_BUFFER, red.size() * sizeof(GLColor), red.data(), GL_STATIC_DRAW); in TEST_P() 344 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in TEST_P() 349 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 352 std::vector<GLColor> blue(128, GLColor::blue); in TEST_P() 354 glBufferData(GL_ARRAY_BUFFER, blue.size() * sizeof(GLColor), blue.data(), GL_STATIC_DRAW); in TEST_P() 356 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 403 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor::black, kPixelTolerance); in TEST_P() 404 EXPECT_PIXEL_COLOR_NEAR(w - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() [all …]
|
D | UniformBufferTest.cpp | 860 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::cyan); in TEST_P() 908 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 968 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 1016 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 1065 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 1106 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 1139 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 1198 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 1285 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor(255, 64, 128, 32), 5); in TEST_P() 1333 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor(255, 64, 128, 32), 5); in TEST_P() [all …]
|
D | SixteenBppTextureTest.cpp | 19 GLColor Convert565(const R5G6B5 &rgb565) in Convert565() 24 return GLColor(vecColor); in Convert565() 27 R5G6B5 Convert565(const GLColor &glColor) in Convert565() 89 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in simpleValidationBase() 90 EXPECT_PIXEL_COLOR_EQ(w, 0, GLColor::green); in simpleValidationBase() 91 EXPECT_PIXEL_COLOR_EQ(0, h, GLColor::blue); in simpleValidationBase() 92 EXPECT_PIXEL_COLOR_EQ(w, h, GLColor::yellow); in simpleValidationBase() 105 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in simpleValidationBase() 106 EXPECT_PIXEL_COLOR_EQ(w, 0, GLColor::green); in simpleValidationBase() 107 EXPECT_PIXEL_COLOR_EQ(0, h, GLColor::blue); in simpleValidationBase() [all …]
|
D | FramebufferMultiviewTest.cpp | 141 GLColor getLayerColor(size_t layer, GLenum attachment, GLint x, GLint y) in getLayerColor() 149 GLColor getLayerColor(size_t layer, GLenum attachment) in getLayerColor() 295 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 306 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::cyan); in TEST_P() 323 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::yellow); in TEST_P() 355 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 377 GLColor pixelColor; in TEST_P() 380 EXPECT_COLOR_NEAR(GLColor::green, pixelColor, 2); in TEST_P() 470 EXPECT_EQ(GLColor::transparentBlack, getLayerColor(0, GL_COLOR_ATTACHMENT0)); in TEST_P() 471 EXPECT_EQ(GLColor::green, getLayerColor(1, GL_COLOR_ATTACHMENT0)); in TEST_P() [all …]
|
D | BPTCCompressedTextureTest.cpp | 120 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor::red, kPixelTolerance); in TEST_P() 121 EXPECT_PIXEL_COLOR_NEAR(0, getWindowHeight() - 1, GLColor::red, kPixelTolerance); in TEST_P() 122 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 123 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() 142 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor::red, kPixelTolerance); in TEST_P() 143 EXPECT_PIXEL_COLOR_NEAR(0, getWindowHeight() - 1, GLColor::red, kPixelTolerance); in TEST_P() 144 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 145 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() 191 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor::red, kPixelTolerance); in TEST_P() 192 EXPECT_PIXEL_COLOR_NEAR(0, getWindowHeight() - 1, GLColor::red, kPixelTolerance); in TEST_P() [all …]
|
D | FramebufferFetchTest.cpp | 359 std::vector<GLColor> greenColor(kViewportWidth * kViewportHeight, GLColor::green); in BasicTest() 379 EXPECT_PIXEL_COLOR_EQ(kViewportWidth / 2, kViewportHeight / 2, GLColor::yellow); in BasicTest() 388 std::vector<GLColor> color0(kViewportWidth * kViewportHeight, GLColor::black); in MultipleRenderTargetTest() 389 std::vector<GLColor> color1(kViewportWidth * kViewportHeight, GLColor::green); in MultipleRenderTargetTest() 390 std::vector<GLColor> color2(kViewportWidth * kViewportHeight, GLColor::blue); in MultipleRenderTargetTest() 391 std::vector<GLColor> color3(kViewportWidth * kViewportHeight, GLColor::cyan); in MultipleRenderTargetTest() 427 EXPECT_PIXEL_COLOR_EQ(kViewportWidth / 2, kViewportHeight / 2, GLColor::red); in MultipleRenderTargetTest() 429 EXPECT_PIXEL_COLOR_EQ(kViewportWidth / 2, kViewportHeight / 2, GLColor::yellow); in MultipleRenderTargetTest() 431 EXPECT_PIXEL_COLOR_EQ(kViewportWidth / 2, kViewportHeight / 2, GLColor::magenta); in MultipleRenderTargetTest() 433 EXPECT_PIXEL_COLOR_EQ(kViewportWidth / 2, kViewportHeight / 2, GLColor::white); in MultipleRenderTargetTest() [all …]
|
D | ExternalWrapTest.cpp | 168 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor(0, 0, 0, 255), kPixelThreshold); in TEST_P() 169 EXPECT_PIXEL_COLOR_NEAR(127, 0, GLColor(247, 0, 0, 255), kPixelThreshold); in TEST_P() 170 EXPECT_PIXEL_COLOR_NEAR(0, 127, GLColor(0, 247, 0, 255), kPixelThreshold); in TEST_P() 171 EXPECT_PIXEL_COLOR_NEAR(127, 127, GLColor(247, 247, 0, 255), kPixelThreshold); in TEST_P() 195 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor(127, 127, 0, 255), kPixelThreshold); in TEST_P() 196 EXPECT_PIXEL_COLOR_NEAR(127, 0, GLColor(247, 127, 0, 255), kPixelThreshold); in TEST_P() 197 EXPECT_PIXEL_COLOR_NEAR(0, 127, GLColor(127, 247, 0, 255), kPixelThreshold); in TEST_P() 198 EXPECT_PIXEL_COLOR_NEAR(127, 127, GLColor(247, 247, 0, 255), kPixelThreshold); in TEST_P() 224 EXPECT_PIXEL_COLOR_NEAR(0, 0, GLColor(127, 127, 0, 255), kPixelThreshold); in TEST_P() 225 EXPECT_PIXEL_COLOR_NEAR(127, 0, GLColor(119, 127, 0, 255), kPixelThreshold); in TEST_P() [all …]
|
D | CopyTexImageTest.cpp | 360 GLColor fboPixels[kCubeMapFaceCount] = {GLColor::red, GLColor::yellow, GLColor::green, in TEST_P() 361 GLColor::cyan, GLColor::blue, GLColor::magenta}; in TEST_P() 362 GLColor whitePixels[kCubeMapFaceCount] = {GLColor::white, GLColor::white, GLColor::white, in TEST_P() 363 GLColor::white, GLColor::white, GLColor::white}; in TEST_P() 419 GLColor fboPixels[kCubeMapFaceCount] = {GLColor::red, GLColor::yellow, GLColor::green, in TEST_P() 420 GLColor::cyan, GLColor::blue, GLColor::magenta}; in TEST_P() 421 GLColor whitePixel = GLColor::white; in TEST_P() 531 GLColor fboPixels[kDepth] = {GLColor::red, GLColor::yellow, GLColor::green, in TEST_P() 532 GLColor::cyan, GLColor::blue, GLColor::magenta}; in TEST_P() 533 GLColor whitePixels[kDepth] = {GLColor::white, GLColor::white, GLColor::white, in TEST_P() [all …]
|
D | ProgramPipelineTest.cpp | 310 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in TEST_P() 327 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in TEST_P() 360 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::yellow); in TEST_P() 367 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::yellow); in TEST_P() 382 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::red); in TEST_P() 413 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::black); in TEST_P() 414 EXPECT_PIXEL_COLOR_EQ(w, 0, GLColor::red); in TEST_P() 415 EXPECT_PIXEL_COLOR_EQ(0, h, GLColor::green); in TEST_P() 416 EXPECT_PIXEL_COLOR_EQ(w, h, GLColor::yellow); in TEST_P() 444 std::array<GLColor, 4> colors = { in TEST_P() [all …]
|
D | WEBGLVideoTextureTest.cpp | 71 const std::vector<GLColor> redColors(4, GLColor::red); in TEST_P() 82 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 121 const std::vector<GLColor> redColors(4, GLColor::red); in TEST_P() 131 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 177 const std::vector<GLColor> redColors(4, GLColor::red); in TEST_P() 178 const std::vector<GLColor> greenColors(4, GLColor::green); in TEST_P() 199 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 201 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::green); in TEST_P() 203 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 238 const std::vector<GLColor> redColors(4, GLColor::red); in TEST_P() [all …]
|
D | ClipDistanceTest.cpp | 102 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::blue); in TEST_P() 111 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::red); in TEST_P() 130 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::red); in TEST_P() 139 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::green); in TEST_P() 152 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::red); in TEST_P() 209 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::blue); in TEST_P() 219 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::red); in TEST_P() 230 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::red); in TEST_P() 235 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::blue); in TEST_P() 257 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::green); in TEST_P() [all …]
|
D | RobustResourceInitTest.cpp | 32 std::vector<GLColor> *colorsOut) in UncompressDXTBlock() 38 return GLColor( in UncompressDXTBlock() 44 auto mix = [](int mult, GLColor c0, GLColor c1, float div) { in UncompressDXTBlock() 45 GLColor r = GLColor::transparentBlack; in UncompressDXTBlock() 58 GLColor rgba0 = make8888From565(color0); in UncompressDXTBlock() 59 GLColor rgba1 = make8888From565(color1); in UncompressDXTBlock() 60 std::array<GLColor, 4> colors = {{rgba0, rgba1, in UncompressDXTBlock() 62 c0gtc1 ? mix(2, rgba1, rgba0, 3) : GLColor::black}}; in UncompressDXTBlock() 72 GLColor srcColor = colors[code]; in UncompressDXTBlock() 145 (*colorsOut)[dstOff] = GLColor(srcColor[0], srcColor[1], srcColor[2], alpha); in UncompressDXTBlock() [all …]
|
D | MultisampledRenderToTextureTest.cpp | 91 const GLColor expected, in verifyResults() 623 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::black); in colorAttachmentMultisampleDrawTestCommon() 624 EXPECT_PIXEL_COLOR_EQ(kSize / 2, kSize / 2, GLColor::green); in colorAttachmentMultisampleDrawTestCommon() 639 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::black); in colorAttachmentMultisampleDrawTestCommon() 640 EXPECT_PIXEL_COLOR_EQ(kSize / 2, kSize / 2, GLColor::red); in colorAttachmentMultisampleDrawTestCommon() 687 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 688 EXPECT_PIXEL_COLOR_EQ(kSize - 1, 0, GLColor::green); in TEST_P() 689 EXPECT_PIXEL_COLOR_EQ(0, kSize - 1, GLColor::green); in TEST_P() 690 EXPECT_PIXEL_COLOR_EQ(kSize - 1, kSize - 1, GLColor::green); in TEST_P() 691 EXPECT_PIXEL_COLOR_EQ(kSize / 2, kSize / 2, GLColor::green); in TEST_P() [all …]
|
D | MultisampleTest.cpp | 203 EXPECT_PIXEL_COLOR_EQ(kWindowWidth / 2, kWindowHeight / 2, GLColor::red); in TEST_P() 204 EXPECT_PIXEL_COLOR_EQ(kWindowWidth / 2 - 1, kWindowHeight / 2, GLColor::red); in TEST_P() 205 EXPECT_PIXEL_COLOR_EQ(kWindowWidth / 2, kWindowHeight / 2 - 1, GLColor::red); in TEST_P() 206 EXPECT_PIXEL_COLOR_EQ(kWindowWidth / 2 - 1, kWindowHeight / 2 - 1, GLColor::red); in TEST_P() 210 const GLColor kSideColor = {128, 0, 0, 128}; in TEST_P() 211 const GLColor kCornerColor = {64, 0, 0, 64}; in TEST_P() 264 const GLColor kDarkRed = {128, 0, 0, 128}; in TEST_P() 265 const GLColor kMidRed = {192, 0, 0, 192}; in TEST_P() 271 EXPECT_PIXEL_COLOR_NEAR(3, 3, GLColor::red, kLargeMargin); in TEST_P() 272 EXPECT_PIXEL_COLOR_NEAR(4, 3, GLColor::red, kErrorMargin); in TEST_P() [all …]
|
D | DrawBuffersTest.cpp | 179 static GLColor getColorForIndex(unsigned int index) in getColorForIndex() 184 return GLColor(r, g, b, 255u); in getColorForIndex() 191 GLColor color) in verifyAttachment2DColor() 201 verifyAttachment2DColor(index, texture, target, level, GLColor::transparentBlack); in verifyAttachment2DUnwritten() 328 verifyAttachment2DColor(1, mTextures[0], GL_TEXTURE_2D, 0, GLColor(255u, 0, 0, 255u)); in TEST_P() 334 verifyAttachment2DColor(1, mTextures[0], GL_TEXTURE_2D, 0, GLColor(255u, 255u, 0, 255u)); in TEST_P() 375 verifyAttachment2DColor(0, mTextures[0], GL_TEXTURE_2D, 0, GLColor::yellow); in TEST_P() 376 verifyAttachment2DColor(3, mTextures[1], GL_TEXTURE_2D, 0, GLColor::yellow); in TEST_P() 531 verifyAttachment2DColor(0, mTextures[0], GL_TEXTURE_2D, 0, GLColor::red); in TEST_P() 532 verifyAttachment2DColor(1, mTextures[1], GL_TEXTURE_2D, 0, GLColor::transparentBlack); in TEST_P() [all …]
|
/external/angle/src/tests/gl_tests/gles1/ |
D | DrawTextureTest.cpp | 59 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, &GLColor::green); in TEST_P() 62 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::green); in TEST_P() 76 std::array<GLColor, 2> textureData = { in TEST_P() 77 GLColor::green, GLColor::green in TEST_P() 94 EXPECT_PIXEL_COLOR_EQ(x, y, GLColor::green); in TEST_P() 95 EXPECT_PIXEL_COLOR_EQ(x + 1, y, GLColor::green); in TEST_P() 97 EXPECT_PIXEL_COLOR_EQ(x, y + 1, GLColor::black); in TEST_P() 98 EXPECT_PIXEL_COLOR_EQ(x + 1, y + 1, GLColor::black); in TEST_P() 99 EXPECT_PIXEL_COLOR_EQ(x + 2, y, GLColor::black); in TEST_P() 100 EXPECT_PIXEL_COLOR_EQ(x + 3, y, GLColor::black); in TEST_P() [all …]
|
/external/angle/src/tests/egl_tests/ |
D | EGLPreRotationTest.cpp | 220 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::black); in testDrawingAndReadPixels() 221 EXPECT_PIXEL_COLOR_EQ(0, mSize - 1, GLColor::green); in testDrawingAndReadPixels() 222 EXPECT_PIXEL_COLOR_EQ(mSize - 1, 0, GLColor::red); in testDrawingAndReadPixels() 223 EXPECT_PIXEL_COLOR_EQ(mSize - 1, mSize - 1, GLColor::yellow); in testDrawingAndReadPixels() 230 EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::black); in testDrawingAndReadPixels() 231 EXPECT_PIXEL_COLOR_EQ(0, mSize - 1, GLColor::green); in testDrawingAndReadPixels() 232 EXPECT_PIXEL_COLOR_EQ(mSize - 1, 0, GLColor::red); in testDrawingAndReadPixels() 233 EXPECT_PIXEL_COLOR_EQ(mSize - 1, mSize - 1, GLColor::yellow); in testDrawingAndReadPixels() 243 std::vector<GLColor> pixels(width * height); in testDrawingAndReadPixels() 252 GLColor expectedPixel(xOffset + x, yOffset + y, 0, 255); in testDrawingAndReadPixels() [all …]
|