Home
last modified time | relevance | path

Searched refs:GrAA (Results 1 – 25 of 47) sorted by relevance

12

/third_party/skia/tests/
DGrQuadCropTest.cpp24 static void run_crop_axis_aligned_test(skiatest::Reporter* r, const SkRect& clipRect, GrAA clipAA, in run_crop_axis_aligned_test()
31 clipAA == GrAA::kYes ? GrQuadAAFlags::kNone : GrQuadAAFlags::kAll}; in run_crop_axis_aligned_test()
69 if (clipAA == GrAA::kYes) { in run_crop_axis_aligned_test()
76 if (clipAA == GrAA::kYes) { in run_crop_axis_aligned_test()
83 if (clipAA == GrAA::kYes) { in run_crop_axis_aligned_test()
90 if (clipAA == GrAA::kYes) { in run_crop_axis_aligned_test()
98 static void run_crop_fully_covered_test(skiatest::Reporter* r, GrAA clipAA, in run_crop_fully_covered_test()
114 clipAA == GrAA::kYes ? GrQuadAAFlags::kNone : GrQuadAAFlags::kAll}; in run_crop_fully_covered_test()
153 GrQuadAAFlags expectedFlags = clipAA == GrAA::kYes ? GrQuadAAFlags::kAll in run_crop_fully_covered_test()
194 run_crop_axis_aligned_test(r, kInsideClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
[all …]
DGrClipStackTest.cpp106 ElementsBuilder& aa() { fAA = GrAA::kYes; return *this; } in aa()
107 ElementsBuilder& nonAA() { fAA = GrAA::kNo; return *this; } in nonAA()
116 ElementsBuilder& rect(const SkRect& rect, GrAA aa, SkClipOp op) { in rect()
119 ElementsBuilder& rect(const SkRect& rect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rect()
127 ElementsBuilder& rrect(const SkRRect& rrect, GrAA aa, SkClipOp op) { in rrect()
130 ElementsBuilder& rrect(const SkRRect& rrect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rrect()
138 ElementsBuilder& path(const SkPath& path, GrAA aa, SkClipOp op) { in path()
141 ElementsBuilder& path(const SkPath& path, const SkMatrix& m, GrAA aa, SkClipOp op) { in path()
159 GrAA fAA = GrAA::kNo;
1060 .actual().rect(intR1, GrAA::kYes, SkClipOp::kIntersect) in DEF_TEST()
[all …]
DDefaultPathRendererTest.cpp100 sdc->drawPath(nullptr, std::move(paint), GrAA::kNo, SkMatrix::I(), invPath, style); in run_test()
118 sdc->drawPath(nullptr, std::move(paint), GrAA::kNo, in run_test()
/third_party/skia/src/gpu/v1/
DSurfaceDrawContext_v1.h157 GrAA,
173 GrAA,
188 this->drawFilledQuad(clip, std::move(paint), GrAA::kNo, &quad); in fillPixelsWithLocalMatrix()
197 void fillRectWithEdgeAA(const GrClip* clip, GrPaint&& paint, GrAA aa, GrQuadAAFlags edgeAA,
222 void fillQuadWithEdgeAA(const GrClip* clip, GrPaint&& paint, GrAA aa, GrQuadAAFlags edgeAA, in fillQuadWithEdgeAA()
232 void drawQuadSet(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix,
250 GrAA,
272 GrAA aa, in drawTextureQuad()
301 GrAA aa,
317 GrAA,
[all …]
DStencilMaskHelper.cpp283 const SkRect& rect, GrAA aa) { in draw_stencil_rect()
297 GrAA aa) { in draw_path()
302 GrAAType pathAAType = aa == GrAA::kYes ? GrAAType::kMSAA : GrAAType::kNone; in draw_path()
323 GrAA aa) { in stencil_path()
336 GrAA supported_aa(skgpu::v1::SurfaceDrawContext* sdc, GrAA aa) { in supported_aa()
337 return GrAA(sdc->numSamples() > 1 || sdc->canUseDynamicMSAA()); in supported_aa()
371 GrAA aa) { in drawRect()
401 GrAA aa) { in drawPath()
411 GrAAType pathAAType = aa == GrAA::kYes ? GrAAType::kMSAA : GrAAType::kNone; in drawPath()
475 GrAA aa) { in drawShape()
[all …]
DSurfaceDrawContext.cpp433 this->fillRectToRect(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), r, r); in drawPaint()
461 const GrClip* clip, const GrUserStencilSettings* stencilSettings, GrAA* aa, DrawQuad* quad, in attemptQuadOptimization()
491 GrClip::IsOutsideClip(SkIRect::MakeSize(this->dimensions()), drawBounds, GrAA::kYes)) { in attemptQuadOptimization()
574 if (*aa == GrAA::kNo && result.fAA == GrAA::kYes && in attemptQuadOptimization()
578 *aa = GrAA::kYes; in attemptQuadOptimization()
611 GrAA aa, in drawFilledQuad()
627 aaType = (aa == GrAA::kYes) ? GrAAType::kMSAA : GrAAType::kNone; in drawFilledQuad()
628 } else if (fCanUseDynamicMSAA && aa == GrAA::kNo) { in drawFilledQuad()
651 GrAA aa, in drawTexture()
657 if ((this->alwaysAntialias() || this->caps()->reducedShaderMode()) && aa == GrAA::kYes) { in drawTexture()
[all …]
DClipStack.h40 GrAA fAA;
63 void clipRect(const SkMatrix& ctm, const SkRect& rect, GrAA aa, SkClipOp op) { in clipRect()
66 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, GrAA aa, SkClipOp op) { in clipRRect()
69 void clipPath(const SkMatrix& ctm, const SkPath& path, GrAA aa, SkClipOp op) { in clipPath()
79 GrClip::PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const override;
105 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op);
120 GrAA aa() const { return fAA; } in aa()
DStencilMaskHelper.h48 void drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op, GrAA);
51 bool drawPath(const SkPath& path, const SkMatrix& matrix, SkRegion::Op, GrAA);
54 bool drawShape(const GrShape& shape, const SkMatrix& matrix, SkRegion::Op, GrAA);
DDevice.cpp74 const SkRRect& rrect, GrAA aa, in make_inverse_rrect_fp()
78 auto edgeType = (aa == GrAA::kYes) ? GrClipEdgeType::kInverseFillAA in make_inverse_rrect_fp()
257 fClip.clipPath(this->localToDevice(), path, GrAA(aa), op); in onClipPath()
264 GrAA aa = GrAA(fSurfaceDrawContext->alwaysAntialias()); in onClipRegion()
299 if (e.fAA == GrAA::kYes) { in onClipIsAA()
345 GrAA aa = fSurfaceDrawContext->chooseAA(paint); in drawPoints()
457 fSurfaceDrawContext->fillQuadWithEdgeAA(this->clip(), std::move(grPaint), GrAA::kYes, grAA, in drawEdgeAAQuad()
461 fSurfaceDrawContext->fillRectWithEdgeAA(this->clip(), std::move(grPaint), GrAA::kYes, grAA, in drawEdgeAAQuad()
755 GrAA aa = fSurfaceDrawContext->chooseAA(paint); in drawImageRect()
756 GrQuadAAFlags aaFlags = (aa == GrAA::kYes) ? GrQuadAAFlags::kAll : GrQuadAAFlags::kNone; in drawImageRect()
[all …]
DClipStack.cpp177 GrClipEdgeType get_clip_edge_type(SkClipOp op, GrAA aa) { in get_clip_edge_type()
179 return aa == GrAA::kYes ? GrClipEdgeType::kFillAA : GrClipEdgeType::kFillBW; in get_clip_edge_type()
181 return aa == GrAA::kYes ? GrClipEdgeType::kInverseFillAA : GrClipEdgeType::kInverseFillBW; in get_clip_edge_type()
245 if (e.fAA != GrAA::kYes) { in clip_atlas_fp()
404 Draw(const SkRect& drawBounds, GrAA aa) in Draw()
427 GrAA aa() const { return fAA; } in aa()
432 GrAA fAA;
439 GrAA aa, SkClipOp op) in RawElement()
468 SkRect queryBounds = d.aa() == GrAA::kYes ? d.bounds() : SkRect::Make(d.outerBounds()); in contains()
544 fAA = GrAA::kYes; in simplify()
[all …]
DDevice_drawTexture.cpp348 GrAA aa, in draw_texture()
364 float buffer = 0.5f * (aa == GrAA::kYes) + in draw_texture()
423 GrAA aa, in draw_image()
579 GrAA aa, in draw_tiled_bitmap()
635 if (aa == GrAA::kYes) { in draw_tiled_bitmap()
720 GrAA aa = fSurfaceDrawContext->chooseAA(paint); in drawSpecial()
721 GrQuadAAFlags aaFlags = (aa == GrAA::kYes) ? GrQuadAAFlags::kAll : GrQuadAAFlags::kNone; in drawSpecial()
755 GrAA aa, in drawImageQuad()
872 set[i].fHasClip ? dstClips + dstClipIndex : nullptr, GrAA::kYes, in drawEdgeAAImageSet()
902 GrAA::kYes, in drawEdgeAAImageSet()
[all …]
DDevice_v1.h156 fClip.clipRect(this->localToDevice(), rect, GrAA(aa), op); in onClipRect()
160 fClip.clipRRect(this->localToDevice(), rrect, GrAA(aa), op); in onClipRRect()
205 const SkPoint dstClip[4], GrAA aa, GrQuadAAFlags aaFlags,
DStencilClip.h55 PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const final { in preApply()
/third_party/skia/src/gpu/
DGrClip.h37 GrAA fAA; // Ignore if 'isRRect' is false
41 PreClipResult(SkRect rect, GrAA aa) : PreClipResult(SkRRect::MakeRect(rect), aa) {} in PreClipResult()
42 PreClipResult(SkRRect rrect, GrAA aa) in PreClipResult()
86 virtual PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const { in preApply()
117 static bool IsInsideClip(const SkIRect& innerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsInsideClip()
128 static bool IsOutsideClip(const SkIRect& outerClipBounds, const SkRect& drawBounds, GrAA aa) { in IsOutsideClip()
162 static SkIRect GetPixelIBounds(const SkRect& bounds, GrAA aa,
166 return aa == GrAA::kNo ? SkScalarRoundToInt(v - kHalfPixelRoundingTolerance)
171 return aa == GrAA::kNo ? SkScalarRoundToInt(v + kHalfPixelRoundingTolerance)
220 SkIRect pixelBounds = GetPixelIBounds(*bounds, GrAA(aa != GrAAType::kNone)); in apply()
DGrSWMaskHelper.h51 void drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
54 void drawRRect(const SkRRect& rrect, const SkMatrix& matrix, SkRegion::Op op, GrAA,
58 void drawShape(const GrStyledShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA,
61 void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
DGrSWMaskHelper.cpp37 static SkPaint get_paint(SkRegion::Op op, GrAA aa, uint8_t alpha) { in get_paint()
40 paint.setAntiAlias(GrAA::kYes == aa); in get_paint()
49 void GrSWMaskHelper::drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op op, GrAA aa, in drawRect()
60 GrAA aa, uint8_t alpha) { in drawRRect()
73 GrAA aa, uint8_t alpha) { in drawShape()
94 GrAA aa, uint8_t alpha) { in drawShape()
DGrFixedClip.cpp16 GrClip::PreClipResult GrFixedClip::preApply(const SkRect& drawBounds, GrAA aa) const { in preApply()
31 return {SkRect::Make(fScissorState.rect()), GrAA::kNo}; in preApply()
DGrFixedClip.h51 PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const final;
/third_party/skia/src/gpu/ops/
DFillRRectOp.cpp46 GrAA);
56 GrAA) override;
153 GrAA aa) { in Make()
178 if (aa == GrAA::kNo) { in Make()
214 GrAA aa) { in clipToShape()
220 (aa == GrAA::kNo) == (fProcessorFlags & ProcessorFlags::kFakeNonAA)) { in clipToShape()
859 GrAA aa) { in Make()
872 GrAA aa = GrAA(random->nextBool()); in GR_DRAW_OP_TEST_DEFINE()
DSoftwarePathRenderer.cpp41 const GrStyledShape& shape, GrAA aa) in SoftwarePathData()
50 GrAA getAA() const { return fAA; } in getAA()
56 GrAA fAA;
154 sdc->stencilRect(clip, &userStencilSettings, std::move(paint), GrAA::kNo, in DrawNonAARect()
333 GrAA aa = GrAA(GrAAType::kCoverage == args.fAAType); in onDrawPath()
DFillRRectOp.h28 GrAA);
DGrDrawOp.h61 GrAA) { in clipToShape() argument
/third_party/skia/gm/
Dgpu_blur_utils.cpp279 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, SkRect::Make(testArea)); in run()
313 GrAA::kNo, in run()
329 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, dstR, &style); in run()
342 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, srcR, &style); in run()
411 GrAA::kNo, in do_very_large_blur_gm()
Dclockwise.cpp289 GrAA::kNo, in onDraw()
313 GrAA::kNo, in onDraw()
/third_party/skia/src/gpu/geometry/
DGrQuadUtils.h15 enum class GrAA : bool;
47 bool CropToRect(const SkRect& cropRect, GrAA cropAA, DrawQuad* quad, bool computeLocal=true);

12