OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrStencilAndCoverTextContext_DEFINED | 8 #ifndef GrStencilAndCoverTextContext_DEFINED |
9 #define GrStencilAndCoverTextContext_DEFINED | 9 #define GrStencilAndCoverTextContext_DEFINED |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 * LCD text, even if the client provided positions for hinted glyphs, | 46 * LCD text, even if the client provided positions for hinted glyphs, |
47 * and renders from a canonically-sized, generic set of paths for the | 47 * and renders from a canonically-sized, generic set of paths for the |
48 * given typeface. In the future we should work out a system for the | 48 * given typeface. In the future we should work out a system for the |
49 * client to know it should not provide hinted glyph positions. This | 49 * client to know it should not provide hinted glyph positions. This |
50 * render mode also tries to use GPU stroking for fake bold, even when | 50 * render mode also tries to use GPU stroking for fake bold, even when |
51 * SK_USE_FREETYPE_EMBOLDEN is set. | 51 * SK_USE_FREETYPE_EMBOLDEN is set. |
52 */ | 52 */ |
53 kMaxPerformance_RenderMode, | 53 kMaxPerformance_RenderMode, |
54 }; | 54 }; |
55 | 55 |
56 GrPipelineBuilder fPipelineBuilder; | |
57 GrPipelineBuilder::AutoRestoreFragmentProcessors fStateRestore; | |
58 SkScalar fTextRatio; | 56 SkScalar fTextRatio; |
59 float fTextInverseRatio; | 57 float fTextInverseRatio; |
60 SkGlyphCache* fGlyphCache; | 58 SkGlyphCache* fGlyphCache; |
61 GrPathRange* fGlyphs; | 59 GrPathRange* fGlyphs; |
62 GrStrokeInfo fStroke; | 60 GrStrokeInfo fStroke; |
63 uint16_t fGlyphIndices[kGlyphBuff
erSize]; | 61 uint16_t fGlyphIndices[kGlyphBuff
erSize]; |
64 SkPoint fGlyphPositions[kGlyphBu
fferSize]; | 62 SkPoint fGlyphPositions[kGlyphBu
fferSize]; |
65 int fQueuedGlyphCount; | 63 int fQueuedGlyphCount; |
66 int fFallbackGlyphsIdx; | 64 int fFallbackGlyphsIdx; |
67 SkMatrix fContextInitialMatrix; | 65 SkMatrix fContextInitialMatrix; |
(...skipping 26 matching lines...) Expand all Loading... |
94 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, | 92 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, |
95 const SkIRect& regionClipBounds); | 93 const SkIRect& regionClipBounds); |
96 bool mapToFallbackContext(SkMatrix* inverse); | 94 bool mapToFallbackContext(SkMatrix* inverse); |
97 void appendGlyph(const SkGlyph&, const SkPoint&); | 95 void appendGlyph(const SkGlyph&, const SkPoint&); |
98 void flush(); | 96 void flush(); |
99 void finish(); | 97 void finish(); |
100 | 98 |
101 }; | 99 }; |
102 | 100 |
103 #endif | 101 #endif |
OLD | NEW |