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

Unified Diff: src/gpu/GrGlyph.h

Issue 1011403005: Revert of Ensure that we use different glyph entries for regular and df text. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/gpu/GrFontCache.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGlyph.h
diff --git a/src/gpu/GrGlyph.h b/src/gpu/GrGlyph.h
index 108f2f0fe7d5df231a8337da7090d0d72f553a7e..0e534d694afe1fb7c1ef2b518d83938c4910a0bf 100644
--- a/src/gpu/GrGlyph.h
+++ b/src/gpu/GrGlyph.h
@@ -23,11 +23,6 @@
- failed to get metrics
*/
struct GrGlyph {
- enum MaskStyle {
- kCoverage_MaskStyle,
- kDistance_MaskStyle
- };
-
typedef uint32_t PackedID;
GrPlot* fPlot;
@@ -65,11 +60,10 @@
return (pos >> 14) & 3;
}
- static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y, MaskStyle ms) {
+ static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y) {
x = ExtractSubPixelBitsFromFixed(x);
y = ExtractSubPixelBitsFromFixed(y);
- int dfFlag = (ms == kDistance_MaskStyle) ? 0x1 : 0x0;
- return (dfFlag << 20) | (x << 18) | (y << 16) | glyphID;
+ return (x << 18) | (y << 16) | glyphID;
}
static inline SkFixed UnpackFixedX(PackedID packed) {
@@ -80,10 +74,6 @@
return ((packed >> 16) & 3) << 14;
}
- static inline MaskStyle UnpackMaskStyle(PackedID packed) {
- return ((packed >> 20) & 1) ? kDistance_MaskStyle : kCoverage_MaskStyle;
- }
-
static inline uint16_t UnpackID(PackedID packed) {
return (uint16_t)packed;
}
« no previous file with comments | « src/gpu/GrFontCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698