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 #include "GrAtlasTextBatch.h" | 8 #include "GrAtlasTextBatch.h" |
9 | 9 |
10 #include "GrBatchFlushState.h" | 10 #include "GrBatchFlushState.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 coverage->setUnknownSingleComponent(); | 250 coverage->setUnknownSingleComponent(); |
251 break; | 251 break; |
252 case kLCDCoverageMask_MaskType: | 252 case kLCDCoverageMask_MaskType: |
253 case kLCDDistanceField_MaskType: | 253 case kLCDDistanceField_MaskType: |
254 coverage->setUnknownOpaqueFourComponents(); | 254 coverage->setUnknownOpaqueFourComponents(); |
255 coverage->setUsingLCDCoverage(); | 255 coverage->setUsingLCDCoverage(); |
256 break; | 256 break; |
257 case kColorBitmapMask_MaskType: | 257 case kColorBitmapMask_MaskType: |
258 coverage->setKnownSingleComponent(0xff); | 258 coverage->setKnownSingleComponent(0xff); |
259 } | 259 } |
| 260 overrides->fUsePLSDstRead = false; |
260 } | 261 } |
261 | 262 |
262 void GrAtlasTextBatch::initBatchTracker(const GrXPOverridesForBatch& overrides)
{ | 263 void GrAtlasTextBatch::initBatchTracker(const GrXPOverridesForBatch& overrides)
{ |
263 // Handle any color overrides | 264 // Handle any color overrides |
264 if (!overrides.readsColor()) { | 265 if (!overrides.readsColor()) { |
265 fGeoData[0].fColor = GrColor_ILLEGAL; | 266 fGeoData[0].fColor = GrColor_ILLEGAL; |
266 } | 267 } |
267 overrides.getOverrideColorIfSet(&fGeoData[0].fColor); | 268 overrides.getOverrideColorIfSet(&fGeoData[0].fColor); |
268 | 269 |
269 // setup batch properties | 270 // setup batch properties |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 return GrDistanceFieldA8TextGeoProc::Create(color, | 548 return GrDistanceFieldA8TextGeoProc::Create(color, |
548 viewMatrix, | 549 viewMatrix, |
549 texture, | 550 texture, |
550 params, | 551 params, |
551 flags, | 552 flags, |
552 this->usesLocalCoords()); | 553 this->usesLocalCoords()); |
553 #endif | 554 #endif |
554 } | 555 } |
555 | 556 |
556 } | 557 } |
OLD | NEW |