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>
This commit is contained in:
Jim Van Verth 2019-04-15 15:28:41 -04:00 committed by Skia Commit-Bot
parent 194cab0fd3
commit 6f8bfba1b7

View File

@ -11,6 +11,7 @@
#include "GrGpuCommandBuffer.h"
#include "GrMtlGpu.h"
#include "GrMesh.h"
#include "GrOpFlushState.h"
#import <metal/metal.h>
@ -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;