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

Unified Diff: src/gpu/GrTextStrike.h

Issue 99993002: Add GPU support for color bitmap fonts (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rebase to latest Created 7 years 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 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*);

Powered by Google App Engine
This is Rietveld 408576698