diff --git a/src/gpu/mtl/GrMtlGpuCommandBuffer.h b/src/gpu/mtl/GrMtlGpuCommandBuffer.h index f673354865..955fe31dba 100644 --- a/src/gpu/mtl/GrMtlGpuCommandBuffer.h +++ b/src/gpu/mtl/GrMtlGpuCommandBuffer.h @@ -11,6 +11,7 @@ #include "GrGpuCommandBuffer.h" #include "GrMtlGpu.h" #include "GrMesh.h" +#include "GrOpFlushState.h" #import @@ -56,7 +57,10 @@ public: void insertEventMarker(const char* msg) override {} - void inlineUpload(GrOpFlushState* state, GrDeferredTextureUploadFn& upload) override {} + void inlineUpload(GrOpFlushState* state, GrDeferredTextureUploadFn& upload) override { + // TODO: this could be more efficient + state->doUpload(upload); + } void copy(GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, const SkIPoint& dstPoint) override;