diff options
Diffstat (limited to 'src/gpu/mtl/GrMtlGpu.h')
-rw-r--r-- | src/gpu/mtl/GrMtlGpu.h | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/src/gpu/mtl/GrMtlGpu.h b/src/gpu/mtl/GrMtlGpu.h index 8a68b763eb..be922e5fdb 100644 --- a/src/gpu/mtl/GrMtlGpu.h +++ b/src/gpu/mtl/GrMtlGpu.h @@ -39,23 +39,6 @@ public: kSkip_SyncQueue }; -#ifdef GR_TEST_UTILS - GrBackendTexture createTestingOnlyBackendTexture(const void* pixels, int w, int h, - GrPixelConfig config, bool isRT, - GrMipMapped) override; - - bool isTestingOnlyBackendTexture(const GrBackendTexture&) const override; - - void deleteTestingOnlyBackendTexture(const GrBackendTexture&) override; - - GrBackendRenderTarget createTestingOnlyBackendRenderTarget(int w, int h, GrColorType, - GrSRGBEncoded) override; - - void deleteTestingOnlyBackendRenderTarget(const GrBackendRenderTarget&) override; - - void testingOnly_flushGpuAndSync() override; -#endif - bool onCopySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, @@ -152,9 +135,21 @@ private: void clearStencil(GrRenderTarget* target, int clearValue) override {} #if GR_TEST_UTILS - bool createTestingOnlyMtlTextureInfo(GrPixelConfig config, int w, int h, bool texturable, - bool renderable, GrMipMapped mipMapped, - const void* srcData, GrMtlTextureInfo* info); + GrBackendTexture createTestingOnlyBackendTexture(const void* pixels, int w, int h, + GrPixelConfig config, bool isRT, + GrMipMapped) override { + return GrBackendTexture(); + } + bool isTestingOnlyBackendTexture(const GrBackendTexture&) const override { return false; } + void deleteTestingOnlyBackendTexture(const GrBackendTexture&) override {} + + GrBackendRenderTarget createTestingOnlyBackendRenderTarget(int w, int h, GrColorType, + GrSRGBEncoded) override { + return {}; + } + void deleteTestingOnlyBackendRenderTarget(const GrBackendRenderTarget&) override {} + + void testingOnly_flushGpuAndSync() override {} #endif sk_sp<GrMtlCaps> fMtlCaps; |