Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/PictureBenchmark.cpp

Issue 408923002: Add auto purging for SkPicture-related Ganesh resources (esp. layers) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix comment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/GpuLayerCacheTest.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureBenchmark.cpp
diff --git a/tools/PictureBenchmark.cpp b/tools/PictureBenchmark.cpp
index 70ce180dac9761a8c4e1aedc96fbd9b5c32556de..e2a726f1a51a9cce6a0965e0fc39891927a03b06 100644
--- a/tools/PictureBenchmark.cpp
+++ b/tools/PictureBenchmark.cpp
@@ -81,12 +81,6 @@ void PictureBenchmark::run(SkPicture* pict) {
fRenderer->render(NULL);
fRenderer->resetState(true); // flush, swapBuffers and Finish
- if (fPreprocess) {
- if (NULL != fRenderer->getCanvas()) {
- fRenderer->getCanvas()->EXPERIMENTAL_purge(pict);
- }
- }
-
if (fPurgeDecodedTex) {
fRenderer->purgeTextures();
}
@@ -220,12 +214,6 @@ void PictureBenchmark::run(SkPicture* pict) {
SkAssertResult(perRunTimerData.appendTimes(perRunTimer.get()));
- if (fPreprocess) {
- if (NULL != fRenderer->getCanvas()) {
- fRenderer->getCanvas()->EXPERIMENTAL_purge(pict);
- }
- }
-
if (fPurgeDecodedTex) {
fRenderer->purgeTextures();
}
« no previous file with comments | « tests/GpuLayerCacheTest.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698