| Index: src/gpu/GrTextStrike.h
|
| diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h
|
| index 25ced6de9bd3044a44a1fa686db52aca80e6a556..e359e267cf9816877a1db4d52011a4dc5b59efeb 100644
|
| --- a/src/gpu/GrTextStrike.h
|
| +++ b/src/gpu/GrTextStrike.h
|
| @@ -46,6 +46,9 @@ public:
|
| }
|
| GrAtlas* getAtlas() const { return fAtlas; }
|
|
|
| + // returns true if an atlas was removed
|
| + bool removeUnusedAtlases();
|
| +
|
| public:
|
| // for LRU
|
| GrTextStrike* fPrev;
|
| @@ -81,6 +84,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 {
|
|
|