Home
last modified time | relevance | path

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

12345

/external/skqp/src/gpu/ops/
DGrSimpleMeshDrawOpHelper.cpp14 GrSimpleMeshDrawOpHelper::GrSimpleMeshDrawOpHelper(const MakeArgs& args, GrAAType aaType, in GrSimpleMeshDrawOpHelper()
42 static bool none_as_coverage_aa_compatible(GrAAType aa1, GrAAType aa2) { in none_as_coverage_aa_compatible()
43 return (aa1 == GrAAType::kNone && aa2 == GrAAType::kCoverage) || in none_as_coverage_aa_compatible()
44 (aa1 == GrAAType::kCoverage && aa2 == GrAAType::kNone); in none_as_coverage_aa_compatible()
77 bool isMixedSamples = this->aaType() == GrAAType::kMixedSamples; in finalizeProcessors()
107 case GrAAType::kNone: in dumpInfo()
110 case GrAAType::kCoverage: in dumpInfo()
113 case GrAAType::kMSAA: in dumpInfo()
116 case GrAAType::kMixedSamples: in dumpInfo()
162 const MakeArgs& args, GrAAType aaType, const GrUserStencilSettings* stencilSettings, in GrSimpleMeshDrawOpHelperWithStencil()
DGrFillRectOp.cpp61 GrAAType aaType, in Make()
76 FillRectOp(Helper::MakeArgs args, SkPMColor4f paintColor, GrAAType aaType, in FillRectOp()
94 HasAABloat(aaType == GrAAType::kCoverage), IsZeroArea::kNo); in FillRectOp()
141 GrProcessorAnalysisCoverage coverage = fHelper.aaType() == GrAAType::kCoverage ? in finalize()
168 GrAAType aaType, const SkMatrix& viewMatrix,
236 if ((fHelper.aaType() == GrAAType::kCoverage || in onCombineIfPossible()
237 that->fHelper.aaType() == GrAAType::kCoverage) && in onCombineIfPossible()
260 if (fHelper.aaType() == GrAAType::kNone && that->fHelper.aaType() == GrAAType::kCoverage) { in onCombineIfPossible()
261 fHelper.setAAType(GrAAType::kCoverage); in onCombineIfPossible()
277 GrAAType aaType) { in addQuad()
[all …]
DGrFillRectOp.h31 GrAAType aaType,
39 GrAAType aaType,
48 GrAAType aaType,
59 GrAAType aaType,
69 GrAAType aaType,
76 GrAAType aaType,
84 GrAAType aaType,
DGrTextureOp.cpp105 GrAAType aaType, in Make()
118 int cnt, GrSamplerState::Filter filter, GrAAType aaType, in Make()
186 return this->aaType() == GrAAType::kMSAA ? FixedFunctionFlags::kUsesHWAA in fixedFunctionFlags()
196 const SkRect& srcRect, const SkRect& dstRect, GrAAType aaType, GrQuadAAFlags aaFlags, in TextureOp()
227 aaType != GrAAType::kCoverage) { in TextureOp()
237 this->setBounds(bounds, HasAABloat(aaType == GrAAType::kCoverage), IsZeroArea::kNo); in TextureOp()
244 GrSamplerState::Filter filter, GrAAType aaType, const SkMatrix& viewMatrix, in TextureOp()
252 GrAAType overallAAType = GrAAType::kNone; // aa type maximally compatible with all dst rects in TextureOp()
271 GrAAType aaForQuad; in TextureOp()
274 SkASSERT(aaForQuad == GrAAType::kNone || aaForQuad == aaType); in TextureOp()
[all …]
DGrDashLinePathRenderer.cpp21 if (args.fAAType == GrAAType::kMixedSamples) { in onCanDrawPath()
39 case GrAAType::kNone: in onDrawPath()
41 case GrAAType::kCoverage: in onDrawPath()
42 case GrAAType::kMixedSamples: in onDrawPath()
45 case GrAAType::kMSAA: in onDrawPath()
DGrDrawPathOp.h24 GrPathRendering::FillType, GrAAType);
49 bool isMixedSamples = GrAAType::kMixedSamples == fAAType; in doProcessorAnalysis()
66 GrAAType fAAType;
79 GrAAType,
91 GrDrawPathOp(const SkMatrix& viewMatrix, GrPaint&& paint, GrAAType aaType, const GrPath* path) in GrDrawPathOp()
DGrRegionOp.cpp45 GrAAType aaType, in Make()
52 const SkMatrix& viewMatrix, const SkRegion& region, GrAAType aaType, in RegionOp()
175 GrAAType aaType, in Make()
177 if (aaType != GrAAType::kNone && aaType != GrAAType::kMSAA) { in Make()
207 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
209 aaType = GrAAType::kMSAA; in GR_DRAW_OP_TEST_DEFINE()
DGrStencilAndCoverPathRenderer.cpp49 if (GrAAType::kCoverage == args.fAAType) { in onCanDrawPath()
156 GrAAType coverAAType = args.fAAType; in onDrawPath()
157 if (GrAAType::kMixedSamples == coverAAType) { in onDrawPath()
158 coverAAType = GrAAType::kNone; in onDrawPath()
161 SkASSERT(coverAAType == GrAAType::kNone || coverAAType == GrAAType::kMSAA); in onDrawPath()
DGrTessellatingPathRenderer.cpp155 if (GrAAType::kCoverage == args.fAAType) { in onCanDrawPath()
181 GrAAType aaType, in Make()
209 GrAAType aaType, in TessellatingPathOp()
217 , fAntiAlias(GrAAType::kCoverage == aaType) { in TessellatingPathOp()
410 static constexpr GrAAType kAATypes[] = {GrAAType::kNone, GrAAType::kMSAA, GrAAType::kCoverage}; in GR_DRAW_OP_TEST_DEFINE()
411 GrAAType aaType; in GR_DRAW_OP_TEST_DEFINE()
414 } while(GrAAType::kMSAA == aaType && GrFSAAType::kUnifiedMSAA != fsaaType); in GR_DRAW_OP_TEST_DEFINE()
DGrSimpleMeshDrawOpHelper.h47 GrSimpleMeshDrawOpHelper(const MakeArgs&, GrAAType, Flags = Flags::kNone);
121 GrAAType aaType() const { return static_cast<GrAAType>(fAAType); } in aaType()
123 void setAAType(GrAAType aaType) { in setAAType()
167 GrSimpleMeshDrawOpHelperWithStencil(const MakeArgs&, GrAAType, const GrUserStencilSettings*,
/external/skqp/src/gpu/
DGrQuad.cpp95 void GrResolveAATypeForQuad(GrAAType requestedAAType, GrQuadAAFlags requestedEdgeFlags, in GrResolveAATypeForQuad()
97 GrAAType* outAAType, GrQuadAAFlags* outEdgeFlags) { in GrResolveAATypeForQuad()
104 case GrAAType::kCoverage: in GrResolveAATypeForQuad()
107 *outAAType = GrAAType::kNone; in GrResolveAATypeForQuad()
112 *outAAType = GrAAType::kNone; in GrResolveAATypeForQuad()
119 case GrAAType::kNone: in GrResolveAATypeForQuad()
122 case GrAAType::kMSAA: in GrResolveAATypeForQuad()
125 case GrAAType::kMixedSamples: in GrResolveAATypeForQuad()
132 template void GrResolveAATypeForQuad(GrAAType, GrQuadAAFlags, const GrQuad&, GrQuadType,
133 GrAAType*, GrQuadAAFlags*);
[all …]
DGrRenderTargetContext.cpp117 GrAAType GrChooseAAType(GrAA aa, GrFSAAType fsaaType, GrAllowMixedSamples allowMixedSamples, in GrChooseAAType()
123 return GrAAType::kMSAA; in GrChooseAAType()
125 return GrAAType::kNone; in GrChooseAAType()
129 return GrAAType::kCoverage; in GrChooseAAType()
131 return GrAAType::kMSAA; in GrChooseAAType()
133 return GrAllowMixedSamples::kYes == allowMixedSamples ? GrAAType::kMixedSamples in GrChooseAAType()
134 : GrAAType::kCoverage; in GrChooseAAType()
137 return GrAAType::kNone; in GrChooseAAType()
336 GrAAType::kNone, SkMatrix::I(), rtRect)); in internalClear()
348 this->addDrawOp(clip, GrFillRectOp::Make(fContext, std::move(paint), GrAAType::kNone, in internalClear()
[all …]
/external/skia/src/gpu/ops/
DGrTextureOp.cpp192 static bool safe_to_ignore_subset_rect(GrAAType aaType, GrSamplerState::Filter filter, in safe_to_ignore_subset_rect()
199 if (aaType == GrAAType::kNone && in safe_to_ignore_subset_rect()
231 GrAAType aaType, in Make()
246 GrAAType aaType, in Make()
307 return fMetadata.aaType() == GrAAType::kMSAA ? FixedFunctionFlags::kUsesHWAA in fixedFunctionFlags()
356 , fAAType(static_cast<uint16_t>(GrAAType::kNone)) in Metadata()
381 GrAAType aaType() const { return static_cast<GrAAType>(fAAType); } in aaType()
438 GrAAType aaType, in TextureOp()
473 this->setBounds(quad->fDevice.bounds(), HasAABloat(aaType == GrAAType::kCoverage), in TextureOp()
486 GrAAType aaType, in TextureOp()
[all …]
DGrFillRectOp.cpp67 GrAAType aaType, in Make()
80 FillRectOp(GrProcessorSet* processorSet, SkPMColor4f paintColor, GrAAType aaType, in FillRectOp()
87 this->setBounds(quad->fDevice.bounds(), HasAABloat(aaType == GrAAType::kCoverage), in FillRectOp()
141 auto coverage = fHelper.aaType() == GrAAType::kCoverage in finalize()
356 fHelper.setAAType(GrAAType::kCoverage); in onCombineIfPossible()
381 bool canAddQuads(int numQuads, GrAAType aaType) { in canAddQuads()
386 if (aaType != fHelper.aaType() && aaType != GrAAType::kNone) { in canAddQuads()
395 SkASSERT(fHelper.aaType() == GrAAType::kNone); in canAddQuads()
410 bool addQuad(DrawQuad* quad, const SkPMColor4f& color, GrAAType aaType) { in addQuad()
432 this->setBounds(newBounds, HasAABloat(fHelper.aaType() == GrAAType::kCoverage), in addQuad()
[all …]
DGrMeshDrawOp.h33 static bool CanUpgradeAAOnMerge(GrAAType aa1, GrAAType aa2) { in CanUpgradeAAOnMerge()
34 return (aa1 == GrAAType::kNone && aa2 == GrAAType::kCoverage) || in CanUpgradeAAOnMerge()
35 (aa1 == GrAAType::kCoverage && aa2 == GrAAType::kNone); in CanUpgradeAAOnMerge()
98 static bool CombinedQuadCountWillOverflow(GrAAType aaType, in CombinedQuadCountWillOverflow()
101 bool willBeAA = (aaType == GrAAType::kCoverage) || willBeUpgradedToAA; in CombinedQuadCountWillOverflow()
DGrDefaultPathRenderer.cpp370 GrAAType aaType, in Make()
390 GrAAType aaType, const SkRect& devBounds, in DefaultPathOp()
400 HasAABloat aaBloat = (aaType == GrAAType::kNone) ? HasAABloat ::kNo : HasAABloat::kYes; in DefaultPathOp()
554 GrAAType aaType, in internalDrawPath()
562 SkASSERT(GrAAType::kCoverage != aaType); in internalDrawPath()
675 GrAA(aaType == GrAAType::kMSAA), viewM, bounds, in internalDrawPath()
707 if (GrAAType::kNone != args.fAAType && GrAAType::kMSAA != args.fAAType) { in onCanDrawPath()
721 GrAAType aaType = (GrAAType::kNone != args.fAAType) ? GrAAType::kMSAA : GrAAType::kNone; in onDrawPath()
736 auto aaType = (GrAA::kYes == args.fDoStencilMSAA) ? GrAAType::kMSAA : GrAAType::kNone; in onStencilPath()
762 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrRegionOp.cpp45 GrAAType aaType, in Make()
52 const SkMatrix& viewMatrix, const SkRegion& region, GrAAType aaType, in RegionOp()
206 GrAAType aaType, in Make()
208 if (aaType != GrAAType::kNone && aaType != GrAAType::kMSAA) { in Make()
238 GrAAType aaType = GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
240 aaType = GrAAType::kMSAA; in GR_DRAW_OP_TEST_DEFINE()
DGrFillRectOp.h35 GrAAType aaType,
55 GrAAType,
70 GrAAType,
DGrTriangulatingPathRenderer.cpp210 case GrAAType::kNone: in onCanDrawPath()
211 case GrAAType::kMSAA: in onCanDrawPath()
219 case GrAAType::kCoverage: in onCanDrawPath()
246 GrAAType aaType, in Make()
268 GrAAType aaType, in TriangulatingPathOp()
276 , fAntiAlias(GrAAType::kCoverage == aaType) { in TriangulatingPathOp()
632 static constexpr GrAAType kAATypes[] = {GrAAType::kNone, GrAAType::kMSAA, GrAAType::kCoverage}; in GR_DRAW_OP_TEST_DEFINE()
633 GrAAType aaType; in GR_DRAW_OP_TEST_DEFINE()
636 } while(GrAAType::kMSAA == aaType && numSamples <= 1); in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/tests/
DPathRendererCacheTests.cpp35 GrAAType aaType, in draw_path()
75 GrAAType aaType = GrAAType::kNone, in test_path()
132 test_path(reporter, create_concave_path, createPR, kExpectedResources, GrAAType::kNone, style);
145 test_path(reporter, create_concave_path, createPR, kExpectedResources, GrAAType::kCoverage);
153 test_path(reporter, create_concave_path, createPR, kExpectedResources, GrAAType::kCoverage,
DTessellatingPathRendererTests.cpp640 GrAAType aaType = GrAAType::kNone, in test_path()
702 test_path(ctx, rtc.get(), create_path_17(), nonInvertibleMatrix, GrAAType::kCoverage, in DEF_GPUTEST_FOR_ALL_CONTEXTS()
706 test_path(ctx, rtc.get(), create_path_20(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
707 test_path(ctx, rtc.get(), create_path_21(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
710 test_path(ctx, rtc.get(), create_path_25(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
711 test_path(ctx, rtc.get(), create_path_26(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
712 test_path(ctx, rtc.get(), create_path_27(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
713 test_path(ctx, rtc.get(), create_path_28(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
716 test_path(ctx, rtc.get(), create_path_31(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
723 test_path(ctx, rtc.get(), create_path_38(), SkMatrix(), GrAAType::kCoverage); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
[all …]
/external/skia/tests/
DBulkRectTest.cpp39 GrAAType overallAA,
48 PerQuadAAFunc perQuadAA, GrAAType overallAA, in fillrectop_creation_test()
96 PerQuadAAFunc perQuadAA, GrAAType overallAA, in textureop_creation_test()
222 test(reporter, dContext, noAA, GrAAType::kNone, SkBlendMode::kSrcOver, in run_test()
235 test(reporter, dContext, noAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
249 test(reporter, dContext, alternateAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
264 test(reporter, dContext, runOfNonAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
279 test(reporter, dContext, fixedAA, GrAAType::kCoverage, SkBlendMode::kSrcATop, in run_test()
293 test(reporter, dContext, onlyOneAA, GrAAType::kCoverage, SkBlendMode::kSrcOver, in run_test()
306 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);
/external/skia/src/gpu/tessellate/
DGrTessellationPathRenderer.cpp131 if (args.fAAType == GrAAType::kCoverage || in onCanDrawPath()
153 GrTessellationPathRenderer::OpFlags opFlags, GrAAType aaType, in make_op()
295 const SkRect& devBounds, GrAAType aaType, SkIRect* devIBounds, SkIPoint16* locationInAtlas, in tryAddPathToAtlas()
305 if (!caps.multisampleDisableSupport() && GrAAType::kNone == aaType) { in tryAddPathToAtlas()
352 SkPath* uberPath = this->getAtlasUberPath(path.getFillType(), GrAAType::kNone != aaType); in tryAddPathToAtlas()
360 GrAAType aaType = (GrAA::kYes == args.fDoStencilMSAA) ? GrAAType::kMSAA : GrAAType::kNone; in onStencilPath()
412 GrAAType aaType = (antialias) ? GrAAType::kMSAA : GrAAType::kNone; in renderAtlas()
421 auto aaType = GrAAType::kMSAA; in renderAtlas()
/external/skia/src/gpu/
DGrSurfaceDrawContext.cpp329 inline GrAAType GrSurfaceDrawContext::chooseAAType(GrAA aa) { in chooseAAType()
334 return GrAAType::kMSAA; in chooseAAType()
340 return GrAAType::kMSAA; in chooseAAType()
342 return GrAAType::kNone; in chooseAAType()
344 return (this->numSamples() > 1) ? GrAAType::kMSAA : GrAAType::kCoverage; in chooseAAType()
635 GrAAType aaType; in drawFilledQuad()
637 aaType = (aa == GrAA::kYes) ? GrAAType::kMSAA : GrAAType::kNone; in drawFilledQuad()
642 aaType = GrAAType::kNone; in drawFilledQuad()
726 GrAAType aaType = this->chooseAAType(aa); in drawTexturedQuad()
768 GrAAType aaType = (fCanUseDynamicMSAA) ? GrAAType::kCoverage : this->chooseAAType(aa); in drawRect()
[all …]

12345