/external/skia/tests/ |
D | GrQuadCropTest.cpp | 24 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() 141 GrQuadAAFlags expectedFlags = clipAA == GrAA::kYes ? GrQuadAAFlags::kAll in run_crop_fully_covered_test() 182 run_crop_axis_aligned_test(r, kInsideClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips() [all …]
|
D | GrClipStackTest.cpp | 101 ElementsBuilder& aa() { fAA = GrAA::kYes; return *this; } in aa() 102 ElementsBuilder& nonAA() { fAA = GrAA::kNo; return *this; } in nonAA() 111 ElementsBuilder& rect(const SkRect& rect, GrAA aa, SkClipOp op) { in rect() 114 ElementsBuilder& rect(const SkRect& rect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rect() 122 ElementsBuilder& rrect(const SkRRect& rrect, GrAA aa, SkClipOp op) { in rrect() 125 ElementsBuilder& rrect(const SkRRect& rrect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rrect() 133 ElementsBuilder& path(const SkPath& path, GrAA aa, SkClipOp op) { in path() 136 ElementsBuilder& path(const SkPath& path, const SkMatrix& m, GrAA aa, SkClipOp op) { in path() 154 GrAA fAA = GrAA::kNo; 1004 .actual().rect(intR1, GrAA::kYes, SkClipOp::kIntersect) in DEF_TEST() [all …]
|
/external/skia/src/gpu/ |
D | GrSurfaceDrawContext.h | 165 GrAA, 181 GrAA, 196 this->drawFilledQuad(clip, std::move(paint), GrAA::kNo, &quad); in fillPixelsWithLocalMatrix() 205 void fillRectWithEdgeAA(const GrClip* clip, GrPaint&& paint, GrAA aa, GrQuadAAFlags edgeAA, 230 void fillQuadWithEdgeAA(const GrClip* clip, GrPaint&& paint, GrAA aa, GrQuadAAFlags edgeAA, in fillQuadWithEdgeAA() 248 void drawQuadSet(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, 266 GrAA, 288 GrAA aa, in drawTextureQuad() 328 GrAA aa, 344 GrAA, [all …]
|
D | GrClip.h | 35 GrAA fAA; // Ignore if 'isRRect' is false 39 PreClipResult(SkRect rect, GrAA aa) : PreClipResult(SkRRect::MakeRect(rect), aa) {} in PreClipResult() 40 PreClipResult(SkRRect rrect, GrAA aa) in PreClipResult() 84 virtual PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() 170 return GetPixelIBounds(bounds, GrAA::kYes); in GetPixelIBounds() 183 static SkIRect GetPixelIBounds(const SkRect& bounds, GrAA aa, 187 return aa == GrAA::kNo ? SkScalarRoundToInt(v - kHalfPixelRoundingTolerance) 192 return aa == GrAA::kNo ? SkScalarRoundToInt(v + kHalfPixelRoundingTolerance) 248 SkIRect pixelBounds = GetPixelIBounds(*bounds, GrAA(aa != GrAAType::kNone)); in apply()
|
D | GrStencilMaskHelper.cpp | 277 const SkRect& rect, GrAA aa) { in draw_stencil_rect() 287 const GrStyledShape& shape, GrAA aa) { in draw_path() 292 GrAAType pathAAType = aa == GrAA::kYes ? GrAAType::kMSAA : GrAAType::kNone; in draw_path() 310 const GrStyledShape& shape, GrAA aa) { in stencil_path() 323 static GrAA supported_aa(GrSurfaceDrawContext* rtc, GrAA aa) { in supported_aa() 328 return GrAA::kYes; in supported_aa() 331 return GrAA::kNo; in supported_aa() 357 GrAA aa) { in drawRect() 387 GrAA aa) { in drawPath() 397 GrAAType pathAAType = aa == GrAA::kYes ? GrAAType::kMSAA : GrAAType::kNone; in drawPath() [all …]
|
D | GrReducedClip.cpp | 127 ClipResult::kNotClipped == this->addAnalyticRect(fAAClipRect, Invert::kNo, GrAA::kYes)) { in GrReducedClip() 541 GrAA(element->isAA())); in clipInsideElement() 545 Invert(element->isInverseFilled()), GrAA(element->isAA())); in clipInsideElement() 572 GrAA(element->isAA())); in clipOutsideElement() 578 GrAA(element->isAA())); in clipOutsideElement() 617 GrAA(element->isAA())); in clipOutsideElement() 638 GrClipEdgeType GrReducedClip::GetClipEdgeType(Invert invert, GrAA aa) { in GetClipEdgeType() 640 return (GrAA::kYes == aa) ? GrClipEdgeType::kFillAA : GrClipEdgeType::kFillBW; in GetClipEdgeType() 642 return (GrAA::kYes == aa) ? GrClipEdgeType::kInverseFillAA : GrClipEdgeType::kInverseFillBW; in GetClipEdgeType() 647 Invert invert, GrAA aa) { in addAnalyticRect() [all …]
|
D | GrSWMaskHelper.h | 51 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);
|
D | GrSurfaceDrawContext.cpp | 329 inline GrAAType GrSurfaceDrawContext::chooseAAType(GrAA aa) { in chooseAAType() 336 if (GrAA::kNo == aa) { in chooseAAType() 461 this->fillRectToRect(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), r, r); in drawPaint() 489 const GrClip* clip, const GrUserStencilSettings* stencilSettings, GrAA* aa, DrawQuad* quad, in attemptQuadOptimization() 584 if (*aa == GrAA::kNo && result.fAA == GrAA::kYes && in attemptQuadOptimization() 588 *aa = GrAA::kYes; in attemptQuadOptimization() 621 GrAA aa, in drawFilledQuad() 637 aaType = (aa == GrAA::kYes) ? GrAAType::kMSAA : GrAAType::kNone; in drawFilledQuad() 638 } else if (fCanUseDynamicMSAA && aa == GrAA::kNo) { in drawFilledQuad() 661 GrAA aa, in drawTexture() [all …]
|
D | GrSWMaskHelper.cpp | 37 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()
|
D | GrReducedClip.h | 135 static GrClipEdgeType GetClipEdgeType(Invert, GrAA); 136 ClipResult addAnalyticRect(const SkRect& deviceSpaceRect, Invert, GrAA); 137 ClipResult addAnalyticRRect(const SkRRect& deviceSpaceRRect, Invert, GrAA); 138 ClipResult addAnalyticPath(const SkPath& deviceSpacePath, Invert, GrAA);
|
D | GrStencilMaskHelper.h | 50 void drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op, GrAA); 53 bool drawPath(const SkPath& path, const SkMatrix& matrix, SkRegion::Op, GrAA); 56 bool drawShape(const GrShape& shape, const SkMatrix& matrix, SkRegion::Op, GrAA);
|
D | GrClipStack.h | 37 GrAA fAA; 60 void clipRect(const SkMatrix& ctm, const SkRect& rect, GrAA aa, SkClipOp op) { in clipRect() 63 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, GrAA aa, SkClipOp op) { in clipRRect() 66 void clipPath(const SkMatrix& ctm, const SkPath& path, GrAA aa, SkClipOp op) { in clipPath() 77 GrClip::PreClipResult preApply(const SkRect& drawBounds, GrAA aa) const override; 103 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op); 118 GrAA aa() const { return fAA; } in aa()
|
D | SkGpuDevice.cpp | 261 fClip.clipPath(this->localToDevice(), path, GrAA(aa), op); 268 GrAA aa = GrAA(fSurfaceDrawContext->alwaysAntialias()); 300 if (e.fAA == GrAA::kYes) { 358 GrAA aa = fSurfaceDrawContext->chooseAA(paint); 382 if (!isHairline || paint.getPathEffect() || paint.getMaskFilter() || aa == GrAA::kYes) { 465 fSurfaceDrawContext->fillQuadWithEdgeAA(this->clip(), std::move(grPaint), GrAA::kYes, grAA, 469 fSurfaceDrawContext->fillRectWithEdgeAA(this->clip(), std::move(grPaint), GrAA::kYes, grAA, 512 const SkRRect& rrect, GrAA aa, 516 auto edgeType = (aa == GrAA::kYes) ? GrClipEdgeType::kInverseFillAA 772 GrAA aa = fSurfaceDrawContext->chooseAA(paint); [all …]
|
D | GrFixedClip.cpp | 17 GrClip::PreClipResult GrFixedClip::preApply(const SkRect& drawBounds, GrAA aa) const { in preApply() 32 return {SkRect::Make(fScissorState.rect()), GrAA::kNo}; in preApply()
|
D | GrClipStack.cpp | 176 static GrClipEdgeType get_clip_edge_type(SkClipOp op, GrAA aa) { in get_clip_edge_type() 178 return aa == GrAA::kYes ? GrClipEdgeType::kFillAA : GrClipEdgeType::kFillBW; in get_clip_edge_type() 180 return aa == GrAA::kYes ? GrClipEdgeType::kInverseFillAA : GrClipEdgeType::kInverseFillBW; in get_clip_edge_type() 412 Draw(const SkRect& drawBounds, GrAA aa) in Draw() 435 GrAA aa() const { return fAA; } in aa() 440 GrAA fAA; 447 GrAA aa, SkClipOp op) in RawElement() 476 SkRect queryBounds = d.aa() == GrAA::kYes ? d.bounds() : SkRect::Make(d.outerBounds()); in contains() 552 fAA = GrAA::kYes; in simplify() 567 if (fAA == GrAA::kNo && outer.width() >= 1.f && outer.height() >= 1.f) { in simplify() [all …]
|
D | GrSoftwarePathRenderer.cpp | 102 surfaceDrawContext->stencilRect(clip, &userStencilSettings, std::move(paint), GrAA::kNo, in DrawNonAARect() 203 const GrStyledShape& shape, GrAA aa) in SoftwarePathData() 212 GrAA getAA() const { return fAA; } in getAA() 218 GrAA fAA; 328 GrAA aa = GrAA(GrAAType::kCoverage == args.fAAType); in onDrawPath()
|
/external/skqp/src/gpu/ |
D | GrRenderTargetContext.h | 99 GrAA, 115 GrAA, 125 GrAA, 145 void drawQuadSet(const GrClip& clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, 186 GrAA, 216 GrAA, 232 GrAA, 247 GrAA, 301 GrAA aa, 318 GrAA, [all …]
|
D | GrReducedClip.h | 127 static GrClipEdgeType GetClipEdgeType(Invert, GrAA); 128 ClipResult addAnalyticFP(const SkRect& deviceSpaceRect, Invert, GrAA); 129 ClipResult addAnalyticFP(const SkRRect& deviceSpaceRRect, Invert, GrAA); 130 ClipResult addAnalyticFP(const SkPath& deviceSpacePath, Invert, GrAA);
|
D | GrReducedClip.cpp | 120 ClipResult::kNotClipped == this->addAnalyticFP(fAAClipRect, Invert::kNo, GrAA::kYes)) { in GrReducedClip() 520 GrAA(element->isAA())); in clipInsideElement() 524 Invert(element->isInverseFilled()), GrAA(element->isAA())); in clipInsideElement() 547 GrAA(element->isAA())); in clipOutsideElement() 553 GrAA(element->isAA())); in clipOutsideElement() 591 Invert(!element->isInverseFilled()), GrAA(element->isAA())); in clipOutsideElement() 610 GrClipEdgeType GrReducedClip::GetClipEdgeType(Invert invert, GrAA aa) { in GetClipEdgeType() 612 return (GrAA::kYes == aa) ? GrClipEdgeType::kFillAA : GrClipEdgeType::kFillBW; in GetClipEdgeType() 614 return (GrAA::kYes == aa) ? GrClipEdgeType::kInverseFillAA : GrClipEdgeType::kInverseFillBW; in GetClipEdgeType() 619 Invert invert, GrAA aa) { in addAnalyticFP() [all …]
|
D | SkGpuDevice_drawTexture.cpp | 101 const SkRect* dst, GrAA aa, SkCanvas::SrcRectConstraint constraint, in draw_texture() 137 GrQuadAAFlags aaFlags = aa == GrAA::kYes ? GrQuadAAFlags::kAll : GrQuadAAFlags::kNone; in draw_texture() 149 GrAA aa = GrAA(paint.isAntiAlias()); in drawPinnedTextureProxy() 168 GrAA aa = GrAA(paint.isAntiAlias()); in drawTextureProducer() 307 GrAA aa = GrAA(paint.isAntiAlias()); in drawTextureProducerImpl()
|
D | GrSWMaskHelper.cpp | 37 void GrSWMaskHelper::drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op op, GrAA aa, in drawRect() 41 paint.setAntiAlias(GrAA::kYes == aa); in drawRect() 55 GrAA aa, uint8_t alpha) { in drawShape() 59 paint.setAntiAlias(GrAA::kYes == aa); in drawShape()
|
D | GrRenderTargetContext.cpp | 117 GrAAType GrChooseAAType(GrAA aa, GrFSAAType fsaaType, GrAllowMixedSamples allowMixedSamples, in GrChooseAAType() 119 if (GrAA::kNo == aa) { in GrChooseAAType() 458 GrAA aa = GrAA::kNo; in drawPaint() 544 bool GrRenderTargetContext::drawFilledRectAsClear(const GrClip& clip, GrPaint&& paint, GrAA aa, in drawFilledRectAsClear() 572 GrAA clipAA; in drawFilledRectAsClear() 583 clipAA = GrAA::kNo; in drawFilledRectAsClear() 640 if (clipAA == GrAA::kYes) { in drawFilledRectAsClear() 641 aa = GrAA::kYes; in drawFilledRectAsClear() 652 GrAA aa, in drawFilledRect() 678 GrAA aa, in drawRect() [all …]
|
D | GrSWMaskHelper.h | 48 void drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha); 51 void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
|
D | GrFixedClip.cpp | 32 bool GrFixedClip::isRRect(const SkRect& rtBounds, SkRRect* rr, GrAA* aa) const { in isRRect() 42 *aa = GrAA::kNo; in isRRect()
|
D | GrSoftwarePathRenderer.cpp | 203 GrAA aa) in SoftwarePathData() 212 GrAA getAA() const { return fAA; } in getAA() 218 GrAA fAA; 332 GrAA aa = GrAAType::kCoverage == args.fAAType ? GrAA::kYes : GrAA::kNo; in onDrawPath()
|