aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBufferAllocPool.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-04-29 04:33:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-29 04:33:52 -0700
commitecb8e3e394cbd081511e19ac83654b2437bd8bba (patch)
treeb222d1d76ff0e788e92542050b0b172a938c16e7 /src/gpu/GrBufferAllocPool.h
parent280a9c81aa38271bc3b8ad4d442dd894cd2af3db (diff)
Remove unneeded features from GrBufferAllocPool
Diffstat (limited to 'src/gpu/GrBufferAllocPool.h')
-rw-r--r--src/gpu/GrBufferAllocPool.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/gpu/GrBufferAllocPool.h b/src/gpu/GrBufferAllocPool.h
index 40904cf871..9ea33f79ba 100644
--- a/src/gpu/GrBufferAllocPool.h
+++ b/src/gpu/GrBufferAllocPool.h
@@ -76,10 +76,6 @@ protected:
*
* @param gpu The GrGpu used to create the buffers.
* @param bufferType The type of buffers to create.
- * @param frequentResetHint A hint that indicates that the pool
- * should expect frequent unmap() calls
- * (as opposed to many makeSpace / acquires
- * between resets).
* @param bufferSize The minimum size of created buffers.
* This value will be clamped to some
* reasonable minimum.
@@ -89,7 +85,6 @@ protected:
*/
GrBufferAllocPool(GrGpu* gpu,
BufferType bufferType,
- bool frequentResetHint,
size_t bufferSize = 0,
int preallocBufferCnt = 0);
@@ -146,7 +141,6 @@ private:
// The GrGpu must be able to clear the ref of pools it creates as members
friend class GrGpu;
- void releaseGpuRef();
struct BufferBlock {
size_t fBytesFree;
@@ -163,8 +157,6 @@ private:
size_t fBytesInUse;
GrGpu* fGpu;
- bool fGpuIsReffed;
- bool fFrequentResetHint;
SkTDArray<GrGeometryBuffer*> fPreallocBuffers;
size_t fMinBlockSize;
BufferType fBufferType;
@@ -189,20 +181,13 @@ public:
* Constructor
*
* @param gpu The GrGpu used to create the vertex buffers.
- * @param frequentResetHint A hint that indicates that the pool
- * should expect frequent unmap() calls
- * (as opposed to many makeSpace / acquires
- * between resets).
* @param bufferSize The minimum size of created VBs This value
* will be clamped to some reasonable minimum.
* @param preallocBufferCnt The pool will allocate this number of VBs at
* bufferSize and keep them until it is
* destroyed.
*/
- GrVertexBufferAllocPool(GrGpu* gpu,
- bool frequentResetHint,
- size_t bufferSize = 0,
- int preallocBufferCnt = 0);
+ GrVertexBufferAllocPool(GrGpu* gpu, size_t bufferSize = 0, int preallocBufferCnt = 0);
/**
* Returns a block of memory to hold vertices. A buffer designated to hold
@@ -268,10 +253,6 @@ public:
* Constructor
*
* @param gpu The GrGpu used to create the index buffers.
- * @param frequentResetHint A hint that indicates that the pool
- * should expect frequent unmap() calls
- * (as opposed to many makeSpace / acquires
- * between resets).
* @param bufferSize The minimum size of created IBs This value
* will be clamped to some reasonable minimum.
* @param preallocBufferCnt The pool will allocate this number of VBs at
@@ -279,7 +260,6 @@ public:
* destroyed.
*/
GrIndexBufferAllocPool(GrGpu* gpu,
- bool frequentResetHint,
size_t bufferSize = 0,
int preallocBufferCnt = 0);