Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index c2c7875b282cc6cfbd8a0aa6b8a38eba0eecb678..13ae6ead3f22f2788cf152ef1963be7cdc02c3a2 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -205,6 +205,12 @@ static bool render_picture_internal(const SkString& inputPath, const SkString* w |
SkDebugf("Failed to render %s\n", inputFilename.c_str()); |
} |
+ if (FLAGS_preprocess) { |
+ if (NULL != renderer.getCanvas()) { |
+ renderer.getCanvas()->EXPERIMENTAL_purge(renderer.getPicture()); |
+ } |
+ } |
+ |
renderer.end(); |
SkDELETE(picture); |