Changeset 136917 in webkit


Ignore:
Timestamp:
Dec 6, 2012, 6:57:21 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Rename non-standard discard/ensureFramebufferCHROMIUM extensions so we can use real GL_EXT_discard_framebuffer
https://bugs.webkit.org/show_bug.cgi?id=104316

Patch by James Robinson <jamesr@chromium.org> on 2012-12-06
Reviewed by Kenneth Russell.

GL_EXT_discard_framebuffer is a GL extension that enables optimizations for GPUs that aggressively defer
operations. We've 'borrowed' the extension namespace to enable backbuffer management, but this makes it
impossible to use the actual extension. This adds new entry points for backbuffer management. After callers
(which aren't in the WebKit repo) are updated, we can remove the overlapping entry points.

  • chromium/public/WebGraphicsContext3D.h:

(WebGraphicsContext3D):
(WebKit::WebGraphicsContext3D::discardFramebufferCHROMIUM):
(WebKit::WebGraphicsContext3D::discardBackbufferCHROMIUM):
(WebKit::WebGraphicsContext3D::ensureBackbufferCHROMIUM):

Location:
trunk/Source/Platform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r136907 r136917  
     12012-12-06  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Rename non-standard discard/ensureFramebufferCHROMIUM extensions so we can use real GL_EXT_discard_framebuffer
     4        https://bugs.webkit.org/show_bug.cgi?id=104316
     5
     6        Reviewed by Kenneth Russell.
     7
     8        GL_EXT_discard_framebuffer is a GL extension that enables optimizations for GPUs that aggressively defer
     9        operations. We've 'borrowed' the extension namespace to enable backbuffer management, but this makes it
     10        impossible to use the actual extension.  This adds new entry points for backbuffer management. After callers
     11        (which aren't in the WebKit repo) are updated, we can remove the overlapping entry points.
     12
     13        * chromium/public/WebGraphicsContext3D.h:
     14        (WebGraphicsContext3D):
     15        (WebKit::WebGraphicsContext3D::discardFramebufferCHROMIUM):
     16        (WebKit::WebGraphicsContext3D::discardBackbufferCHROMIUM):
     17        (WebKit::WebGraphicsContext3D::ensureBackbufferCHROMIUM):
     18
    1192012-12-06  Kenneth Russell  <kbr@google.com>
    220
  • trunk/Source/Platform/chromium/public/WebGraphicsContext3D.h

    r136907 r136917  
    170170    virtual void sendManagedMemoryStatsCHROMIUM(const WebGraphicsManagedMemoryStats* stats) { }
    171171
    172     // GL_EXT_discard_framebuffer - discard/ensure existance of surface backbuffer.
    173     // FIXME: make these pure virtual once they are implemented by clients.
     172    // GL_EXT_discard_framebuffer - makes specified attachments of currently bound framebuffer undefined.
    174173    virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) { }
     174
     175    // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the back buffer.
     176    // FIXME: Parameters to discardFramebufferCHROMIUM aren't used, remove when calling code is gone.
     177    // FIXME: Remove xxxFramebufferCHROMIUM versions when callers switch to xxxBackbufferCHROMIUM()
     178    virtual void discardFramebufferCHROMIUM(WGC3Denum, WGC3Dsizei, const WGC3Denum*) { }
    175179    virtual void ensureFramebufferCHROMIUM() { }
     180    virtual void discardBackbufferCHROMIUM() { }
     181    virtual void ensureBackbufferCHROMIUM() { }
    176182
    177183    // Query whether it is built on top of compliant GLES2 implementation.
Note: See TracChangeset for help on using the changeset viewer.