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