Call DiscardFramebufferEXT earlier in WebGL's DrawingBuffer.
If the GL_EXT_discard_framebuffer extension is available, use it to discard the depth and stencil buffers earlier, in ResolveIfNeeded. This attempts to avoid resolves and flushes of these attachments from tile memory to main memory when using implicit antialiasing. Continue invalidating the framebuffer, including the color buffer, upon BindFramebuffer in FinishPrepareTransferableResourceGpu. Small updates to two related web tests, fast/webgl/webgl-composite-modes-repaint.html and fast/webgl/webgl-composite-modes-tabswitching.html . Bug: 784743 Change-Id: I6184b35bc867fbaba6540889da6d1783d7b40083 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2351388 Commit-Queue: Kenneth Russell <kbr@chromium.org> Reviewed-by:James Darpinian <jdarpinian@chromium.org> Reviewed-by:
Shrek Shao <shrekshao@google.com> Cr-Commit-Position: refs/heads/master@{#814888}
Showing
Please register or sign in to comment