Index: src/gpu/batches/GrVertexBatch.cpp |
diff --git a/src/gpu/batches/GrVertexBatch.cpp b/src/gpu/batches/GrVertexBatch.cpp |
index 8a5dd6289bb30ad7427ea4b8ff5671ed3cfbb981..af3a186e1353aecf6e85041e72b6e852e98f7026 100644 |
--- a/src/gpu/batches/GrVertexBatch.cpp |
+++ b/src/gpu/batches/GrVertexBatch.cpp |
@@ -75,8 +75,8 @@ void GrVertexBatch::onDraw(GrBatchFlushState* state) { |
state->doUpload(fInlineUploads[currUploadIdx++].fUpload); |
} |
const QueuedDraw &draw = fQueuedDraws[currDrawIdx]; |
- state->gpu()->draw(*this->pipeline(), *draw.fGeometryProcessor.get(), |
- fMeshes.begin() + currMeshIdx, draw.fMeshCnt); |
+ state->commandBuffer()->draw(*this->pipeline(), *draw.fGeometryProcessor.get(), |
+ fMeshes.begin() + currMeshIdx, draw.fMeshCnt); |
currMeshIdx += draw.fMeshCnt; |
state->flushToken(); |
} |