While reviewing Moz2D code I noticed that I think during some of the conversions in bug 1017113 we accidentally introduced a leak into DrawTargetSkia::MaskSurface. Namely I believe at DrawTargetSkia.cpp:588 -maskPaint.setShader(matrixShader); +SkSafeUnref(maskPaint.setShader(matrixShader));
I imagine we will want this uplifted to aurora/b2g34.
Created attachment 8483109 [details] [diff] [review] unref-shader.patch
I had to back this out because it seems to have made mochitest-4 fail on a couple platforms: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=mochitest-4&rev=89f165978438 (if you click the green down arrow to load earlier pushes, m4 was pretty much green prior to this landing) https://hg.mozilla.org/integration/mozilla-inbound/rev/83828ef2601e
Relanded in https://hg.mozilla.org/integration/mozilla-inbound/rev/accfce64d9df because bug 982726 seems more likely to blame.