Home
last modified time | relevance | path

Searched refs:GrClip (Results 1 – 25 of 72) sorted by relevance

123

/external/skqp/src/gpu/
DGrRenderTargetContext.h25 class GrClip; variable
61 virtual void drawGlyphRunList(const GrClip&, const SkMatrix& viewMatrix, const SkGlyphRunList&);
86 void drawPaint(const GrClip&, GrPaint&&, const SkMatrix& viewMatrix);
97 void drawRect(const GrClip&,
113 void fillRectToRect(const GrClip&,
123 void fillRectWithLocalMatrix(const GrClip& clip,
133 void fillRectWithEdgeAA(const GrClip& clip, GrPaint&& paint, GrQuadAAFlags edgeAA,
145 void drawQuadSet(const GrClip& clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix,
154 void drawTexture(const GrClip& clip, sk_sp<GrTextureProxy>, GrSamplerState::Filter,
171 void drawTextureSet(const GrClip&, const TextureSetEntry[], int cnt, GrSamplerState::Filter,
[all …]
DGrSoftwarePathRenderer.h28 const GrClip& clip,
39 const GrClip& clip,
46 const GrClip& clip,
58 const GrClip& clip,
DGrReducedClip.cpp59 if (GrClip::IsOutsideClip(stackBounds, queryBounds)) { in GrReducedClip()
70 if (GrClip::IsInsideClip(stackBounds, queryBounds)) { in GrReducedClip()
77 if (!iter.prev()->isAA() || GrClip::IsPixelAligned(stackBounds)) { in GrReducedClip()
87 fScissor = GrClip::GetPixelIBounds(tightBounds); in GrReducedClip()
104 SkAssertResult(tighterQuery.intersect(GrClip::GetPixelBounds(stackBounds))); in GrReducedClip()
107 fScissor = GrClip::GetPixelIBounds(tighterQuery); in GrReducedClip()
152 SkRect relaxedQueryBounds = queryBounds.makeInset(GrClip::kBoundsTolerance, in walkStack()
153 GrClip::kBoundsTolerance); in walkStack()
185 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack()
199 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack()
[all …]
DGrBlurUtils.h13 class GrClip; variable
37 const GrClip&,
48 const GrClip&,
DGrRenderTargetContext.cpp69 void addDrawOp(const GrClip& clip, std::unique_ptr<GrAtlasTextOp> op) override { in addDrawOp()
73 void drawShape(const GrClip& clip, const SkPaint& paint, in drawShape()
237 const GrClip& clip, const SkMatrix& viewMatrix, in drawGlyphRunList()
438 void GrRenderTargetContext::drawPaint(const GrClip& clip, in drawPaint()
501 static bool crop_filled_rect(int width, int height, const GrClip& clip, in crop_filled_rect()
544 bool GrRenderTargetContext::drawFilledRectAsClear(const GrClip& clip, GrPaint&& paint, GrAA aa, in drawFilledRectAsClear()
624 } else if (GrClip::IsPixelAligned(combinedRect) && in drawFilledRectAsClear()
650 void GrRenderTargetContext::drawFilledRect(const GrClip& clip, in drawFilledRect()
676 void GrRenderTargetContext::drawRect(const GrClip& clip, in drawRect()
749 void GrRenderTargetContext::drawQuadSet(const GrClip& clip, GrPaint&& paint, GrAA aa, in drawQuadSet()
[all …]
DGrClip.h22 class GrClip {
41 virtual ~GrClip() {} in ~GrClip()
139 class GrHardClip : public GrClip {
DGrBlurUtils.cpp37 const GrClip& clip, in draw_mask()
63 const GrClip& clipData, in sw_draw_with_mask_filter()
234 const GrClip& clip, in get_shape_and_clip_bounds()
254 const GrClip& clip, in draw_shape_with_mask_filter()
435 const GrClip& clip, in drawShapeWithMaskFilter()
446 const GrClip& clip, in drawShapeWithMaskFilter()
DGrPathRenderer.h16 class GrClip; variable
113 const GrClip* fClip;
/external/skia/src/gpu/
DGrSurfaceDrawContext.h27 class GrClip; variable
152 void drawPaint(const GrClip*, GrPaint&&, const SkMatrix& viewMatrix);
163 void drawRect(const GrClip*,
179 void fillRectToRect(const GrClip*,
189 void fillPixelsWithLocalMatrix(const GrClip* clip, 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,
257 void drawTexture(const GrClip*,
278 void drawTextureQuad(const GrClip* clip, in drawTextureQuad()
[all …]
DGrReducedClip.cpp59 if (GrClip::IsOutsideClip(stackBounds, queryBounds)) { in GrReducedClip()
70 if (GrClip::IsInsideClip(stackBounds, queryBounds)) { in GrReducedClip()
77 if (!iter.prev()->isAA() || GrClip::IsPixelAligned(stackBounds)) { in GrReducedClip()
87 fScissor = GrClip::GetPixelIBounds(tightBounds); in GrReducedClip()
104 SkAssertResult(tighterQuery.intersect(GrClip::GetPixelBounds(stackBounds))); in GrReducedClip()
107 fScissor = GrClip::GetPixelIBounds(tighterQuery); in GrReducedClip()
159 SkRect relaxedQueryBounds = queryBounds.makeInset(GrClip::kBoundsTolerance, in walkStack()
160 GrClip::kBoundsTolerance); in walkStack()
204 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack()
218 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack()
[all …]
DGrSoftwarePathRenderer.h30 const GrClip* clip,
41 const GrClip* clip,
48 const GrClip* clip,
60 const GrClip* clip,
DGrSurfaceDrawContext.cpp354 void GrSurfaceDrawContext::drawGlyphRunListNoCache(const GrClip* clip, in drawGlyphRunListNoCache()
377 void GrSurfaceDrawContext::drawGlyphRunListWithCache(const GrClip* clip, in drawGlyphRunListWithCache()
426 void GrSurfaceDrawContext::drawGlyphRunList(const GrClip* clip, in drawGlyphRunList()
452 void GrSurfaceDrawContext::drawPaint(const GrClip* clip, in drawPaint()
489 const GrClip* clip, const GrUserStencilSettings* stencilSettings, GrAA* aa, DrawQuad* quad, in attemptQuadOptimization()
516 GrClip::IsOutsideClip(rtRect, drawBounds)) { in attemptQuadOptimization()
529 GrClip::PreClipResult result = clip ? clip->preApply(drawBounds, *aa) in attemptQuadOptimization()
530 : GrClip::PreClipResult(GrClip::Effect::kUnclipped); in attemptQuadOptimization()
532 case GrClip::Effect::kClippedOut: in attemptQuadOptimization()
534 case GrClip::Effect::kUnclipped: in attemptQuadOptimization()
[all …]
DGrBlurUtils.h13 class GrClip; variable
38 const GrClip*,
49 const GrClip*,
DGrFixedClip.cpp17 GrClip::PreClipResult GrFixedClip::preApply(const SkRect& drawBounds, GrAA aa) const { in preApply()
35 GrClip::Effect GrFixedClip::apply(GrAppliedHardClip* out, SkIRect* bounds) const { in apply()
DGrClipStack.cpp413 : fBounds(GrClip::GetPixelIBounds(drawBounds, aa, BoundsType::kExterior)) in Draw()
416 fOriginalBounds = drawBounds.makeInset(GrClip::kBoundsTolerance, GrClip::kBoundsTolerance); in Draw()
557 fOuterBounds = GrClip::GetPixelIBounds(outer, fAA, BoundsType::kExterior); in simplify()
574 fInnerBounds = GrClip::GetPixelIBounds(outer, fAA, BoundsType::kInterior); in simplify()
587 fInnerBounds = GrClip::GetPixelIBounds(inner, fAA, BoundsType::kInterior); in simplify()
620 if (GrClip::IsPixelAligned(fShape.rect())) { in combine()
624 } else if (!GrClip::IsPixelAligned(other.fShape.rect())) { in combine()
1210 GrClip::PreClipResult GrClipStack::preApply(const SkRect& bounds, GrAA aa) const { in preApply()
1213 return GrClip::Effect::kClippedOut; in preApply()
1219 return GrClip::Effect::kClippedOut; in preApply()
[all …]
DGrClip.h20 class GrClip {
47 virtual ~GrClip() {} in ~GrClip()
236 class GrHardClip : public GrClip {
DGrPathRenderer.h16 class GrClip; variable
120 const GrClip* fClip;
DGrBlurUtils.cpp43 const GrClip* clip, in draw_mask()
257 const GrClip* clip, in get_shape_and_clip_bounds()
459 const GrClip* clip, in draw_shape_with_mask_filter()
550 const GrClip* clip, in drawShapeWithMaskFilter()
561 const GrClip* clip, in drawShapeWithMaskFilter()
/external/skqp/src/gpu/text/
DGrTextTarget.h15 class GrClip; variable
32 virtual void addDrawOp(const GrClip&, std::unique_ptr<GrAtlasTextOp> op) = 0;
34 virtual void drawShape(const GrClip&, const SkPaint&,
/external/skia/src/gpu/text/
DGrTextBlob.h65 virtual std::tuple<const GrClip*, GrOp::Owner>
67 const GrClip* clip,
102 virtual void draw(const GrClip* clip,
293 const GrClip* clip,
312 const GrClip* const fClip;
DGrTextBlob.cpp173 void draw(const GrClip* clip,
212 void PathSubRun::draw(const GrClip* clip, in draw()
450 void draw(const GrClip* clip,
464 std::tuple<const GrClip*, GrOp::Owner>
465 makeAtlasTextOp(const GrClip* clip,
554 void DirectMaskSubRun::draw(const GrClip* clip, const SkMatrixProvider& viewMatrix, in draw()
599 calculate_clip(const GrClip* clip, SkRect deviceBounds, SkRect glyphBounds) { in calculate_clip()
604 case GrClip::Effect::kClippedOut: in calculate_clip()
606 case GrClip::Effect::kUnclipped: in calculate_clip()
608 case GrClip::Effect::kClipped: { in calculate_clip()
[all …]
/external/skia/tests/
DGrClipStackTest.cpp250 elementBounds = GrClip::GetPixelIBounds(e.fLocalToDevice.mapRect(e.fShape.bounds()), in getOptimalBounds()
251 e.fAA, GrClip::BoundsType::kExterior); in getOptimalBounds()
256 elementBounds = GrClip::GetPixelIBounds(e.fShape.rect(), e.fAA, in getOptimalBounds()
257 GrClip::BoundsType::kInterior); in getOptimalBounds()
259 elementBounds = GrClip::GetPixelIBounds(SkRRectPriv::InnerBounds(e.fShape.rrect()), in getOptimalBounds()
260 e.fAA, GrClip::BoundsType::kInterior); in getOptimalBounds()
1657 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1660 REPORTER_ASSERT(r, effect == GrClip::Effect::kClipped); in DEF_TEST()
1716 GrClip::PreClipResult result = cs.preApply({-10.f, -10.f, -1.f, -1.f}, GrAA::kYes); in DEF_TEST()
1717 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
[all …]
/external/skqp/src/core/
DSkMaskFilterBase.h19 class GrClip; variable
114 const GrClip&,
/external/skia/src/core/
DSkMaskFilterBase.h23 class GrClip; variable
119 const GrClip*,
/external/skqp/src/atlastext/
DSkAtlasTextTarget.cpp99 void addDrawOp(const GrClip&, std::unique_ptr<GrAtlasTextOp> op) override;
101 void drawShape(const GrClip&, const SkPaint&, const SkMatrix& viewMatrix, in drawShape() argument
170 void SkInternalAtlasTextTarget::addDrawOp(const GrClip& clip, std::unique_ptr<GrAtlasTextOp> op) { in addDrawOp()

123