diff --git a/src/gpu/mtl/GrMtlRenderTarget.h b/src/gpu/mtl/GrMtlRenderTarget.h index d5b11e9d12..c6a13aac9d 100644 --- a/src/gpu/mtl/GrMtlRenderTarget.h +++ b/src/gpu/mtl/GrMtlRenderTarget.h @@ -82,6 +82,8 @@ private: bool completeStencilAttachment() override; void onSetRelease(sk_sp releaseHelper) override {} + + typedef GrRenderTarget INHERITED; }; diff --git a/src/gpu/mtl/GrMtlRenderTarget.mm b/src/gpu/mtl/GrMtlRenderTarget.mm index 07e5639294..4e6cc83e5c 100644 --- a/src/gpu/mtl/GrMtlRenderTarget.mm +++ b/src/gpu/mtl/GrMtlRenderTarget.mm @@ -66,11 +66,13 @@ GrMtlGpu* GrMtlRenderTarget::getMtlGpu() const { void GrMtlRenderTarget::onAbandon() { fRenderTexture = nil; fResolveTexture = nil; + INHERITED::onAbandon(); } void GrMtlRenderTarget::onRelease() { fRenderTexture = nil; fResolveTexture = nil; + INHERITED::onRelease(); } bool GrMtlRenderTarget::completeStencilAttachment() { diff --git a/src/gpu/mtl/GrMtlTexture.h b/src/gpu/mtl/GrMtlTexture.h index 5c25321cd2..13555e40a6 100644 --- a/src/gpu/mtl/GrMtlTexture.h +++ b/src/gpu/mtl/GrMtlTexture.h @@ -49,9 +49,11 @@ protected: void onAbandon() override { fTexture = nil; + INHERITED::onAbandon(); } void onRelease() override { fTexture = nil; + INHERITED::onRelease(); } bool onStealBackendTexture(GrBackendTexture*, SkImage::BackendTextureReleaseProc*) override {