Searched defs:queryBounds (Results 1 - 3 of 3) sorted by relevance
/external/skia/src/gpu/ |
H A D | GrClip.h | 73 * @param queryBounds device-space bounds of the query region. 76 constexpr static bool IsInsideClip(const TRect& innerClipBounds, const SkRect& queryBounds) { argument 79 innerClipBounds.fLeft < queryBounds.fLeft + kBoundsTolerance && 80 innerClipBounds.fTop < queryBounds.fTop + kBoundsTolerance && 81 innerClipBounds.fRight > queryBounds.fRight - kBoundsTolerance && 82 innerClipBounds.fBottom > queryBounds.fBottom - kBoundsTolerance; 89 * @param queryBounds device-space bounds of the query region. 92 constexpr static bool IsOutsideClip(const TRect& outerClipBounds, const SkRect& queryBounds) { argument 99 outerClipBounds.fLeft >= queryBounds.fRight - kBoundsTolerance || 100 outerClipBounds.fTop >= queryBounds [all...] |
H A D | GrReducedClip.cpp | 33 GrReducedClip::GrReducedClip(const SkClipStack& stack, const SkRect& queryBounds, argument 35 SkASSERT(!queryBounds.isEmpty()); 48 if (GrClip::IsOutsideClip(stackBounds, queryBounds)) { 67 if (GrClip::IsInsideClip(stackBounds, queryBounds)) { 73 SkAssertResult(tightBounds.intersect(stackBounds, queryBounds)); 90 SkRect tighterQuery = queryBounds; 113 void GrReducedClip::walkStack(const SkClipStack& stack, const SkRect& queryBounds, argument 133 SkRect relaxedQueryBounds = queryBounds.makeInset(GrClip::kBoundsTolerance, 163 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { 171 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { [all...] |
/external/skia/tests/ |
H A D | ClipStackTest.cpp | 1022 SkRect queryBounds = kBounds; local 1023 queryBounds.outset(kBounds.width() / 2, kBounds.height() / 2); 1024 const GrReducedClip* reduced = new (storage.get()) GrReducedClip(stack, queryBounds); 1217 SkRect queryBounds; local 1218 queryXform.mapRect(&queryBounds, preXformQuery); 1219 const GrReducedClip reduced(stack, queryBounds); 1237 GrClip::IsInsideClip(reduced.ibounds(), queryBounds), 1259 SkIRect expectedClipIBounds = GrClip::GetPixelIBounds(queryBounds); 1378 for (SkRect queryBounds : {SkRect::MakeXYWH(53, 60, GrClip::kBoundsTolerance, 1000), 1382 const GrReducedClip reduced(stack, queryBounds); [all...] |
Completed in 156 milliseconds