diff --git a/src/gpu/mtl/GrMtlCommandBuffer.h b/src/gpu/mtl/GrMtlCommandBuffer.h index f18bd8853f..8b329745b2 100644 --- a/src/gpu/mtl/GrMtlCommandBuffer.h +++ b/src/gpu/mtl/GrMtlCommandBuffer.h @@ -51,8 +51,9 @@ public: } void addResource(sk_sp resource) { - SkASSERT(resource); - fTrackedResources.push_back(std::move(resource)); +// Disable generic resource tracking for now +// SkASSERT(resource); +// fTrackedResources.push_back(std::move(resource)); } void addGrBuffer(sk_sp buffer) { diff --git a/src/gpu/mtl/GrMtlCommandBuffer.mm b/src/gpu/mtl/GrMtlCommandBuffer.mm index 019ff77c97..745726375d 100644 --- a/src/gpu/mtl/GrMtlCommandBuffer.mm +++ b/src/gpu/mtl/GrMtlCommandBuffer.mm @@ -22,7 +22,7 @@ GR_NORETAIN_BEGIN sk_sp GrMtlCommandBuffer::Make(id queue) { id mtlCommandBuffer; - mtlCommandBuffer = [queue commandBufferWithUnretainedReferences]; + mtlCommandBuffer = [queue commandBuffer]; if (nil == mtlCommandBuffer) { return nullptr; }