aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGLIndexBuffer.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/GrGLIndexBuffer.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/GrGLIndexBuffer.cpp')
-rw-r--r--gpu/src/GrGLIndexBuffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/src/GrGLIndexBuffer.cpp b/gpu/src/GrGLIndexBuffer.cpp
index 27915273fe..084a4c61b0 100644
--- a/gpu/src/GrGLIndexBuffer.cpp
+++ b/gpu/src/GrGLIndexBuffer.cpp
@@ -51,7 +51,7 @@ GrGLuint GrGLIndexBuffer::bufferID() const {
void* GrGLIndexBuffer::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_ELEMENT_ARRAY_BUFFER,
@@ -76,7 +76,7 @@ void* GrGLIndexBuffer::lockPtr() const {
void GrGLIndexBuffer::unlock() {
GrAssert(fBufferID);
GrAssert(isLocked());
- GrAssert(GPUGL->supportsBufferLocking());
+ GrAssert(this->getGpu()->getCaps().fBufferLockSupport);
this->bind();
GL_CALL(UnmapBuffer(GR_GL_ELEMENT_ARRAY_BUFFER));
@@ -85,7 +85,7 @@ void GrGLIndexBuffer::unlock() {
bool GrGLIndexBuffer::isLocked() const {
#if GR_DEBUG
- if (this->isValid() && GPUGL->supportsBufferLocking()) {
+ if (this->isValid() && this->getGpu()->getCaps().fBufferLockSupport) {
this->bind();
GrGLint mapped;
GL_CALL(GetBufferParameteriv(GR_GL_ELEMENT_ARRAY_BUFFER,