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

Side by Side Diff: src/gpu/GrAAHairLinePathRenderer.cpp

Issue 1110993002: Revert of removing equality / compute invariant loops from GrGeometryProcessors (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup1
Patch Set: Created 5 years, 7 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/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 "GrAAHairLinePathRenderer.h" 8 #include "GrAAHairLinePathRenderer.h"
9 9
10 #include "GrBatch.h" 10 #include "GrBatch.h"
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 829
830 // Setup geometry processors for worst case 830 // Setup geometry processors for worst case
831 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | 831 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType |
832 GrDefaultGeoProcFactory::kCoverage_GPType; 832 GrDefaultGeoProcFactory::kCoverage_GPType;
833 833
834 SkAutoTUnref<const GrGeometryProcessor> lineGP( 834 SkAutoTUnref<const GrGeometryProcessor> lineGP(
835 GrDefaultGeoProcFactory::Create(gpFlags, 835 GrDefaultGeoProcFactory::Create(gpFlags,
836 this->color(), 836 this->color(),
837 *geometryProcessorViewM, 837 *geometryProcessorViewM,
838 *geometryProcessorLocalM, 838 *geometryProcessorLocalM,
839 false,
839 this->coverage())); 840 this->coverage()));
840 841
841 SkAutoTUnref<const GrGeometryProcessor> quadGP( 842 SkAutoTUnref<const GrGeometryProcessor> quadGP(
842 GrQuadEffect::Create(this->color(), 843 GrQuadEffect::Create(this->color(),
843 *geometryProcessorViewM, 844 *geometryProcessorViewM,
844 kHairlineAA_GrProcessorEdgeType, 845 kHairlineAA_GrProcessorEdgeType,
845 batchTarget->caps(), 846 batchTarget->caps(),
846 *geometryProcessorLocalM, 847 *geometryProcessorLocalM,
847 this->coverage())); 848 this->coverage()));
848 849
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 geometry.fPath = path; 1059 geometry.fPath = path;
1059 SkDEBUGCODE(geometry.fDevBounds = devRect;) 1060 SkDEBUGCODE(geometry.fDevBounds = devRect;)
1060 geometry.fDevClipBounds = devClipBounds; 1061 geometry.fDevClipBounds = devClipBounds;
1061 1062
1062 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf fer, 1063 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf fer,
1063 fQuadsIndexBuffer)); 1064 fQuadsIndexBuffer));
1064 target->drawBatch(pipelineBuilder, batch, &devRect); 1065 target->drawBatch(pipelineBuilder, batch, &devRect);
1065 1066
1066 return true; 1067 return true;
1067 } 1068 }
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698