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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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&); |
72 | 72 |
73 bool canDraw(const GrRenderTarget*, const GrClip&, const GrPaint&, | 73 bool canDraw(const GrRenderTarget*, const GrClip&, const GrPaint&, |
74 const SkPaint&, const SkMatrix& viewMatrix) SK_OVERRIDE; | 74 const SkPaint&, const SkMatrix& viewMatrix) override; |
75 | 75 |
76 void onDrawText(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPain
t&, | 76 void onDrawText(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPain
t&, |
77 const SkMatrix& viewMatrix, | 77 const SkMatrix& viewMatrix, |
78 const char text[], size_t byteLength, | 78 const char text[], size_t byteLength, |
79 SkScalar x, SkScalar y, const SkIRect& regionClipBounds) SK_
OVERRIDE; | 79 SkScalar x, SkScalar y, const SkIRect& regionClipBounds) ove
rride; |
80 void onDrawPosText(GrRenderTarget*, const GrClip&, const GrPaint&, const SkP
aint&, | 80 void onDrawPosText(GrRenderTarget*, const GrClip&, const GrPaint&, const SkP
aint&, |
81 const SkMatrix& viewMatrix, | 81 const SkMatrix& viewMatrix, |
82 const char text[], size_t byteLength, | 82 const char text[], size_t byteLength, |
83 const SkScalar pos[], int scalarsPerPosition, | 83 const SkScalar pos[], int scalarsPerPosition, |
84 const SkPoint& offset, const SkIRect& regionClipBounds) S
K_OVERRIDE; | 84 const SkPoint& offset, const SkIRect& regionClipBounds) o
verride; |
85 | 85 |
86 void init(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&, | 86 void init(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&, |
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 |