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; | |
261 } | 260 } |
262 | 261 |
263 void GrAtlasTextBatch::initBatchTracker(const GrXPOverridesForBatch& overrides)
{ | 262 void GrAtlasTextBatch::initBatchTracker(const GrXPOverridesForBatch& overrides)
{ |
264 // Handle any color overrides | 263 // Handle any color overrides |
265 if (!overrides.readsColor()) { | 264 if (!overrides.readsColor()) { |
266 fGeoData[0].fColor = GrColor_ILLEGAL; | 265 fGeoData[0].fColor = GrColor_ILLEGAL; |
267 } | 266 } |
268 overrides.getOverrideColorIfSet(&fGeoData[0].fColor); | 267 overrides.getOverrideColorIfSet(&fGeoData[0].fColor); |
269 | 268 |
270 // setup batch properties | 269 // setup batch properties |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 return GrDistanceFieldA8TextGeoProc::Create(color, | 560 return GrDistanceFieldA8TextGeoProc::Create(color, |
562 viewMatrix, | 561 viewMatrix, |
563 texture, | 562 texture, |
564 params, | 563 params, |
565 flags, | 564 flags, |
566 this->usesLocalCoords()); | 565 this->usesLocalCoords()); |
567 #endif | 566 #endif |
568 } | 567 } |
569 | 568 |
570 } | 569 } |
OLD | NEW |