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

Unified Diff: src/gpu/GrLayerHoister.cpp

Issue 687233002: Revert of Discard atlas after every MultiPictureDraw::draw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « src/gpu/GrLayerHoister.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrLayerHoister.cpp
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp
index 1ba0d8e5454e4763a71da98a11ccd19e0d5d7547..272f0446b8c65dbe7145e8ff2f1185db7949e474 100644
--- a/src/gpu/GrLayerHoister.cpp
+++ b/src/gpu/GrLayerHoister.cpp
@@ -314,16 +314,13 @@
layerCache->removeUse(layers[i].fLayer);
}
- SkDEBUGCODE(layerCache->validate();)
-}
-
-void GrLayerHoister::PurgeCache(GrContext* context) {
-#if !GR_CACHE_HOISTED_LAYERS
- GrLayerCache* layerCache = context->getLayerCache();
-
+#if DISABLE_CACHING
// This code completely clears out the atlas. It is required when
// caching is disabled so the atlas doesn't fill up and force more
// free floating layers
layerCache->purgeAll();
#endif
-}
+
+ SkDEBUGCODE(layerCache->validate();)
+}
+
« no previous file with comments | « src/gpu/GrLayerHoister.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698