aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBufferAllocPool.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-01 20:59:28 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-01 20:59:28 +0000
commitb665a6b148826eecb4f425c57e8a0df0ec63f016 (patch)
treec08b4534acf0583705a110b27b1534f221b2dca2 /src/gpu/GrBufferAllocPool.h
parent9c88bafd283421eda93d4068db003a0510883ceb (diff)
Fix cycling through buffers in buffer alloc pool
Review URL: http://codereview.appspot.com/5716050/ git-svn-id: http://skia.googlecode.com/svn/trunk@3296 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrBufferAllocPool.h')
-rw-r--r--src/gpu/GrBufferAllocPool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrBufferAllocPool.h b/src/gpu/GrBufferAllocPool.h
index acf0289582..3e2cd395c6 100644
--- a/src/gpu/GrBufferAllocPool.h
+++ b/src/gpu/GrBufferAllocPool.h
@@ -176,7 +176,9 @@ private:
SkTArray<BufferBlock> fBlocks;
int fPreallocBuffersInUse;
- int fFirstPreallocBuffer;
+ // We attempt to cycle through the preallocated buffers rather than
+ // always starting from the first.
+ int fPreallocBufferStartIdx;
SkAutoMalloc fCpuData;
void* fBufferPtr;
};