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

Unified Diff: include/gpu/GrGlyph.h

Issue 216503004: SK_SUPPORT_LEGACY_GRTYPES to hide duplicate types from SkTypes.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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
Index: include/gpu/GrGlyph.h
diff --git a/include/gpu/GrGlyph.h b/include/gpu/GrGlyph.h
index fe4c835773c3865ddb61a633795a7f0732ab9bca..6de0c57d985cda57dff6372a8457e39ea5044967 100644
--- a/include/gpu/GrGlyph.h
+++ b/include/gpu/GrGlyph.h
@@ -50,22 +50,22 @@ struct GrGlyph {
///////////////////////////////////////////////////////////////////////////
- static inline unsigned ExtractSubPixelBitsFromFixed(GrFixed pos) {
+ static inline unsigned ExtractSubPixelBitsFromFixed(SkFixed pos) {
// two most significant fraction bits from fixed-point
return (pos >> 14) & 3;
}
- static inline PackedID Pack(uint16_t glyphID, GrFixed x, GrFixed y) {
+ static inline PackedID Pack(uint16_t glyphID, SkFixed x, SkFixed y) {
x = ExtractSubPixelBitsFromFixed(x);
y = ExtractSubPixelBitsFromFixed(y);
return (x << 18) | (y << 16) | glyphID;
}
- static inline GrFixed UnpackFixedX(PackedID packed) {
+ static inline SkFixed UnpackFixedX(PackedID packed) {
return ((packed >> 18) & 3) << 14;
}
- static inline GrFixed UnpackFixedY(PackedID packed) {
+ static inline SkFixed UnpackFixedY(PackedID packed) {
return ((packed >> 16) & 3) << 14;
}
« no previous file with comments | « include/gpu/GrContext.h ('k') | include/gpu/GrPoint.h » ('j') | include/gpu/GrPoint.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698