diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-07 20:51:05 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-07 20:51:05 +0000 |
commit | 8341eb76fbc54593e873f5589961e02793e7f15f (patch) | |
tree | e8b88f376924dbd7491e8b0648fde5c35ee603f0 /src/gpu/GrBufferAllocPool.h | |
parent | d4db657bf54ae5346cb142fed2f83ea88544a733 (diff) |
Rename from "(un)lock" to "(un)map" for geometry buffers.
This better reflects OpenGL terminology and is less overloaded ("lock" is used w.r.t. the resource cache).
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/275493004
git-svn-id: http://skia.googlecode.com/svn/trunk@14628 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrBufferAllocPool.h')
-rw-r--r-- | src/gpu/GrBufferAllocPool.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gpu/GrBufferAllocPool.h b/src/gpu/GrBufferAllocPool.h index 9a31cc2a9a..291d781ac6 100644 --- a/src/gpu/GrBufferAllocPool.h +++ b/src/gpu/GrBufferAllocPool.h @@ -20,7 +20,7 @@ class GrGpu; * * The pool allows a client to make space for geometry and then put back excess * space if it over allocated. When a client is ready to draw from the pool - * it calls unlock on the pool ensure buffers are ready for drawing. The pool + * it calls unmap on the pool ensure buffers are ready for drawing. The pool * can be reset after drawing is completed to recycle space. * * At creation time a minimum per-buffer size can be specified. Additionally, @@ -30,10 +30,10 @@ class GrGpu; class GrBufferAllocPool : SkNoncopyable { public: /** - * Ensures all buffers are unlocked and have all data written to them. + * Ensures all buffers are unmapped and have all data written to them. * Call before drawing using buffers from the pool. */ - void unlock(); + void unmap(); /** * Invalidates all the data in the pool, unrefs non-preallocated buffers. @@ -77,7 +77,7 @@ 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 unlock() calls + * should expect frequent unmap() calls * (as opposed to many makeSpace / acquires * between resets). * @param bufferSize The minimum size of created buffers. @@ -109,11 +109,11 @@ protected: * data is given to the caller. The buffer may or may not be locked. The * returned ptr remains valid until any of the following: * *makeSpace is called again. - * *unlock is called. + * *unmap is called. * *reset is called. * *this object is destroyed. * - * Once unlock on the pool is called the data is guaranteed to be in the + * Once unmap on the pool is called the data is guaranteed to be in the * buffer at the offset indicated by offset. Until that time it may be * in temporary storage and/or the buffer may be locked. * @@ -190,7 +190,7 @@ public: * * @param gpu The GrGpu used to create the vertex buffers. * @param frequentResetHint A hint that indicates that the pool - * should expect frequent unlock() calls + * should expect frequent unmap() calls * (as opposed to many makeSpace / acquires * between resets). * @param bufferSize The minimum size of created VBs This value @@ -209,11 +209,11 @@ public: * the vertices given to the caller. The buffer may or may not be locked. * The returned ptr remains valid until any of the following: * *makeSpace is called again. - * *unlock is called. + * *unmap is called. * *reset is called. * *this object is destroyed. * - * Once unlock on the pool is called the vertices are guaranteed to be in + * Once unmap on the pool is called the vertices are guaranteed to be in * the buffer at the offset indicated by startVertex. Until that time they * may be in temporary storage and/or the buffer may be locked. * @@ -278,7 +278,7 @@ public: * * @param gpu The GrGpu used to create the index buffers. * @param frequentResetHint A hint that indicates that the pool - * should expect frequent unlock() calls + * should expect frequent unmap() calls * (as opposed to many makeSpace / acquires * between resets). * @param bufferSize The minimum size of created IBs This value @@ -297,11 +297,11 @@ public: * the indices is given to the caller. The buffer may or may not be locked. * The returned ptr remains valid until any of the following: * *makeSpace is called again. - * *unlock is called. + * *unmap is called. * *reset is called. * *this object is destroyed. * - * Once unlock on the pool is called the indices are guaranteed to be in the + * Once unmap on the pool is called the indices are guaranteed to be in the * buffer at the offset indicated by startIndex. Until that time they may be * in temporary storage and/or the buffer may be locked. * |