Index: src/gpu/GrBufferAllocPool.cpp |
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp |
index 30d02d953e0b92567c3bd3d691bb986392367902..2dbf3eb283fb37ae40b1f6a54e08267d5e7e0048 100644 |
--- a/src/gpu/GrBufferAllocPool.cpp |
+++ b/src/gpu/GrBufferAllocPool.cpp |
@@ -303,7 +303,7 @@ |
// threshold (since we don't expect it is likely that we will see more vertex data) |
// b) If the hint is not set we lock if the buffer size is greater than the threshold. |
bool attemptLock = block.fBuffer->isCPUBacked(); |
- if (!attemptLock && GrDrawTargetCaps::kNone_MapFlags != fGpu->caps()->mapBufferFlags()) { |
+ if (!attemptLock && fGpu->caps()->bufferLockSupport()) { |
if (fFrequentResetHint) { |
attemptLock = requestSize > GR_GEOM_BUFFER_LOCK_THRESHOLD; |
} else { |
@@ -351,7 +351,7 @@ |
SkASSERT(flushSize <= buffer->sizeInBytes()); |
VALIDATE(true); |
- if (GrDrawTargetCaps::kNone_MapFlags != fGpu->caps()->mapBufferFlags() && |
+ if (fGpu->caps()->bufferLockSupport() && |
flushSize > GR_GEOM_BUFFER_LOCK_THRESHOLD) { |
void* data = buffer->lock(); |
if (NULL != data) { |