Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: src/gpu/batches/GrAtlasTextBatch.cpp

Issue 1626553002: Revert of added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/batches/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/batches/GrPLSPathRenderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/batches/GrPLSPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698