Release surface between runs to avoid seg fault

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2032693002

Review-Url: https://codereview.chromium.org/2032693002
This commit is contained in:
brianosman 2016-06-01 13:49:27 -07:00 committed by Commit bot
parent 066d682d61
commit f7cfa920f4

View File

@ -59,6 +59,10 @@ protected:
}
}
void onPerCanvasPostDraw(SkCanvas*) override {
fSurface.reset(nullptr);
}
private:
typedef Benchmark INHERITED;
};