aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrBufferAllocPool.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-21 18:17:25 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-21 18:17:25 +0000
commit25fb21f5df904c6f111bbf8f07e6a6c339416d09 (patch)
tree5af3f261512d7fa4aa4555ded17b348cecc971a1 /gpu/src/GrBufferAllocPool.h
parent62b65b0913566381db468277de07e5dd2a9237ca (diff)
Refactor GrDrawTarget vertex/index api
Review URL: http://codereview.appspot.com/4631056/ git-svn-id: http://skia.googlecode.com/svn/trunk@1662 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrBufferAllocPool.h')
-rw-r--r--gpu/src/GrBufferAllocPool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/src/GrBufferAllocPool.h b/gpu/src/GrBufferAllocPool.h
index 7d70ebb83b..c18e36b94b 100644
--- a/gpu/src/GrBufferAllocPool.h
+++ b/gpu/src/GrBufferAllocPool.h
@@ -169,8 +169,10 @@ private:
void destroyBlock();
void flushCpuData(GrGeometryBuffer* buffer, size_t flushSize);
#if GR_DEBUG
- void validate() const;
+ void validate(bool unusedBlockAllowed = false) const;
#endif
+
+ size_t fBytesInUse;
GrGpu* fGpu;
bool fGpuIsReffed;