DescriptionTrack managed memory usage in the command buffer.
This adds infrastructure necessary to support tracking which allocations
are through the compositor (or, more generally, any managed allocator that
the GPU memory manager affect) and allocations that are not (e.g, WebGL).
This is part of a scheme which will add a GL extension where the compositor
can mark a texture as being managed by a call to glTexParameteri.
This information had previously been tracked by an IPC being sent by the
compositor to the GPU process informing it of the managed memory usage (in
addition to the usage required for all visible content, etc). This had
the two problems. First, the information was not accurate -- the data sent
about managed allocations to the GPU memory manager would always lag the
actual allocations. Second, these IPCs were expensive and needed to be
throttled. The more we throttle the IPCs, the less accurate the information
would become, making the GPU memory manager's behavior less precise and
predictable.
BUG=164947
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172754
Patch Set 1 #Patch Set 2 : Resolve against HEAD #
Total comments: 6
Patch Set 3 : Incorporate review feedback #Patch Set 4 : Fix unit test compile error #Messages
Total messages: 9 (0 generated)
|