| Index: src/gpu/GrBatchAtlas.h
|
| diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h
|
| index b514b9d74fbcc0b3198109ebaf86eb387283a617..e83baccc5fb0fe3604de785ef1e04bf77dcb084b 100644
|
| --- a/src/gpu/GrBatchAtlas.h
|
| +++ b/src/gpu/GrBatchAtlas.h
|
| @@ -25,6 +25,8 @@ public:
|
| // An AtlasID is an opaque handle which callers can use to determine if the atlas contains
|
| // a specific piece of data
|
| typedef uint32_t AtlasID;
|
| + static const uint32_t kInvalidAtlasID = 0;
|
| + static const uint32_t kInvalidAtlasGeneration = 0;
|
|
|
| // A function pointer for use as a callback during eviction. Whenever GrBatchAtlas evicts a
|
| // specific AtlasID, it will call all of the registered listeners so they can optionally process
|
| @@ -43,6 +45,7 @@ public:
|
|
|
| GrTexture* getTexture() const { return fTexture; }
|
|
|
| + uint32_t atlasGeneration() const { return fAtlasGeneration; }
|
| bool hasID(AtlasID id);
|
| void setLastRefToken(AtlasID id, BatchToken batchToken);
|
| void registerEvictionCallback(EvictionFunc func, void* userData) {
|
| @@ -72,6 +75,7 @@ private:
|
| int fPlotWidth;
|
| int fPlotHeight;
|
| size_t fBPP;
|
| + uint32_t fAtlasGeneration;
|
|
|
| struct EvictionData {
|
| EvictionFunc fFunc;
|
|
|