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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 default: | 309 default: |
310 return kLCDTextVASize; | 310 return kLCDTextVASize; |
311 } | 311 } |
312 } | 312 } |
313 | 313 |
314 bool mustRegenerate(SkScalar* outTransX, SkScalar* outTransY, const SkPaint&
paint, | 314 bool mustRegenerate(SkScalar* outTransX, SkScalar* outTransY, const SkPaint&
paint, |
315 GrColor color, const SkMaskFilter::BlurRec& blurRec, | 315 GrColor color, const SkMaskFilter::BlurRec& blurRec, |
316 const SkMatrix& viewMatrix, SkScalar x, SkScalar y); | 316 const SkMatrix& viewMatrix, SkScalar x, SkScalar y); |
317 | 317 |
318 // flush a GrAtlasTextBlob associated with a SkTextBlob | 318 // flush a GrAtlasTextBlob associated with a SkTextBlob |
319 void flushCached(const SkTextBlob* blob, | 319 void flushCached(GrContext* context, |
320 GrContext* context, | |
321 GrDrawContext* dc, | 320 GrDrawContext* dc, |
322 GrTextContext* textContext, | 321 const SkTextBlob* blob, |
323 const SkSurfaceProps& props, | 322 const SkSurfaceProps& props, |
324 const GrDistanceFieldAdjustTable* distanceAdjustTable, | 323 const GrDistanceFieldAdjustTable* distanceAdjustTable, |
325 const SkPaint& skPaint, | 324 const SkPaint& skPaint, |
326 const GrPaint& grPaint, | 325 const GrPaint& grPaint, |
327 SkDrawFilter* drawFilter, | 326 SkDrawFilter* drawFilter, |
328 const GrClip& clip, | 327 const GrClip& clip, |
329 const SkMatrix& viewMatrix, | 328 const SkMatrix& viewMatrix, |
330 const SkIRect& clipBounds, | 329 const SkIRect& clipBounds, |
331 SkScalar x, SkScalar y, | 330 SkScalar x, SkScalar y, |
332 SkScalar transX, SkScalar transY); | 331 SkScalar transX, SkScalar transY); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 SkScalar transX, SkScalar transY, | 369 SkScalar transX, SkScalar transY, |
371 const SkPaint& skPaint, const SkSurfaceProps& props, | 370 const SkPaint& skPaint, const SkSurfaceProps& props, |
372 const GrDistanceFieldAdjustTable* distanceAdjustTable, | 371 const GrDistanceFieldAdjustTable* distanceAdjustTable, |
373 GrBatchFontCache* cache); | 372 GrBatchFontCache* cache); |
374 | 373 |
375 void flushBigGlyphs(GrContext* context, GrDrawContext* dc, | 374 void flushBigGlyphs(GrContext* context, GrDrawContext* dc, |
376 const GrClip& clip, const SkPaint& skPaint, | 375 const GrClip& clip, const SkPaint& skPaint, |
377 SkScalar transX, SkScalar transY, | 376 SkScalar transX, SkScalar transY, |
378 const SkIRect& clipBounds); | 377 const SkIRect& clipBounds); |
379 | 378 |
380 void flushRunAsPaths(GrDrawContext* dc, | 379 void flushRunAsPaths(GrContext* context, |
381 GrTextContext* textContext, | 380 GrDrawContext* dc, |
382 const SkSurfaceProps& props, | 381 const SkSurfaceProps& props, |
383 const SkTextBlobRunIterator& it, | 382 const SkTextBlobRunIterator& it, |
384 const GrClip& clip, const SkPaint& skPaint, | 383 const GrClip& clip, const SkPaint& skPaint, |
385 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, | 384 SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, |
386 const SkIRect& clipBounds, SkScalar x, SkScalar y); | 385 const SkIRect& clipBounds, SkScalar x, SkScalar y); |
387 }; | 386 }; |
388 | 387 |
389 #endif | 388 #endif |
OLD | NEW |