Revert 234915 "Revert 234758 "gpu: Remove redundant calls from C..."

> Revert 234758 "gpu: Remove redundant calls from CommandBufferHel..."
> 
> > gpu: Remove redundant calls from CommandBufferHelper::GetSpace() and optimize it.
> > 
> > GetSpace() was calling AllocateRingBuffer() followed by WaitForAvailableEntries(). However, WaitForAvailable() was also calling AllocateRingBuffer() which ended up being redundant. We remove the redundant AllocateRingBuffer() call from GetSpace() in this patch.
> > 
> > Also, we add a "fast-path" to return memory as soon as possible without issuing any GL commands if a suitably allocated buffer is already present and can satisfy the request immediately. 
> > 
> > BUG=181711
> > 
> > Review URL: https://codereview.chromium.org/63513002
> 
> TBR=kaanb@chromium.org
> 
> Review URL: https://codereview.chromium.org/64833010

TBR=kaanb@chromium.org

Review URL: https://codereview.chromium.org/74123003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235428 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 235428