src/third_party/angle/src/tests/perf_tests/TracePerfTest.cpp
// Needs special handling to treat the 0 framebuffer in offscreen mode.
Needs special handling to treat the 0 framebuffer in offscreen mode.
Needs special handling to treat the 0 framebuffer in offscreen mode .
void TracePerfTest::onReplayInvalidateFramebuffer(GLenum target,
                                                  GLsizei numAttachments,
                                                  const GLenum *attachments)
{
    if (GetParam().surfaceType != SurfaceType::Offscreen || !isDefaultFramebuffer(target))
    {
        glInvalidateFramebuffer(target, numAttachments, attachments);
    }
    else
    {
        std::vector<GLenum> translatedAttachments =
            ConvertDefaultFramebufferEnums(numAttachments, attachments);
        glInvalidateFramebuffer(target, numAttachments, translatedAttachments.data());
    }
}
void TracePerfTest :: onReplayInvalidateFramebuffer ( GLenum target , GLsizei numAttachments , const GLenum * attachments ) { if ( GetParam ( ) . surfaceType != SurfaceType :: Offscreen || ! isDefaultFramebuffer ( target ) ) { glInvalidateFramebuffer ( target , numAttachments , attachments ) ; } else { std :: vector < GLenum > translatedAttachments = ConvertDefaultFramebufferEnums ( numAttachments , attachments ) ; glInvalidateFramebuffer ( target , numAttachments , translatedAttachments . data ( ) ) ; } }
Needs special handling to treat the 0 framebuffer in offscreen mode.
Needs special handling to treat the 0 framebuffer in offscreen mode .