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

Unified Diff: src/gpu/GrTextStrike.h

Issue 21594005: GPU Font Cache improvements: (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove some added spaces Created 7 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
Index: src/gpu/GrTextStrike.h
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h
index 25ced6de9bd3044a44a1fa686db52aca80e6a556..bb48c2a20f0493b78dd8ccc95826754cec93ac19 100644
--- a/src/gpu/GrTextStrike.h
+++ b/src/gpu/GrTextStrike.h
@@ -46,6 +46,11 @@ public:
}
GrAtlas* getAtlas() const { return fAtlas; }
+ // returns true if an atlas was removed
+ bool removeUnusedAtlas();
+
+ void markAtlasesUnused();
+
public:
// for LRU
GrTextStrike* fPrev;
@@ -81,6 +86,9 @@ public:
void purgeExceptFor(GrTextStrike*);
+ // remove an unused atlas and its strike (if necessary)
+ void freeAtlasExceptFor(GrTextStrike*);
+
// testing
int countStrikes() const { return fCache.getArray().count(); }
const GrTextStrike* strikeAt(int index) const {

Powered by Google App Engine
This is Rietveld 408576698