diff options
author | kkinnunen <kkinnunen@nvidia.com> | 2016-01-13 23:36:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-13 23:36:45 -0800 |
commit | 702501ddca7cf9b7b941ad286a0c9aa37fda86ef (patch) | |
tree | 0f9224f82fe58a6e2a5a5a0f519173b3ae5cf0c2 /gyp/bench.gyp | |
parent | 7ddfeeddf78b78de28874432eb9a95735b56af7b (diff) |
Simplify path allocation, clean up resources correctly
Simplify path id allocation in NVPR backend. Instead of using
an AVL tree of path id ranges for the first 65535 ids, use just
a simple stategy of overallocation and "bump index".
Fixes the bug where previously overallocated ids were not deleted.
The advantage is that the implementation is simple and all allocations
go through overallocation, not just the first 65535 of the 1-range
allocations.
Removes the logic where paths were cleared with setting path data to
null instead of deleting the whole path. Now deleted paths are just
deleted normally. These operations should have equivalent performance on
command buffer. Deleting the path should enable the driver to do more
maintainance.
Removes the GLNameAllocator, as it was only used for paths. In order for
it to be used for other IDs, it probably would need to be re-written to
support cleanup and arbitrary ranges. Also, the interface would probably
need to be changed to not requiring the block to be allocated before it
could be managed by the structure.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1150243003
Review URL: https://codereview.chromium.org/1150243003
Diffstat (limited to 'gyp/bench.gyp')
0 files changed, 0 insertions, 0 deletions