Index: src/gpu/GrAARectRenderer.cpp |
diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp |
index eebda01b378c36480408cf51cac7c7b05bebb378..673cb5ad4a65f52b10a72085dee54b844464449b 100644 |
--- a/src/gpu/GrAARectRenderer.cpp |
+++ b/src/gpu/GrAARectRenderer.cpp |
@@ -311,7 +311,7 @@ GrIndexBuffer* GrAARectRenderer::aaFillRectIndexBuffer(GrGpu* gpu) { |
if (NULL == fAAFillRectIndexBuffer) { |
fAAFillRectIndexBuffer = gpu->createIndexBuffer(kAAFillRectIndexBufferSize, false); |
if (NULL != fAAFillRectIndexBuffer) { |
- uint16_t* data = (uint16_t*) fAAFillRectIndexBuffer->lock(); |
+ uint16_t* data = (uint16_t*) fAAFillRectIndexBuffer->map(); |
bool useTempData = (NULL == data); |
if (useTempData) { |
data = SkNEW_ARRAY(uint16_t, kNumAAFillRectsInIndexBuffer * kIndicesPerAAFillRect); |
@@ -331,7 +331,7 @@ GrIndexBuffer* GrAARectRenderer::aaFillRectIndexBuffer(GrGpu* gpu) { |
} |
SkDELETE_ARRAY(data); |
} else { |
- fAAFillRectIndexBuffer->unlock(); |
+ fAAFillRectIndexBuffer->unmap(); |
} |
} |
} |