Have GrMtlTexture and GrMtlRenderTarget call parents onRelease/Abandon.
Bug: skia: Change-Id: Ib7c19f4a1951f7463912b78c18ed7f2839833193 Reviewed-on: https://skia-review.googlesource.com/c/189485 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
0c74d7d928
commit
c91162d20b
@ -82,6 +82,8 @@ private:
|
||||
bool completeStencilAttachment() override;
|
||||
|
||||
void onSetRelease(sk_sp<GrReleaseProcHelper> releaseHelper) override {}
|
||||
|
||||
typedef GrRenderTarget INHERITED;
|
||||
};
|
||||
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user