Searched refs:queryBounds (Results 1 – 5 of 5) sorted by relevance
/third_party/flutter/skia/src/gpu/ |
D | GrClip.h | 74 constexpr static bool IsInsideClip(const TRect& innerClipBounds, const SkRect& queryBounds) { in IsInsideClip() argument 77 innerClipBounds.fLeft < queryBounds.fLeft + kBoundsTolerance && in IsInsideClip() 78 innerClipBounds.fTop < queryBounds.fTop + kBoundsTolerance && in IsInsideClip() 79 innerClipBounds.fRight > queryBounds.fRight - kBoundsTolerance && in IsInsideClip() 80 innerClipBounds.fBottom > queryBounds.fBottom - kBoundsTolerance; in IsInsideClip() 90 constexpr static bool IsOutsideClip(const TRect& outerClipBounds, const SkRect& queryBounds) { in IsOutsideClip() argument 97 outerClipBounds.fLeft >= queryBounds.fRight - kBoundsTolerance || in IsOutsideClip() 98 outerClipBounds.fTop >= queryBounds.fBottom - kBoundsTolerance || in IsOutsideClip() 99 outerClipBounds.fRight <= queryBounds.fLeft + kBoundsTolerance || in IsOutsideClip() 100 outerClipBounds.fBottom <= queryBounds.fTop + kBoundsTolerance; in IsOutsideClip()
|
D | GrReducedClip.cpp | 36 GrReducedClip::GrReducedClip(const SkClipStack& stack, const SkRect& queryBounds, in GrReducedClip() argument 43 SkASSERT(!queryBounds.isEmpty()); in GrReducedClip() 59 if (GrClip::IsOutsideClip(stackBounds, queryBounds)) { in GrReducedClip() 70 if (GrClip::IsInsideClip(stackBounds, queryBounds)) { in GrReducedClip() 86 SkAssertResult(tightBounds.intersect(stackBounds, queryBounds)); in GrReducedClip() 100 SkRect tighterQuery = queryBounds; in GrReducedClip() 133 void GrReducedClip::walkStack(const SkClipStack& stack, const SkRect& queryBounds) { in walkStack() argument 152 SkRect relaxedQueryBounds = queryBounds.makeInset(GrClip::kBoundsTolerance, in walkStack() 155 relaxedQueryBounds = queryBounds; in walkStack() 185 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() [all …]
|
D | GrReducedClip.h | 29 GrReducedClip(const SkClipStack&, const SkRect& queryBounds, const GrCaps* caps, 103 void walkStack(const SkClipStack&, const SkRect& queryBounds);
|
/third_party/flutter/skia/tests/ |
D | ClipStackTest.cpp | 1054 SkRect queryBounds = kBounds; in test_reduced_clip_stack() local 1055 queryBounds.outset(kBounds.width() / 2, kBounds.height() / 2); in test_reduced_clip_stack() 1056 const GrReducedClip* reduced = new (storage.get()) GrReducedClip(stack, queryBounds, caps); in test_reduced_clip_stack() 1254 SkRect queryBounds; in test_aa_query() local 1255 queryXform.mapRect(&queryBounds, preXformQuery); in test_aa_query() 1256 const GrReducedClip reduced(stack, queryBounds, caps); in test_aa_query() 1274 !reduced.hasScissor() || GrClip::IsInsideClip(reduced.scissor(), queryBounds), in test_aa_query() 1295 SkIRect expectedClipIBounds = GrClip::GetPixelIBounds(queryBounds); in test_aa_query() 1417 for (SkRect queryBounds : {SkRect::MakeXYWH(53, 60, GrClip::kBoundsTolerance, 1000), in test_tiny_query_bounds_assertion_bug() 1421 const GrReducedClip reduced(stack, queryBounds, caps); in test_tiny_query_bounds_assertion_bug()
|
/third_party/skia/src/gpu/v1/ |
D | ClipStack.cpp | 468 SkRect queryBounds = d.aa() == GrAA::kYes ? d.bounds() : SkRect::Make(d.outerBounds()); in contains() local 470 queryBounds, SkMatrix::I(), /* mixed-aa */ false); in contains() 479 SkRect queryBounds = SkRect::Make(s.outerBounds()); in contains() local 481 queryBounds, SkMatrix::I(), /* mixed-aa */ false); in contains()
|