Index: src/gpu/GrBatchFlushState.h |
diff --git a/src/gpu/GrBatchFlushState.h b/src/gpu/GrBatchFlushState.h |
index d2d9a4b488908bb0d5f5a24910e1b5826e7490ec..cd85f6424929e893e16b0f9b9326e547696db2ee 100644 |
--- a/src/gpu/GrBatchFlushState.h |
+++ b/src/gpu/GrBatchFlushState.h |
@@ -78,7 +78,15 @@ public: |
return this->fGpu->writePixels(surface, left, top, width, height, config, buffer, |
rowBytes); |
}; |
- upload(wp); |
+ GrDrawBatch::TransferPixelsFn tp = [this](GrTexture* texture, |
+ int left, int top, int width, int height, |
+ GrPixelConfig config, GrBuffer* buffer, |
+ size_t offset, size_t rowBytes, |
+ GrFence* fence) -> bool { |
+ return this->fGpu->transferPixels(texture, left, top, width, height, config, buffer, |
+ offset, rowBytes, fence); |
+ }; |
+ upload(wp, tp); |
} |
void putBackIndices(size_t indices) { fIndexPool.putBack(indices * sizeof(uint16_t)); } |