Fix fontcache GMs on Metal.
Inline uploading wasn't set up.
Bug: skia:8243
Change-Id: I3f8ab0287d760d009127adec147d5522cc5b9a22
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/208225
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/mtl/GrMtlGpuCommandBuffer.h b/src/gpu/mtl/GrMtlGpuCommandBuffer.h
index f673354..955fe31 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 <metal/metal.h>
@@ -56,7 +57,10 @@
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;