Home
last modified time | relevance | path

Searched refs:GrAAType (Results 1 – 25 of 110) sorted by relevance

12345

/third_party/flutter/skia/src/gpu/ops/
DGrFillRectOp.cpp65 GrAAType aaType, in Make()
78 FillRectOp(Helper::MakeArgs args, SkPMColor4f paintColor, GrAAType aaType, in FillRectOp()
89 this->setBounds(deviceQuad.bounds(), HasAABloat(aaType == GrAAType::kCoverage), in FillRectOp()
138 GrProcessorAnalysisCoverage coverage = fHelper.aaType() == GrAAType::kCoverage ? in finalize()
185 GrAAType, const SkMatrix& viewMatrix,
247 if ((fHelper.aaType() == GrAAType::kCoverage || in onCombineIfPossible()
248 that->fHelper.aaType() == GrAAType::kCoverage) && in onCombineIfPossible()
271 if (fHelper.aaType() == GrAAType::kNone && that->fHelper.aaType() == GrAAType::kCoverage) { in onCombineIfPossible()
272 fHelper.setAAType(GrAAType::kCoverage); in onCombineIfPossible()
284 const SkPMColor4f& color, GrQuadAAFlags edgeAA, GrAAType aaType) { in addQuad()
[all …]
DGrTextureOp.cpp149 GrAAType aaType, in Make()
161 int cnt, GrSamplerState::Filter filter, GrAAType aaType, in Make()
233 return this->aaType() == GrAAType::kMSAA ? FixedFunctionFlags::kUsesHWAA in fixedFunctionFlags()
268 GrAAType aaType, GrQuadAAFlags aaFlags, in TextureOp()
286 aaType != GrAAType::kCoverage) { in TextureOp()
294 this->setBounds(dstQuad.bounds(), HasAABloat(aaType == GrAAType::kCoverage), in TextureOp()
299 GrSamplerState::Filter filter, GrAAType aaType, in TextureOp()
308 GrAAType overallAAType = GrAAType::kNone; // aa type maximally compatible with all dst rects in TextureOp()
344 GrAAType aaForQuad; in TextureOp()
347 SkASSERT(aaForQuad == GrAAType::kNone || aaForQuad == aaType); in TextureOp()
[all …]
DGrSimpleMeshDrawOpHelper.cpp15 GrSimpleMeshDrawOpHelper::GrSimpleMeshDrawOpHelper(const MakeArgs& args, GrAAType aaType, in GrSimpleMeshDrawOpHelper()
40 static bool none_as_coverage_aa_compatible(GrAAType aa1, GrAAType aa2) { in none_as_coverage_aa_compatible()
41 return (aa1 == GrAAType::kNone && aa2 == GrAAType::kCoverage) || in none_as_coverage_aa_compatible()
42 (aa1 == GrAAType::kCoverage && aa2 == GrAAType::kNone); in none_as_coverage_aa_compatible()
134 case GrAAType::kNone: in dumpInfo()
137 case GrAAType::kCoverage: in dumpInfo()
140 case GrAAType::kMSAA: in dumpInfo()
150 const MakeArgs& args, GrAAType aaType, const GrUserStencilSettings* stencilSettings, in GrSimpleMeshDrawOpHelperWithStencil()
DGrTessellatingPathRenderer.cpp154 case GrAAType::kNone: in onCanDrawPath()
155 case GrAAType::kMSAA: in onCanDrawPath()
163 case GrAAType::kCoverage: in onCanDrawPath()
190 GrAAType aaType, in Make()
218 GrAAType aaType, in TessellatingPathOp()
226 , fAntiAlias(GrAAType::kCoverage == aaType) { in TessellatingPathOp()
422 static constexpr GrAAType kAATypes[] = {GrAAType::kNone, GrAAType::kMSAA, GrAAType::kCoverage}; in GR_DRAW_OP_TEST_DEFINE()
423 GrAAType aaType; in GR_DRAW_OP_TEST_DEFINE()
426 } while(GrAAType::kMSAA == aaType && numSamples <= 1); in GR_DRAW_OP_TEST_DEFINE()
DGrDefaultPathRenderer.cpp346 GrAAType aaType, in Make()
375 GrAAType aaType, const SkRect& devBounds, in DefaultPathOp()
496 GrAAType aaType, in internalDrawPath()
504 SkASSERT(GrAAType::kCoverage != aaType); in internalDrawPath()
619 GrAA(aaType == GrAAType::kMSAA), viewM, bounds, &localMatrix); in internalDrawPath()
650 if (GrAAType::kNone != args.fAAType && GrAAType::kMSAA != args.fAAType) { in onCanDrawPath()
664 GrAAType aaType = (GrAAType::kNone != args.fAAType) ? GrAAType::kMSAA : GrAAType::kNone; in onDrawPath()
679 auto aaType = (GrAA::kYes == args.fDoStencilMSAA) ? GrAAType::kMSAA : GrAAType::kNone; in onStencilPath()
705 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
707 aaType = GrAAType::kMSAA; in GR_DRAW_OP_TEST_DEFINE()
DGrRegionOp.cpp47 GrAAType aaType, in Make()
54 const SkMatrix& viewMatrix, const SkRegion& region, GrAAType aaType, in RegionOp()
182 GrAAType aaType, in Make()
184 if (aaType != GrAAType::kNone && aaType != GrAAType::kMSAA) { in Make()
214 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
216 aaType = GrAAType::kMSAA; in GR_DRAW_OP_TEST_DEFINE()
DGrFillRRectOp.cpp28 GrRecordingContext* ctx, GrAAType aaType, const SkMatrix& viewMatrix, const SkRRect& rrect, in Make()
35 if (GrAAType::kCoverage == aaType) { in Make()
48 if (GrAAType::kMSAA == aaType) { in Make()
81 if (GrAAType::kMSAA == aaType && caps.preferTrianglesOverSampleMask()) { in Make()
96 GrAAType aaType, const SkRRect& rrect, Flags flags, in GrFillRRectOp()
184 Processor(GrAAType aaType, Flags flags) in Processor()
188 int numVertexAttribs = (GrAAType::kCoverage == fAAType) ? 3 : 2; in Processor()
212 if (GrAAType::kMSAA == fAAType) { in Processor()
232 const GrAAType fAAType;
669 if (GrAAType::kMSAA == proc.fAAType) { in onEmitCode()
[all …]
DGrFillRRectOp.h20 GrRecordingContext*, GrAAType, const SkMatrix& viewMatrix, const SkRRect&,
25 return (GrAAType::kMSAA == fAAType) in fixedFunctionFlags()
52 GrFillRRectOp(GrAAType, const SkRRect&, Flags, const SkMatrix& totalShapeMatrix,
71 const GrAAType fAAType;
DGrSimpleMeshDrawOpHelper.h48 GrSimpleMeshDrawOpHelper(const MakeArgs&, GrAAType, InputFlags = InputFlags::kNone);
120 GrAAType aaType() const { return static_cast<GrAAType>(fAAType); } in aaType()
122 void setAAType(GrAAType aaType) { in setAAType()
165 GrSimpleMeshDrawOpHelperWithStencil(const MakeArgs&, GrAAType, const GrUserStencilSettings*,
DGrDashLinePathRenderer.cpp36 case GrAAType::kNone: in onDrawPath()
39 case GrAAType::kMSAA: in onDrawPath()
44 case GrAAType::kCoverage: in onDrawPath()
/third_party/skia/src/gpu/ops/
DTextureOp.cpp195 bool safe_to_ignore_subset_rect(GrAAType aaType, GrSamplerState::Filter filter, in safe_to_ignore_subset_rect()
202 if (aaType == GrAAType::kNone && in safe_to_ignore_subset_rect()
236 GrAAType aaType, in Make()
251 GrAAType aaType, in Make()
312 return fMetadata.aaType() == GrAAType::kMSAA ? FixedFunctionFlags::kUsesHWAA in fixedFunctionFlags()
361 , fAAType(static_cast<uint16_t>(GrAAType::kNone)) in Metadata()
386 GrAAType aaType() const { return static_cast<GrAAType>(fAAType); } in aaType()
441 GrAAType aaType, in TextureOpImpl()
477 this->setBounds(quad->fDevice.bounds(), HasAABloat(aaType == GrAAType::kCoverage), in TextureOpImpl()
489 const GrAAType aaType, in TextureOpImpl()
[all …]
DGrMeshDrawOp.h29 static bool CanUpgradeAAOnMerge(GrAAType aa1, GrAAType aa2) { in CanUpgradeAAOnMerge()
30 return (aa1 == GrAAType::kNone && aa2 == GrAAType::kCoverage) || in CanUpgradeAAOnMerge()
31 (aa1 == GrAAType::kCoverage && aa2 == GrAAType::kNone); in CanUpgradeAAOnMerge()
95 static bool CombinedQuadCountWillOverflow(GrAAType aaType,
DFillRectOp.cpp69 GrAAType aaType, in Make()
82 FillRectOpImpl(GrProcessorSet* processorSet, SkPMColor4f paintColor, GrAAType aaType, in FillRectOpImpl()
91 this->setBounds(quad->fDevice.bounds(), HasAABloat(aaType == GrAAType::kCoverage), in FillRectOpImpl()
142 auto coverage = fHelper.aaType() == GrAAType::kCoverage in finalize()
360 fHelper.setAAType(GrAAType::kCoverage); in onCombineIfPossible()
385 bool canAddQuads(int numQuads, GrAAType aaType) { in canAddQuads()
390 if (aaType != fHelper.aaType() && aaType != GrAAType::kNone) { in canAddQuads()
400 SkASSERT(fHelper.aaType() == GrAAType::kNone); in canAddQuads()
415 bool addQuad(DrawQuad* quad, const SkPMColor4f& color, GrAAType aaType) { in addQuad()
437 this->setBounds(newBounds, HasAABloat(fHelper.aaType() == GrAAType::kCoverage), in addQuad()
[all …]
DDefaultPathRenderer.cpp401 GrAAType aaType, in Make()
421 GrAAType aaType, const SkRect& devBounds, in DefaultPathOp()
431 HasAABloat aaBloat = (aaType == GrAAType::kNone) ? HasAABloat ::kNo : HasAABloat::kYes; in DefaultPathOp()
604 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
606 aaType = GrAAType::kMSAA; in GR_DRAW_OP_TEST_DEFINE()
620 GrAAType aaType, in internalDrawPath()
628 SkASSERT(GrAAType::kCoverage != aaType); in internalDrawPath()
741 GrAA(aaType == GrAAType::kMSAA), viewM, bounds, in internalDrawPath()
782 if (GrAAType::kNone != args.fAAType && GrAAType::kMSAA != args.fAAType) { in onCanDrawPath()
796 GrAAType aaType = (GrAAType::kNone != args.fAAType) ? GrAAType::kMSAA : GrAAType::kNone; in onDrawPath()
[all …]
DRegionOp.cpp46 GrAAType aaType, in Make()
53 const SkMatrix& viewMatrix, const SkRegion& region, GrAAType aaType, in RegionOpImpl()
206 GrAAType aaType, in Make()
208 if (aaType != GrAAType::kNone && aaType != GrAAType::kMSAA) { in Make()
242 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
244 aaType = GrAAType::kMSAA; in GR_DRAW_OP_TEST_DEFINE()
DTriangulatingPathRenderer.cpp173 GrAAType aaType, in Make()
195 GrAAType aaType, in TriangulatingPathOp()
203 , fAntiAlias(GrAAType::kCoverage == aaType) { in TriangulatingPathOp()
552 static constexpr GrAAType kAATypes[] = {GrAAType::kNone, GrAAType::kMSAA, GrAAType::kCoverage}; in GR_DRAW_OP_TEST_DEFINE()
553 GrAAType aaType; in GR_DRAW_OP_TEST_DEFINE()
556 } while(GrAAType::kMSAA == aaType && numSamples <= 1); in GR_DRAW_OP_TEST_DEFINE()
591 case GrAAType::kNone: in onCanDrawPath()
592 case GrAAType::kMSAA: in onCanDrawPath()
600 case GrAAType::kCoverage: in onCanDrawPath()
DFillRectOp.h41 GrAAType,
61 GrAAType,
76 GrAAType,
DDashLinePathRenderer.cpp38 case GrAAType::kNone: in onDrawPath()
41 case GrAAType::kMSAA: in onDrawPath()
46 case GrAAType::kCoverage: in onDrawPath()
/third_party/skia/tests/
DBulkRectTest.cpp41 GrAAType overallAA,
50 PerQuadAAFunc perQuadAA, GrAAType overallAA, in fillrectop_creation_test()
98 PerQuadAAFunc perQuadAA, GrAAType overallAA, in textureop_creation_test()
224 test(reporter, dContext, noAA, GrAAType::kNone, SkBlendMode::kSrcOver, in run_test()
237 test(reporter, dContext, noAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
251 test(reporter, dContext, alternateAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
266 test(reporter, dContext, runOfNonAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
281 test(reporter, dContext, fixedAA, GrAAType::kCoverage, SkBlendMode::kSrcATop, in run_test()
295 test(reporter, dContext, onlyOneAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
308 test(reporter, dContext, onlyOneAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
DPathRendererCacheTests.cpp37 GrAAType aaType, in draw_path()
79 GrAAType aaType = GrAAType::kNone, in test_path()
151 test_path(reporter, create_concave_path, createPR, kExpectedResources, false, GrAAType::kNone,
166 GrAAType::kCoverage);
175 GrAAType::kCoverage, style);
DTriangulatingPathRendererTests.cpp716 GrAAType aaType = GrAAType::kNone, in test_path()
761 test_path(ctx, sdc.get(), create_path_17(), nonInvertibleMatrix, GrAAType::kCoverage, in DEF_GPUTEST_FOR_ALL_CONTEXTS()
763 test_path(ctx, sdc.get(), create_path_20(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
764 test_path(ctx, sdc.get(), create_path_21(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
765 test_path(ctx, sdc.get(), create_path_25(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
766 test_path(ctx, sdc.get(), create_path_26(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
767 test_path(ctx, sdc.get(), create_path_27(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
768 test_path(ctx, sdc.get(), create_path_28(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
769 test_path(ctx, sdc.get(), create_path_31(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
770 test_path(ctx, sdc.get(), create_path_38(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
[all …]
/third_party/flutter/skia/tests/
DPathRendererCacheTests.cpp35 GrAAType aaType, in draw_path()
75 GrAAType aaType = GrAAType::kNone, in test_path()
130 reporter, create_concave_path, createPR, kExpectedResources, GrAAType::kNone, style);
143 test_path(reporter, create_concave_path, createPR, kExpectedResources, GrAAType::kCoverage);
151 test_path(reporter, create_concave_path, createPR, kExpectedResources, GrAAType::kCoverage,
DTessellatingPathRendererTests.cpp705 GrAAType aaType = GrAAType::kNone, in test_path()
766 test_path(ctx, rtc.get(), create_path_17(), nonInvertibleMatrix, GrAAType::kCoverage, in DEF_GPUTEST_FOR_ALL_CONTEXTS()
770 test_path(ctx, rtc.get(), create_path_20(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
771 test_path(ctx, rtc.get(), create_path_21(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
774 test_path(ctx, rtc.get(), create_path_25(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
775 test_path(ctx, rtc.get(), create_path_26(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
776 test_path(ctx, rtc.get(), create_path_27(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
777 test_path(ctx, rtc.get(), create_path_28(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
780 test_path(ctx, rtc.get(), create_path_31(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
787 test_path(ctx, rtc.get(), create_path_38(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
[all …]
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext.cpp493 } else if (GrQuadUtils::WillUseHairline(quad->fDevice, GrAAType::kCoverage, quad->fEdgeFlags)) { in attemptQuadOptimization()
625 GrAAType aaType; in drawFilledQuad()
627 aaType = (aa == GrAA::kYes) ? GrAAType::kMSAA : GrAAType::kNone; in drawFilledQuad()
632 aaType = GrAAType::kNone; in drawFilledQuad()
716 GrAAType aaType = this->chooseAAType(aa); in drawTexturedQuad()
764 GrAAType aaType = (fCanUseDynamicMSAA && in drawRect()
766 stroke.getMiter() >= SK_ScalarSqrt2) ? GrAAType::kCoverage in drawRect()
844 GrAAType aaType = this->chooseAAType(aa); in drawQuadSet()
928 canDrawArgs.fAAType = (doStencilMSAA == GrAA::kYes) ? GrAAType::kMSAA : GrAAType::kNone; in stencilPath()
969 GrAAType aaType = this->chooseAAType(aa); in drawTextureSet()
[all …]
/third_party/flutter/skia/src/gpu/geometry/
DGrQuadUtils.h13 enum class GrAAType : unsigned;
21 void ResolveAAType(GrAAType requestedAAType, GrQuadAAFlags requestedEdgeFlags,
22 const GrQuad& quad, GrAAType* outAAtype, GrQuadAAFlags* outEdgeFlags);

12345