third_party/skia_m76/third_party/externals/angle2/src/tests/gl_tests/BlitFramebufferANGLETest.cpp
// blit from one region of the system fbo to another-- this should fail.
blit from one region of the system fbo to another-- this should fail.
blit from one region of the system fbo to another -- this should fail .
TEST_P(BlitFramebufferANGLETest, BlitSameBufferOriginal)
{
    ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_ANGLE_framebuffer_blit"));
    glBindFramebuffer(GL_FRAMEBUFFER, mOriginalFBO);
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
    drawQuad(mCheckerProgram, essl1_shaders::PositionAttrib(), 0.3f);
    EXPECT_GL_NO_ERROR();
    glBlitFramebufferANGLE(0, 0, getWindowWidth() / 2, getWindowHeight(), getWindowWidth() / 2, 0,
                           getWindowWidth(), getWindowHeight(), GL_COLOR_BUFFER_BIT, GL_NEAREST);
    EXPECT_GL_ERROR(GL_INVALID_OPERATION);
}
TEST_P ( BlitFramebufferANGLETest , BlitSameBufferOriginal ) { ANGLE_SKIP_TEST_IF ( ! IsGLExtensionEnabled ( " " ) ) ; glBindFramebuffer ( GL_FRAMEBUFFER , mOriginalFBO ) ; glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT ) ; drawQuad ( mCheckerProgram , essl1_shaders :: PositionAttrib ( ) , 0.3f ) ; EXPECT_GL_NO_ERROR ( ) ; glBlitFramebufferANGLE ( 0 , 0 , getWindowWidth ( ) / 2 , getWindowHeight ( ) , getWindowWidth ( ) / 2 , 0 , getWindowWidth ( ) , getWindowHeight ( ) , GL_COLOR_BUFFER_BIT , GL_NEAREST ) ; EXPECT_GL_ERROR ( GL_INVALID_OPERATION ) ; }
blit from one region of the system fbo to another-- this should fail.
blit from one region of the system fbo to another -- this should fail .