diff options
author | 2011-10-10 14:49:29 +0000 | |
---|---|---|
committer | 2011-10-10 14:49:29 +0000 | |
commit | 96e96dfd1edea2ceaf0311fce71cddae50175086 (patch) | |
tree | 7aac870f9e2d1cb935f0082dfa65e81de86e293e /gpu/src/GrGLIndexBuffer.h | |
parent | e05cc8e94ee2ad853233262d74047119939111f2 (diff) |
When we're not using the NULL buffer data hint update with glBufferData rather than glBufferSubData.
Review URL: http://codereview.appspot.com/5253047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2443 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLIndexBuffer.h')
-rw-r--r-- | gpu/src/GrGLIndexBuffer.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gpu/src/GrGLIndexBuffer.h b/gpu/src/GrGLIndexBuffer.h index e4e77c9e8c..c3e2287260 100644 --- a/gpu/src/GrGLIndexBuffer.h +++ b/gpu/src/GrGLIndexBuffer.h @@ -30,9 +30,7 @@ public: virtual void unlock(); virtual bool isLocked() const; virtual bool updateData(const void* src, size_t srcSizeInBytes); - virtual bool updateSubData(const void* src, - size_t srcSizeInBytes, - size_t offset); + protected: GrGLIndexBuffer(GrGpuGL* gpu, GrGLuint id, |