src/third_party/angle/src/tests/egl_tests/EGLSurfaceTest.cpp
// Test clearing and checking the color is correct
Test clearing and checking the color is correct
Test clearing and checking the color is correct
TEST_P(EGLFloatSurfaceTest, Clearing)
{
    ANGLE_SKIP_TEST_IF(!initializeSurfaceWithFloatConfig());
    ASSERT_NE(0u, mProgram) << "shader compilation failed.";
    ASSERT_GL_NO_ERROR();
    GLColor32F clearColor(0.0f, 1.0f, 2.0f, 3.0f);
    glClearColor(clearColor.R, clearColor.G, clearColor.B, clearColor.A);
    glClear(GL_COLOR_BUFFER_BIT);
    ASSERT_GL_NO_ERROR();
    EXPECT_PIXEL_COLOR32F_EQ(0, 0, clearColor);
}
TEST_P ( EGLFloatSurfaceTest , Clearing ) { ANGLE_SKIP_TEST_IF ( ! initializeSurfaceWithFloatConfig ( ) ) ; ASSERT_NE ( 0u , mProgram ) << " " ; ASSERT_GL_NO_ERROR ( ) ; GLColor32F clearColor ( 0.0f , 1.0f , 2.0f , 3.0f ) ; glClearColor ( clearColor . R , clearColor . G , clearColor . B , clearColor . A ) ; glClear ( GL_COLOR_BUFFER_BIT ) ; ASSERT_GL_NO_ERROR ( ) ; EXPECT_PIXEL_COLOR32F_EQ ( 0 , 0 , clearColor ) ; }
Test clearing and checking the color is correct
Test clearing and checking the color is correct