Add clear after each image save, so that GPU images won't end up progressively compositing on top of one another.
git-svn-id: http://skia.googlecode.com/svn/trunk@7108 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 6f062e4..fb6d376 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -887,6 +887,7 @@
if (outDir.size() > 0) {
saveFile(bench->getName(), configName, outDir.c_str(),
device->accessBitmap(false));
+ canvas->clear(SK_ColorWHITE);
}
}
logger.logProgress(SkString("\n"));