src/third_party/angle/src/tests/egl_tests/EGLSurfaceTest.cpp
// Test that the window can be reset repeatedly before surface creation.
Test that the window can be reset repeatedly before surface creation.
Test that the window can be reset repeatedly before surface creation .
TEST_P(EGLSurfaceTest, ResetNativeWindow)
{
    setWindowVisible(mOSWindow, true);
    initializeDisplay();
    for (int i = 0; i < 10; ++i)
    {
        mOSWindow->resetNativeWindow();
    }
    initializeSurfaceWithDefaultConfig(true);
    initializeContext();
    ASSERT_NE(mWindowSurface, EGL_NO_SURFACE);
    eglMakeCurrent(mDisplay, mWindowSurface, mWindowSurface, mContext);
    eglSwapBuffers(mDisplay, mWindowSurface);
    ASSERT_EGL_SUCCESS();
}
TEST_P ( EGLSurfaceTest , ResetNativeWindow ) { setWindowVisible ( mOSWindow , true ) ; initializeDisplay ( ) ; for ( int i = 0 ; i < 10 ; ++ i ) { mOSWindow -> resetNativeWindow ( ) ; } initializeSurfaceWithDefaultConfig ( true ) ; initializeContext ( ) ; ASSERT_NE ( mWindowSurface , EGL_NO_SURFACE ) ; eglMakeCurrent ( mDisplay , mWindowSurface , mWindowSurface , mContext ) ; eglSwapBuffers ( mDisplay , mWindowSurface ) ; ASSERT_EGL_SUCCESS ( ) ; }
Test that the window can be reset repeatedly before surface creation.
Test that the window can be reset repeatedly before surface creation .