| 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 |
| 293 // Appends a glyph to the blob. If the glyph is too large, the glyph will b
e appended | 299 // Appends a glyph to the blob. If the glyph is too large, the glyph will b
e appended |
| 294 // as a path. | 300 // as a path. |
| 295 void appendGlyph(int runIndex, | 301 void appendGlyph(int runIndex, |
| 296 const SkRect& positions, | 302 const SkRect& positions, |
| 297 GrColor color, | 303 GrColor color, |
| 298 GrBatchTextStrike* strike, | 304 GrBatchTextStrike* strike, |
| 299 GrGlyph* glyph, | 305 GrGlyph* glyph, |
| 300 GrFontScaler* scaler, const SkGlyph& skGlyph, | 306 GrFontScaler* scaler, const SkGlyph& skGlyph, |
| 301 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); | 307 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); |
| 302 | 308 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 void flushRunAsPaths(GrContext* context, | 385 void flushRunAsPaths(GrContext* context, |
| 380 GrDrawContext* dc, | 386 GrDrawContext* dc, |
| 381 const SkSurfaceProps& props, | 387 const SkSurfaceProps& props, |
| 382 const SkTextBlobRunIterator& it, | 388 const SkTextBlobRunIterator& it, |
| 383 const GrClip& clip, const SkPaint& skPaint, | 389 const GrClip& clip, const SkPaint& skPaint, |
| 384 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, | 390 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, |
| 385 const SkIRect& clipBounds, SkScalar x, SkScalar y); | 391 const SkIRect& clipBounds, SkScalar x, SkScalar y); |
| 386 }; | 392 }; |
| 387 | 393 |
| 388 #endif | 394 #endif |
| OLD | NEW |