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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 private: | 283 private: |
284 GrAtlasTextBlob() | 284 GrAtlasTextBlob() |
285 : fMaxMinScale(-SK_ScalarMax) | 285 : fMaxMinScale(-SK_ScalarMax) |
286 , fMinMaxScale(SK_ScalarMax) | 286 , fMinMaxScale(SK_ScalarMax) |
287 , fTextType(0) {} | 287 , fTextType(0) {} |
288 | 288 |
289 void appendLargeGlyph(GrGlyph* glyph, GrFontScaler* scaler, const SkGlyph& s
kGlyph, | 289 void appendLargeGlyph(GrGlyph* glyph, GrFontScaler* scaler, const SkGlyph& s
kGlyph, |
290 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); | 290 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); |
291 | 291 |
292 inline void flushRun(GrDrawContext* dc, GrPipelineBuilder* pipelineBuilder, | 292 inline void flushRun(GrDrawContext* dc, GrPipelineBuilder* pipelineBuilder,
const GrClip&, |
293 int run, const SkMatrix& viewMatrix, SkScalar x, SkScal
ar y, GrColor color, | 293 int run, const SkMatrix& viewMatrix, SkScalar x, SkScal
ar y, GrColor color, |
294 const SkPaint& skPaint, const SkSurfaceProps& props, | 294 const SkPaint& skPaint, const SkSurfaceProps& props, |
295 const GrDistanceFieldAdjustTable* distanceAdjustTable, | 295 const GrDistanceFieldAdjustTable* distanceAdjustTable, |
296 GrBatchFontCache* cache); | 296 GrBatchFontCache* cache); |
297 | 297 |
298 void flushBigGlyphs(GrContext* context, GrDrawContext* dc, | 298 void flushBigGlyphs(GrContext* context, GrDrawContext* dc, |
299 const GrClip& clip, const SkPaint& skPaint, | 299 const GrClip& clip, const SkPaint& skPaint, |
300 const SkMatrix& viewMatrix, SkScalar x, SkScalar y, | 300 const SkMatrix& viewMatrix, SkScalar x, SkScalar y, |
301 const SkIRect& clipBounds); | 301 const SkIRect& clipBounds); |
302 | 302 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 // We can reuse distance field text, but only if the new viewmatrix would no
t result in | 550 // We can reuse distance field text, but only if the new viewmatrix would no
t result in |
551 // a mip change. Because there can be multiple runs in a blob, we track the
overall | 551 // a mip change. Because there can be multiple runs in a blob, we track the
overall |
552 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen | 552 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen |
553 SkScalar fMaxMinScale; | 553 SkScalar fMaxMinScale; |
554 SkScalar fMinMaxScale; | 554 SkScalar fMinMaxScale; |
555 int fRunCount; | 555 int fRunCount; |
556 uint8_t fTextType; | 556 uint8_t fTextType; |
557 }; | 557 }; |
558 | 558 |
559 #endif | 559 #endif |
OLD | NEW |