| 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 25 matching lines...) Expand all Loading... |
| 36 fGeoData[i].fColor, | 36 fGeoData[i].fColor, |
| 37 fGeoData[i].fX, | 37 fGeoData[i].fX, |
| 38 fGeoData[i].fY, | 38 fGeoData[i].fY, |
| 39 fGeoData[i].fBlob->runCount()); | 39 fGeoData[i].fBlob->runCount()); |
| 40 } | 40 } |
| 41 | 41 |
| 42 str.append(INHERITED::dumpInfo()); | 42 str.append(INHERITED::dumpInfo()); |
| 43 return str; | 43 return str; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void GrAtlasTextBatch::computePipelineOptimizations(GrInitInvariantOutput* color
, | 46 void GrAtlasTextBatch::computePipelineOptimizations(GrInitInvariantOutput* color
, |
| 47 GrInitInvariantOutput* cover
age, | 47 GrInitInvariantOutput* cover
age, |
| 48 GrBatchToXPOverrides* overri
des) const { | 48 GrBatchToXPOverrides* overri
des) const { |
| 49 if (kColorBitmapMask_MaskType == fMaskType) { | 49 if (kColorBitmapMask_MaskType == fMaskType) { |
| 50 color->setUnknownFourComponents(); | 50 color->setUnknownFourComponents(); |
| 51 } else { | 51 } else { |
| 52 color->setKnownFourComponents(fBatch.fColor); | 52 color->setKnownFourComponents(fBatch.fColor); |
| 53 } | 53 } |
| 54 switch (fMaskType) { | 54 switch (fMaskType) { |
| 55 case kGrayscaleDistanceField_MaskType: | 55 case kGrayscaleDistanceField_MaskType: |
| 56 case kGrayscaleCoverageMask_MaskType: | 56 case kGrayscaleCoverageMask_MaskType: |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 this->usesLocalCoords()); | 309 this->usesLocalCoords()); |
| 310 #endif | 310 #endif |
| 311 } | 311 } |
| 312 | 312 |
| 313 } | 313 } |
| 314 | 314 |
| 315 void GrBlobRegenHelper::flush() { | 315 void GrBlobRegenHelper::flush() { |
| 316 fBatch->flush(fTarget, fFlushInfo); | 316 fBatch->flush(fTarget, fFlushInfo); |
| 317 fTarget->initDraw(fGP); | 317 fTarget->initDraw(fGP); |
| 318 } | 318 } |
| OLD | NEW |