Avoid GetState IPC call during AllocateRingbuffer.

SetGetBuffer(id) resets get and put offsets to 0.
So no need to ask CommandBuffer::State through GetState() IPC call.

CreateTransferBuffer() allocates new cmd buffer of size 1MB.
No need to check for num_entries after new allocation of ring_buffer, as always state.num_entries==num_ring_buffer_entries after this new allocation.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264166 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed