Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index bc9295252aed58ed327a4261bd8de761bb9174e9..111f632502f075632028689fa64fcf483f7e9e29 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -303,10 +303,10 @@ const GrIndexBuffer* GrGpu::getQuadIndexBuffer() const { |
GrGpu* me = const_cast<GrGpu*>(this); |
fQuadIndexBuffer = me->createIndexBuffer(SIZE, false); |
if (NULL != fQuadIndexBuffer) { |
- uint16_t* indices = (uint16_t*)fQuadIndexBuffer->lock(); |
+ uint16_t* indices = (uint16_t*)fQuadIndexBuffer->map(); |
if (NULL != indices) { |
fill_indices(indices, MAX_QUADS); |
- fQuadIndexBuffer->unlock(); |
+ fQuadIndexBuffer->unmap(); |
} else { |
indices = (uint16_t*)sk_malloc_throw(SIZE); |
fill_indices(indices, MAX_QUADS); |
@@ -422,12 +422,12 @@ void GrGpu::onDrawPaths(int pathCount, const GrPath** paths, |
void GrGpu::finalizeReservedVertices() { |
SkASSERT(NULL != fVertexPool); |
- fVertexPool->unlock(); |
+ fVertexPool->unmap(); |
} |
void GrGpu::finalizeReservedIndices() { |
SkASSERT(NULL != fIndexPool); |
- fIndexPool->unlock(); |
+ fIndexPool->unmap(); |
} |
void GrGpu::prepareVertexPool() { |