The intent was to cycle through the set of preallocated buffers in the pool. So ...
12 years, 8 months ago
(2012-03-01 16:43:17 UTC)
#1
The intent was to cycle through the set of preallocated buffers in the pool. So
if in a given run we use buffers 0, 1, and 2, then after a reset we'd start with
3.
However, the variable I use to know how many buffers were used before the reset
is decremented down to zero by the time I read it. Also, I didn't consider the
case where the caller reserved space but never used it and returns in putBack().
http://codereview.appspot.com/5716050/diff/1/src/gpu/GrBufferAllocPool.cpp File src/gpu/GrBufferAllocPool.cpp (right): http://codereview.appspot.com/5716050/diff/1/src/gpu/GrBufferAllocPool.cpp#newcode93 src/gpu/GrBufferAllocPool.cpp:93: fPreallocBuffersInUse) % Comment in line 85 suggests that this ...
12 years, 8 months ago
(2012-03-01 17:05:14 UTC)
#2
Issue 5716050: Fix cycling through buffers in buffer alloc pool
(Closed)
Created 12 years, 8 months ago by bsalomon
Modified 12 years, 8 months ago
Reviewers: TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 3