| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrAtlasTextContext_DEFINED | 8 #ifndef GrAtlasTextContext_DEFINED |
| 9 #define GrAtlasTextContext_DEFINED | 9 #define GrAtlasTextContext_DEFINED |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // A helper for drawing BitmapText in a run of distance fields | 67 // A helper for drawing BitmapText in a run of distance fields |
| 68 inline void fallbackDrawPosText(GrAtlasTextBlob*, int runIndex, | 68 inline void fallbackDrawPosText(GrAtlasTextBlob*, int runIndex, |
| 69 const GrClip&, GrColor color, | 69 const GrClip&, GrColor color, |
| 70 const SkPaint&, const SkMatrix& viewMatrix, | 70 const SkPaint&, const SkMatrix& viewMatrix, |
| 71 const SkTDArray<char>& fallbackTxt, | 71 const SkTDArray<char>& fallbackTxt, |
| 72 const SkTDArray<SkScalar>& fallbackPos, | 72 const SkTDArray<SkScalar>& fallbackPos, |
| 73 int scalarsPerPosition, | 73 int scalarsPerPosition, |
| 74 const SkPoint& offset); | 74 const SkPoint& offset); |
| 75 | 75 |
| 76 void internalDrawBMPText(GrAtlasTextBlob*, int runIndex, SkGlyphCache*, cons
t SkPaint&, | |
| 77 GrColor color, const SkMatrix& viewMatrix, | |
| 78 const char text[], size_t byteLength, | |
| 79 SkScalar x, SkScalar y); | |
| 80 void internalDrawBMPPosText(GrAtlasTextBlob*, int runIndex, SkGlyphCache*, c
onst SkPaint&, | |
| 81 GrColor color, const SkMatrix& viewMatrix, | |
| 82 const char text[], size_t byteLength, | |
| 83 const SkScalar pos[], int scalarsPerPosition, | |
| 84 const SkPoint& offset); | |
| 85 | |
| 86 void internalDrawDFText(GrAtlasTextBlob*, int runIndex, const SkPaint&, | 76 void internalDrawDFText(GrAtlasTextBlob*, int runIndex, const SkPaint&, |
| 87 GrColor color, const SkMatrix& viewMatrix, | 77 GrColor color, const SkMatrix& viewMatrix, |
| 88 const char text[], size_t byteLength, | 78 const char text[], size_t byteLength, |
| 89 SkScalar x, SkScalar y, | 79 SkScalar x, SkScalar y, |
| 90 SkScalar textRatio, | 80 SkScalar textRatio, |
| 91 SkTDArray<char>* fallbackTxt, | 81 SkTDArray<char>* fallbackTxt, |
| 92 SkTDArray<SkScalar>* fallbackPos, | 82 SkTDArray<SkScalar>* fallbackPos, |
| 93 SkPoint* offset, const SkPaint& origPaint); | 83 SkPoint* offset, const SkPaint& origPaint); |
| 94 void internalDrawDFPosText(GrAtlasTextBlob*, int runIndex, const SkPaint&, | 84 void internalDrawDFPosText(GrAtlasTextBlob*, int runIndex, const SkPaint&, |
| 95 GrColor color, const SkMatrix& viewMatrix, | 85 GrColor color, const SkMatrix& viewMatrix, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 SkAutoTUnref<const GrDistanceFieldAdjustTable> fDistanceAdjustTable; | 122 SkAutoTUnref<const GrDistanceFieldAdjustTable> fDistanceAdjustTable; |
| 133 | 123 |
| 134 #ifdef GR_TEST_UTILS | 124 #ifdef GR_TEST_UTILS |
| 135 DRAW_BATCH_TEST_FRIEND(TextBlobBatch); | 125 DRAW_BATCH_TEST_FRIEND(TextBlobBatch); |
| 136 #endif | 126 #endif |
| 137 | 127 |
| 138 typedef GrTextContext INHERITED; | 128 typedef GrTextContext INHERITED; |
| 139 }; | 129 }; |
| 140 | 130 |
| 141 #endif | 131 #endif |
| OLD | NEW |