From e1f231667551733589dcb7c721271caac36e32ef Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" Date: Fri, 25 Jan 2013 09:35:24 +0000 Subject: 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 --- gpu/command_buffer/client/fenced_allocator.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gpu') 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]; -- cgit v1.1