Index: src/gpu/GrTextStrike.h |
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h |
index 422ae0c379a936f7930e0d35d1638df05c18954a..c5a3f656251b7d167f12e7a1922f33d4caae26eb 100644 |
--- a/src/gpu/GrTextStrike.h |
+++ b/src/gpu/GrTextStrike.h |
@@ -108,6 +108,15 @@ public: |
void dump() const; |
#endif |
+ enum AtlasType { |
+ kA8_AtlasType, //!< 1-byte per pixel |
+ k565_AtlasType, //!< 2-bytes per pixel |
+ k8888_AtlasType, //!< 4-bytes per pixel |
+ |
+ kLast_AtlasType = k8888_AtlasType |
+ }; |
+ static const int kAtlasCount = kLast_AtlasType + 1; |
+ |
private: |
friend class GrFontPurgeListener; |
@@ -118,7 +127,7 @@ private: |
GrTextStrike* fTail; |
GrGpu* fGpu; |
- GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; |
+ GrAtlasMgr* fAtlasMgr[kAtlasCount]; |
GrTextStrike* generateStrike(GrFontScaler*, const Key&); |
inline void detachStrikeFromList(GrTextStrike*); |