Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: src/gpu/GrAtlasTextContext.h

Issue 1518883002: make internaldrawBmpText part of GrTextUtils (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext10textutils
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698