| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file. | 4 * Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef SkGlyphCache_DEFINED | 7 #ifndef SkGlyphCache_DEFINED |
| 8 #define SkGlyphCache_DEFINED | 8 #define SkGlyphCache_DEFINED |
| 9 | 9 |
| 10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // The id arg is a combined id generated by MakeID. | 235 // The id arg is a combined id generated by MakeID. |
| 236 CharGlyphRec* getCharGlyphRec(PackedUnicharID id); | 236 CharGlyphRec* getCharGlyphRec(PackedUnicharID id); |
| 237 | 237 |
| 238 void invokeAndRemoveAuxProcs(); | 238 void invokeAndRemoveAuxProcs(); |
| 239 | 239 |
| 240 inline static SkGlyphCache* FindTail(SkGlyphCache* head); | 240 inline static SkGlyphCache* FindTail(SkGlyphCache* head); |
| 241 | 241 |
| 242 static void OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scal
e, | 242 static void OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scal
e, |
| 243 SkScalar xPos, SkScalar* array, int* count); | 243 SkScalar xPos, SkScalar* array, int* count); |
| 244 static void AddInterval(SkScalar val, SkGlyph::Intercept* intercept); | 244 static void AddInterval(SkScalar val, SkGlyph::Intercept* intercept); |
| 245 static void AddPoints(const SkPoint* pts, int ptCount, const SkScalar bounds
[2], | 245 static void AddPoints(const SkPoint* pts, int ptCount, const SkScalar bounds
[2], |
| 246 bool yAxis, SkGlyph::Intercept* intercept); | 246 bool yAxis, SkGlyph::Intercept* intercept); |
| 247 static void AddLine(const SkPoint pts[2], SkScalar axis, bool yAxis, | 247 static void AddLine(const SkPoint pts[2], SkScalar axis, bool yAxis, |
| 248 SkGlyph::Intercept* intercept); | 248 SkGlyph::Intercept* intercept); |
| 249 static void AddQuad(const SkPoint pts[2], SkScalar axis, bool yAxis, | 249 static void AddQuad(const SkPoint pts[2], SkScalar axis, bool yAxis, |
| 250 SkGlyph::Intercept* intercept); | 250 SkGlyph::Intercept* intercept); |
| 251 static void AddCubic(const SkPoint pts[3], SkScalar axis, bool yAxis, | 251 static void AddCubic(const SkPoint pts[3], SkScalar axis, bool yAxis, |
| 252 SkGlyph::Intercept* intercept); | 252 SkGlyph::Intercept* intercept); |
| 253 static const SkGlyph::Intercept* MatchBounds(const SkGlyph* glyph, | 253 static const SkGlyph::Intercept* MatchBounds(const SkGlyph* glyph, |
| 254 const SkScalar bounds[2]); | 254 const SkScalar bounds[2]); |
| 255 | 255 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 SkAutoGlyphCacheNoGamma(const SkPaint& paint, | 302 SkAutoGlyphCacheNoGamma(const SkPaint& paint, |
| 303 const SkSurfaceProps* surfaceProps, | 303 const SkSurfaceProps* surfaceProps, |
| 304 const SkMatrix* matrix) | 304 const SkMatrix* matrix) |
| 305 : SkAutoGlyphCache(paint, surfaceProps, SkPaint::FakeGamma::Off, matrix) | 305 : SkAutoGlyphCache(paint, surfaceProps, SkPaint::FakeGamma::Off, matrix) |
| 306 {} | 306 {} |
| 307 }; | 307 }; |
| 308 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) | 308 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) |
| 309 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm
a) | 309 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm
a) |
| 310 | 310 |
| 311 #endif | 311 #endif |
| OLD | NEW |