summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h')
-rw-r--r--chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h b/chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h
index ab2555650f1..279075f4c9e 100644
--- a/chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h
+++ b/chromium/third_party/skia/src/gpu/gl/GrGLBufferImpl.h
@@ -17,7 +17,7 @@ class GrGpuGL;
* This class serves as the implementation of GrGL*Buffer classes. It was written to avoid code
* duplication in those classes.
*/
-class GrGLBufferImpl : public SkNoncopyable {
+class GrGLBufferImpl : SkNoncopyable {
public:
struct Desc {
bool fIsWrapped;
@@ -40,10 +40,9 @@ public:
void bind(GrGpuGL* gpu) const;
- void* lock(GrGpuGL* gpu);
- void* lockPtr() const { return fLockPtr; }
- void unlock(GrGpuGL* gpu);
- bool isLocked() const;
+ void* map(GrGpuGL* gpu);
+ void unmap(GrGpuGL* gpu);
+ bool isMapped() const;
bool updateData(GrGpuGL* gpu, const void* src, size_t srcSizeInBytes);
private:
@@ -52,7 +51,9 @@ private:
Desc fDesc;
GrGLenum fBufferType; // GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER
void* fCPUData;
- void* fLockPtr;
+ void* fMapPtr;
+ size_t fGLSizeInBytes; // In certain cases we make the size of the GL buffer object
+ // smaller or larger than the size in fDesc.
typedef SkNoncopyable INHERITED;
};