Comment #3 on issue 126528 by
mmo...@chromium.org: GpuMemoryManager should
RE What is the GpuMemoryManager: This is an older document Nat and I put
together and sent out to chrome-gpu, though its likely a little stale:
https://docs.google.com/a/google.com/document/d/14a8cxadDOd5984peJwTjvb2oT6xElpETrQxhOmBoCsY/edit?hl=en_US
Short summary of current state:
* It tracks tab visibility and last_use_time
* manages various graphics contexts accordingly, by:
* * splitting the memory cap across the renderer/browser compositors of
visible tabs
* * background tabs are told to purge all memory
* * also sends a message to accelerated canvas shared graphics context to
purge its memory when all tabs in that render process are backgrounded and
fall off some LRU threshold.
Currently it does not:
* Tack WebGL whatsoever
* Query system vram availability: assumes 448M -- chosen because that would
have previously been the *potential* usage at 3 open windows
* Receive memory usage hints from compositors so it can split memory
unevenly
* Do many other nice things