| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 inline void flushRunAsPaths(const SkTextBlob::RunIterator&, const SkPaint&,
SkDrawFilter*, | 270 inline void flushRunAsPaths(const SkTextBlob::RunIterator&, const SkPaint&,
SkDrawFilter*, |
| 271 const SkMatrix& viewMatrix, const SkIRect& clipB
ounds, SkScalar x, | 271 const SkMatrix& viewMatrix, const SkIRect& clipB
ounds, SkScalar x, |
| 272 SkScalar y); | 272 SkScalar y); |
| 273 inline BitmapTextBatch* createBatch(BitmapTextBlob*, const PerSubRunInfo&, | 273 inline BitmapTextBatch* createBatch(BitmapTextBlob*, const PerSubRunInfo&, |
| 274 int glyphCount, int run, int subRun, | 274 int glyphCount, int run, int subRun, |
| 275 GrColor, SkScalar transX, SkScalar trans
Y, | 275 GrColor, SkScalar transX, SkScalar trans
Y, |
| 276 const SkPaint&); | 276 const SkPaint&); |
| 277 inline void flushRun(GrDrawTarget*, GrPipelineBuilder*, BitmapTextBlob*, int
run, GrColor, | 277 inline void flushRun(GrDrawTarget*, GrPipelineBuilder*, BitmapTextBlob*, int
run, GrColor, |
| 278 SkScalar transX, SkScalar transY, const SkPaint&); | 278 SkScalar transX, SkScalar transY, const SkPaint&); |
| 279 inline void flushBigGlyphs(BitmapTextBlob* cacheBlob, GrRenderTarget* rt, | 279 inline void flushBigGlyphs(BitmapTextBlob* cacheBlob, GrRenderTarget* rt, |
| 280 const GrPaint& grPaint, const GrClip& clip, | 280 const SkPaint& skPaint, |
| 281 SkScalar transX, SkScalar transY); | 281 SkScalar transX, SkScalar transY, const SkIRect&
clipBounds); |
| 282 | 282 |
| 283 // We have to flush SkTextBlobs differently from drawText / drawPosText | 283 // We have to flush SkTextBlobs differently from drawText / drawPosText |
| 284 void flush(GrDrawTarget*, const SkTextBlob*, BitmapTextBlob*, GrRenderTarget
*, const SkPaint&, | 284 void flush(GrDrawTarget*, const SkTextBlob*, BitmapTextBlob*, GrRenderTarget
*, const SkPaint&, |
| 285 const GrPaint&, SkDrawFilter*, const GrClip&, const SkMatrix& vie
wMatrix, | 285 const GrPaint&, SkDrawFilter*, const GrClip&, const SkMatrix& vie
wMatrix, |
| 286 const SkIRect& clipBounds, SkScalar x, SkScalar y, SkScalar trans
X, SkScalar transY); | 286 const SkIRect& clipBounds, SkScalar x, SkScalar y, SkScalar trans
X, SkScalar transY); |
| 287 void flush(GrDrawTarget*, BitmapTextBlob*, GrRenderTarget*, const SkPaint&, | 287 void flush(GrDrawTarget*, BitmapTextBlob*, GrRenderTarget*, const SkPaint&, |
| 288 const GrPaint&, const GrClip&); | 288 const GrPaint&, const GrClip&, const SkIRect& clipBounds); |
| 289 | 289 |
| 290 // A helper for drawing BitmapText in a run of distance fields | 290 // A helper for drawing BitmapText in a run of distance fields |
| 291 inline void fallbackDrawPosText(BitmapTextBlob*, int runIndex, | 291 inline void fallbackDrawPosText(BitmapTextBlob*, int runIndex, |
| 292 GrRenderTarget*, const GrClip&, | 292 GrRenderTarget*, const GrClip&, |
| 293 const GrPaint&, | 293 const GrPaint&, |
| 294 const SkPaint&, const SkMatrix& viewMatrix, | 294 const SkPaint&, const SkMatrix& viewMatrix, |
| 295 const SkTDArray<char>& fallbackTxt, | 295 const SkTDArray<char>& fallbackTxt, |
| 296 const SkTDArray<SkScalar>& fallbackPos, | 296 const SkTDArray<SkScalar>& fallbackPos, |
| 297 int scalarsPerPosition, | 297 int scalarsPerPosition, |
| 298 const SkPoint& offset, | 298 const SkPoint& offset, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 friend class BitmapTextBatch; | 384 friend class BitmapTextBatch; |
| 385 | 385 |
| 386 #ifdef GR_TEST_UTILS | 386 #ifdef GR_TEST_UTILS |
| 387 BATCH_TEST_FRIEND(TextBlob); | 387 BATCH_TEST_FRIEND(TextBlob); |
| 388 #endif | 388 #endif |
| 389 | 389 |
| 390 typedef GrTextContext INHERITED; | 390 typedef GrTextContext INHERITED; |
| 391 }; | 391 }; |
| 392 | 392 |
| 393 #endif | 393 #endif |
| OLD | NEW |