aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGLVertexBuffer.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-22 21:01:31 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-22 21:01:31 +0000
commit18c9c198f571997463d9a7134dbd88298e592ec2 (patch)
treeaa66d25ecdc1d33dd9c4c7e943b1ca43acd0f13f /gpu/src/GrGLVertexBuffer.cpp
parentf1fd30da32f14e6c58b10903267afb937ee64888 (diff)
Put caps in a struct, move up to GrDrawTarget
Review URL: http://codereview.appspot.com/5088049 git-svn-id: http://skia.googlecode.com/svn/trunk@2314 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLVertexBuffer.cpp')
-rw-r--r--gpu/src/GrGLVertexBuffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/src/GrGLVertexBuffer.cpp b/gpu/src/GrGLVertexBuffer.cpp
index 2d5aee0a37..c542602a9b 100644
--- a/gpu/src/GrGLVertexBuffer.cpp
+++ b/gpu/src/GrGLVertexBuffer.cpp
@@ -50,7 +50,7 @@ GrGLuint GrGLVertexBuffer::bufferID() const {
void* GrGLVertexBuffer::lock() {
GrAssert(fBufferID);
GrAssert(!isLocked());
- if (GPUGL->supportsBufferLocking()) {
+ if (this->getGpu()->getCaps().fBufferLockSupport) {
this->bind();
// Let driver know it can discard the old data
GL_CALL(BufferData(GR_GL_ARRAY_BUFFER, this->sizeInBytes(), NULL,
@@ -72,7 +72,7 @@ void GrGLVertexBuffer::unlock() {
GrAssert(fBufferID);
GrAssert(isLocked());
- GrAssert(GPUGL->supportsBufferLocking());
+ GrAssert(this->getGpu()->getCaps().fBufferLockSupport);
this->bind();
GL_CALL(UnmapBuffer(GR_GL_ARRAY_BUFFER));
@@ -82,7 +82,7 @@ void GrGLVertexBuffer::unlock() {
bool GrGLVertexBuffer::isLocked() const {
GrAssert(!this->isValid() || fBufferID);
#if GR_DEBUG
- if (this->isValid() && GPUGL->supportsBufferLocking()) {
+ if (this->isValid() && this->getGpu()->getCaps().fBufferLockSupport) {
GrGLint mapped;
this->bind();
GL_CALL(GetBufferParameteriv(GR_GL_ARRAY_BUFFER,