diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 09:35:24 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 09:35:24 +0000 |
commit | e1f231667551733589dcb7c721271caac36e32ef (patch) | |
tree | 89fe5e1d098c7d5b62a5b0f5e94610d973fedcd0 | |
parent | c54e1aa3c39589b125f9e1c0bddf0cbf9353fdd1 (diff) | |
download | chromium_src-e1f231667551733589dcb7c721271caac36e32ef.zip chromium_src-e1f231667551733589dcb7c721271caac36e32ef.tar.gz chromium_src-e1f231667551733589dcb7c721271caac36e32ef.tar.bz2 |
Make Fenced Allocator report all the memory it can use immediately
Fenced allocator would only look at what's currently marked as FREE
even though based on the current token lots of other stuff is
potentially actually already free.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/12045075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178800 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | gpu/command_buffer/client/fenced_allocator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/fenced_allocator.cc b/gpu/command_buffer/client/fenced_allocator.cc index 0d395c4..9e77617 100644 --- a/gpu/command_buffer/client/fenced_allocator.cc +++ b/gpu/command_buffer/client/fenced_allocator.cc @@ -85,6 +85,7 @@ void FencedAllocator::FreePendingToken( // Gets the max of the size of the blocks marked as free. unsigned int FencedAllocator::GetLargestFreeSize() { + FreeUnused(); unsigned int max_size = 0; for (unsigned int i = 0; i < blocks_.size(); ++i) { Block &block = blocks_[i]; |