• skyostil@chromium.org's avatar
    cc: Invalidate framebuffer contents when clearing · a1b0e0df
    skyostil@chromium.org authored
    When clearing the contents of a framebuffer, also invalidate/discard it
    if the GL implementation supports this functionality. This improves
    performance especially on tiling architecture GPUs since the graphics
    driver does not need to restore the previous contents of the framebuffer
    before proceeding with rendering.
    
    Note that normally we don't clear the contents of framebuffers whose
    contents we know we will completely re-render. This patch will still
    invalidate such framebuffers to let the driver know that the previous
    contents are not relevant.
    
    BUG=274334
    
    Review URL: https://chromiumcodereview.appspot.com/23601013
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221425 0039d316-1c4b-4281-b951-d872f2087c98
    a1b0e0df
gl_renderer_unittest.cc 55.8 KB