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

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

Issue 1111603004: removing equality / compute invariant loops from GrGeometryProcessors (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup1
Patch Set: tweaks 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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 806
807 // Setup geometry processors for worst case 807 // Setup geometry processors for worst case
808 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | 808 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType |
809 GrDefaultGeoProcFactory::kCoverage_GPType; 809 GrDefaultGeoProcFactory::kCoverage_GPType;
810 810
811 SkAutoTUnref<const GrGeometryProcessor> lineGP( 811 SkAutoTUnref<const GrGeometryProcessor> lineGP(
812 GrDefaultGeoProcFactory::Create(gpFlags, 812 GrDefaultGeoProcFactory::Create(gpFlags,
813 this->color(), 813 this->color(),
814 *geometryProcessorViewM, 814 *geometryProcessorViewM,
815 *geometryProcessorLocalM, 815 *geometryProcessorLocalM,
816 false,
817 this->coverage())); 816 this->coverage()));
818 817
819 SkAutoTUnref<const GrGeometryProcessor> quadGP( 818 SkAutoTUnref<const GrGeometryProcessor> quadGP(
820 GrQuadEffect::Create(this->color(), 819 GrQuadEffect::Create(this->color(),
821 *geometryProcessorViewM, 820 *geometryProcessorViewM,
822 kHairlineAA_GrProcessorEdgeType, 821 kHairlineAA_GrProcessorEdgeType,
823 batchTarget->caps(), 822 batchTarget->caps(),
824 *geometryProcessorLocalM, 823 *geometryProcessorLocalM,
825 this->coverage())); 824 this->coverage()));
826 825
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 GrColor color = GrRandomColor(random); 1012 GrColor color = GrRandomColor(random);
1014 SkMatrix viewMatrix = GrTest::TestMatrix(random); 1013 SkMatrix viewMatrix = GrTest::TestMatrix(random);
1015 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle); 1014 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle);
1016 SkPath path = GrTest::TestPath(random); 1015 SkPath path = GrTest::TestPath(random);
1017 SkIRect devClipBounds; 1016 SkIRect devClipBounds;
1018 devClipBounds.setEmpty(); 1017 devClipBounds.setEmpty();
1019 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds) ; 1018 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds) ;
1020 } 1019 }
1021 1020
1022 #endif 1021 #endif
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