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