Changeset 136917 in webkit
- Timestamp:
- Dec 6, 2012, 6:57:21 PM (12 years ago)
- Location:
- trunk/Source/Platform
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/Platform/ChangeLog
r136907 r136917 1 2012-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 1 19 2012-12-06 Kenneth Russell <kbr@google.com> 2 20 -
trunk/Source/Platform/chromium/public/WebGraphicsContext3D.h
r136907 r136917 170 170 virtual void sendManagedMemoryStatsCHROMIUM(const WebGraphicsManagedMemoryStats* stats) { } 171 171 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. 174 173 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*) { } 175 179 virtual void ensureFramebufferCHROMIUM() { } 180 virtual void discardBackbufferCHROMIUM() { } 181 virtual void ensureBackbufferCHROMIUM() { } 176 182 177 183 // Query whether it is built on top of compliant GLES2 implementation.
Note:
See TracChangeset
for help on using the changeset viewer.