| 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 |
| 11 #include "GrTextContext.h" | 11 #include "GrTextContext.h" |
| 12 #include "GrDrawTarget.h" | 12 #include "GrDrawTarget.h" |
| 13 #include "SkStrokeRec.h" | 13 #include "GrStrokeInfo.h" |
| 14 | 14 |
| 15 class GrTextStrike; | 15 class GrTextStrike; |
| 16 class GrPath; | 16 class GrPath; |
| 17 class GrPathRange; | 17 class GrPathRange; |
| 18 | 18 |
| 19 /* | 19 /* |
| 20 * This class implements text rendering using stencil and cover path rendering | 20 * This class implements text rendering using stencil and cover path rendering |
| 21 * (by the means of GrDrawTarget::drawPath). | 21 * (by the means of GrDrawTarget::drawPath). |
| 22 * This class exposes the functionality through GrTextContext interface. | 22 * This class exposes the functionality through GrTextContext interface. |
| 23 */ | 23 */ |
| (...skipping 27 matching lines...) Expand all Loading... |
| 51 */ | 51 */ |
| 52 kMaxPerformance_RenderMode, | 52 kMaxPerformance_RenderMode, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 GrPipelineBuilder fPipelineBuilder; | 55 GrPipelineBuilder fPipelineBuilder; |
| 56 GrPipelineBuilder::AutoRestoreFragmentProcessors fStateRestore; | 56 GrPipelineBuilder::AutoRestoreFragmentProcessors fStateRestore; |
| 57 SkScalar fTextRatio; | 57 SkScalar fTextRatio; |
| 58 float fTextInverseRatio; | 58 float fTextInverseRatio; |
| 59 SkGlyphCache* fGlyphCache; | 59 SkGlyphCache* fGlyphCache; |
| 60 GrPathRange* fGlyphs; | 60 GrPathRange* fGlyphs; |
| 61 SkStrokeRec fStroke; | 61 GrStrokeInfo fStroke; |
| 62 uint16_t fGlyphIndices[kGlyphBuff
erSize]; | 62 uint16_t fGlyphIndices[kGlyphBuff
erSize]; |
| 63 SkPoint fGlyphPositions[kGlyphBu
fferSize]; | 63 SkPoint fGlyphPositions[kGlyphBu
fferSize]; |
| 64 int fQueuedGlyphCount; | 64 int fQueuedGlyphCount; |
| 65 int fFallbackGlyphsIdx; | 65 int fFallbackGlyphsIdx; |
| 66 SkMatrix fContextInitialMatrix; | 66 SkMatrix fContextInitialMatrix; |
| 67 SkMatrix fViewMatrix; | 67 SkMatrix fViewMatrix; |
| 68 SkMatrix fLocalMatrix; | 68 SkMatrix fLocalMatrix; |
| 69 bool fUsingDeviceSpaceGlyphs; | 69 bool fUsingDeviceSpaceGlyphs; |
| 70 | 70 |
| 71 GrStencilAndCoverTextContext(GrContext*, SkGpuDevice*, const SkDevicePropert
ies&); | 71 GrStencilAndCoverTextContext(GrContext*, SkGpuDevice*, const SkDevicePropert
ies&); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, | 87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, |
| 88 const SkIRect& regionClipBounds); | 88 const SkIRect& regionClipBounds); |
| 89 bool mapToFallbackContext(SkMatrix* inverse); | 89 bool mapToFallbackContext(SkMatrix* inverse); |
| 90 void appendGlyph(const SkGlyph&, const SkPoint&); | 90 void appendGlyph(const SkGlyph&, const SkPoint&); |
| 91 void flush(); | 91 void flush(); |
| 92 void finish(); | 92 void finish(); |
| 93 | 93 |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif | 96 #endif |
| OLD | NEW |