| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 SubRunInfo& newSubRun = fSubRunInfo.push_back(); | 467 SubRunInfo& newSubRun = fSubRunInfo.push_back(); |
| 468 const SubRunInfo& prevSubRun = fSubRunInfo.fromBack(1); | 468 const SubRunInfo& prevSubRun = fSubRunInfo.fromBack(1); |
| 469 | 469 |
| 470 newSubRun.setAsSuccessor(prevSubRun); | 470 newSubRun.setAsSuccessor(prevSubRun); |
| 471 return newSubRun; | 471 return newSubRun; |
| 472 } | 472 } |
| 473 static const int kMinSubRuns = 1; | 473 static const int kMinSubRuns = 1; |
| 474 SkAutoTUnref<SkTypeface> fTypeface; | 474 SkAutoTUnref<SkTypeface> fTypeface; |
| 475 SkSTArray<kMinSubRuns, SubRunInfo> fSubRunInfo; | 475 SkSTArray<kMinSubRuns, SubRunInfo> fSubRunInfo; |
| 476 SkAutoDescriptor fDescriptor; | 476 SkAutoDescriptor fDescriptor; |
| 477 SkScalerContextEffects fEffects; | |
| 478 | 477 |
| 479 // Distance field text cannot draw coloremoji, and so has to fall back.
However, | 478 // Distance field text cannot draw coloremoji, and so has to fall back.
However, |
| 480 // though the distance field text and the coloremoji may share the same
run, they | 479 // though the distance field text and the coloremoji may share the same
run, they |
| 481 // will have different descriptors. If fOverrideDescriptor is non-nullp
tr, then it | 480 // will have different descriptors. If fOverrideDescriptor is non-nullp
tr, then it |
| 482 // will be used in place of the run's descriptor to regen texture coords | 481 // will be used in place of the run's descriptor to regen texture coords |
| 483 SkAutoTDelete<SkAutoDescriptor> fOverrideDescriptor; // df properties | 482 SkAutoTDelete<SkAutoDescriptor> fOverrideDescriptor; // df properties |
| 484 bool fInitialized; | 483 bool fInitialized; |
| 485 bool fDrawAsPaths; | 484 bool fDrawAsPaths; |
| 486 }; | 485 }; |
| 487 | 486 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 // We can reuse distance field text, but only if the new viewmatrix would no
t result in | 547 // We can reuse distance field text, but only if the new viewmatrix would no
t result in |
| 549 // a mip change. Because there can be multiple runs in a blob, we track the
overall | 548 // a mip change. Because there can be multiple runs in a blob, we track the
overall |
| 550 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen | 549 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen |
| 551 SkScalar fMaxMinScale; | 550 SkScalar fMaxMinScale; |
| 552 SkScalar fMinMaxScale; | 551 SkScalar fMinMaxScale; |
| 553 int fRunCount; | 552 int fRunCount; |
| 554 uint8_t fTextType; | 553 uint8_t fTextType; |
| 555 }; | 554 }; |
| 556 | 555 |
| 557 #endif | 556 #endif |
| OLD | NEW |