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 GrAtlasTextBlob_DEFINED | 8 #ifndef GrAtlasTextBlob_DEFINED |
9 #define GrAtlasTextBlob_DEFINED | 9 #define GrAtlasTextBlob_DEFINED |
10 | 10 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 void push_back_run(int currRun) { | 284 void push_back_run(int currRun) { |
285 SkASSERT(currRun < fRunCount); | 285 SkASSERT(currRun < fRunCount); |
286 if (currRun > 0) { | 286 if (currRun > 0) { |
287 Run::SubRunInfo& newRun = fRuns[currRun].fSubRunInfo.back(); | 287 Run::SubRunInfo& newRun = fRuns[currRun].fSubRunInfo.back(); |
288 Run::SubRunInfo& lastRun = fRuns[currRun - 1].fSubRunInfo.back(); | 288 Run::SubRunInfo& lastRun = fRuns[currRun - 1].fSubRunInfo.back(); |
289 newRun.setAsSuccessor(lastRun); | 289 newRun.setAsSuccessor(lastRun); |
290 } | 290 } |
291 } | 291 } |
292 | 292 |
293 SkGlyphCache* setupCache(int runIndex, | |
294 const SkSurfaceProps& props, | |
295 const SkPaint& skPaint, | |
296 const SkMatrix* viewMatrix, | |
297 bool noGamma); | |
298 | |
299 // Appends a glyph to the blob. If the glyph is too large, the glyph will b
e appended | 293 // Appends a glyph to the blob. If the glyph is too large, the glyph will b
e appended |
300 // as a path. | 294 // as a path. |
301 void appendGlyph(int runIndex, | 295 void appendGlyph(int runIndex, |
302 const SkRect& positions, | 296 const SkRect& positions, |
303 GrColor color, | 297 GrColor color, |
304 GrBatchTextStrike* strike, | 298 GrBatchTextStrike* strike, |
305 GrGlyph* glyph, | 299 GrGlyph* glyph, |
306 GrFontScaler* scaler, const SkGlyph& skGlyph, | 300 GrFontScaler* scaler, const SkGlyph& skGlyph, |
307 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); | 301 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); |
308 | 302 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 void flushRunAsPaths(GrContext* context, | 379 void flushRunAsPaths(GrContext* context, |
386 GrDrawContext* dc, | 380 GrDrawContext* dc, |
387 const SkSurfaceProps& props, | 381 const SkSurfaceProps& props, |
388 const SkTextBlobRunIterator& it, | 382 const SkTextBlobRunIterator& it, |
389 const GrClip& clip, const SkPaint& skPaint, | 383 const GrClip& clip, const SkPaint& skPaint, |
390 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, | 384 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, |
391 const SkIRect& clipBounds, SkScalar x, SkScalar y); | 385 const SkIRect& clipBounds, SkScalar x, SkScalar y); |
392 }; | 386 }; |
393 | 387 |
394 #endif | 388 #endif |
OLD | NEW |