RESOLVED FIXED 65655
[chromium] Implement a global resource limit for DrawingBuffer to limit the amount of GPU memory used by 2d canvas backing stores
https://bugs.webkit.org/show_bug.cgi?id=65655
Summary [chromium] Implement a global resource limit for DrawingBuffer to limit the a...
James Robinson
Reported 2011-08-03 16:32:52 PDT
[chromium] Implement a global resource limit for DrawingBuffer to limit the amount of GPU memory used by 2d canvas backing stores
Attachments
Patch (3.97 KB, patch)
2011-08-03 16:34 PDT, James Robinson
no flags
Patch (3.87 KB, patch)
2011-08-03 16:45 PDT, James Robinson
no flags
James Robinson
Comment 1 2011-08-03 16:34:54 PDT
James Robinson
Comment 2 2011-08-03 16:45:03 PDT
James Robinson
Comment 3 2011-08-03 16:52:30 PDT
This patch is necessary for wilderness downtown, which tries to create 475mb worth of DrawingBuffer textures/stencil buffers without this patch. We can extend this in the future to allow setting the limit dynamically, and possibly do readbacks for DrawingBuffers if memory gets tight, but this seems like a good start and should work for now. I picked a limit (somewhat arbitrarily) of 16megapixels, which means 128mb of vram assuming 4 bytes/pixel for the color attachment and 4 bytes/pixel for the stencil buffer, assuming that it's packed in the card.
Kenneth Russell
Comment 4 2011-08-04 14:07:12 PDT
Comment on attachment 102860 [details] Patch This looks okay to me as a first pass workaround. Assuming it's been tested.
WebKit Review Bot
Comment 5 2011-08-04 16:47:12 PDT
Comment on attachment 102860 [details] Patch Clearing flags on attachment: 102860 Committed r92430: <http://trac.webkit.org/changeset/92430>
WebKit Review Bot
Comment 6 2011-08-04 16:47:16 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.