/external/skqp/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, 104 void walkStack(const SkClipStack&, const SkRect& queryBounds);
|
/external/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, 104 void walkStack(const SkClipStack&, const SkRect& queryBounds);
|
/external/skqp/tests/ |
D | ClipStackTest.cpp | 1052 SkRect queryBounds = kBounds; in test_reduced_clip_stack() local 1053 queryBounds.outset(kBounds.width() / 2, kBounds.height() / 2); in test_reduced_clip_stack() 1054 const GrReducedClip* reduced = new (storage.get()) GrReducedClip(stack, queryBounds, caps); in test_reduced_clip_stack() 1252 SkRect queryBounds; in test_aa_query() local 1253 queryXform.mapRect(&queryBounds, preXformQuery); in test_aa_query() 1254 const GrReducedClip reduced(stack, queryBounds, caps); in test_aa_query() 1272 !reduced.hasScissor() || GrClip::IsInsideClip(reduced.scissor(), queryBounds), in test_aa_query() 1293 SkIRect expectedClipIBounds = GrClip::GetPixelIBounds(queryBounds); in test_aa_query() 1415 for (SkRect queryBounds : {SkRect::MakeXYWH(53, 60, GrClip::kBoundsTolerance, 1000), in test_tiny_query_bounds_assertion_bug() 1419 const GrReducedClip reduced(stack, queryBounds, caps); in test_tiny_query_bounds_assertion_bug()
|
/external/skia/tests/ |
D | ClipStackTest.cpp | 1052 SkRect queryBounds = kBounds; in test_reduced_clip_stack() local 1053 queryBounds.outset(kBounds.width() / 2, kBounds.height() / 2); in test_reduced_clip_stack() 1054 const GrReducedClip* reduced = new (storage.get()) GrReducedClip(stack, queryBounds, caps); in test_reduced_clip_stack() 1252 SkRect queryBounds; in test_aa_query() local 1253 queryXform.mapRect(&queryBounds, preXformQuery); in test_aa_query() 1254 const GrReducedClip reduced(stack, queryBounds, caps); in test_aa_query() 1272 !reduced.hasScissor() || GrClip::IsInsideClip(reduced.scissor(), queryBounds), in test_aa_query() 1293 SkIRect expectedClipIBounds = GrClip::GetPixelIBounds(queryBounds); in test_aa_query() 1415 for (SkRect queryBounds : {SkRect::MakeXYWH(53, 60, GrClip::kBoundsTolerance, 1000), in test_tiny_query_bounds_assertion_bug() 1419 const GrReducedClip reduced(stack, queryBounds, caps); in test_tiny_query_bounds_assertion_bug()
|