Home
last modified time | relevance | path

Searched refs:clipDevRect (Results 1 – 7 of 7) sorted by relevance

/external/skia/src/gpu/geometry/
DGrQuadUtils.cpp91 static bool crop_rect_edge(const SkRect& clipDevRect, int v0, int v1, int v2, int v3, in crop_rect_edge() argument
100 if (x[v0] < clipDevRect.fLeft && x[v2] >= clipDevRect.fLeft) { in crop_rect_edge()
103 float alpha = (x[v2] - clipDevRect.fLeft) / (x[v2] - x[v0]); in crop_rect_edge()
106 x[v0] = clipDevRect.fLeft; in crop_rect_edge()
107 x[v1] = clipDevRect.fLeft; in crop_rect_edge()
109 } else if (x[v0] > clipDevRect.fRight && x[v2] <= clipDevRect.fRight) { in crop_rect_edge()
112 float alpha = (clipDevRect.fRight - x[v2]) / (x[v0] - x[v2]); in crop_rect_edge()
115 x[v0] = clipDevRect.fRight; in crop_rect_edge()
116 x[v1] = clipDevRect.fRight; in crop_rect_edge()
122 if (y[v0] < clipDevRect.fTop && y[v2] >= clipDevRect.fTop) { in crop_rect_edge()
[all …]
/external/skqp/src/core/
DSkClipStackDevice.cpp51 fClipStack.clipDevRect(ptr->getBounds(), op); in onClipRegion()
61 fClipStack.clipDevRect(rect, SkClipOp::kIntersect); in onSetDeviceClipRestriction()
DSkClipStack.h346 void clipDevRect(const SkIRect& ir, SkClipOp op) { in clipDevRect() function
/external/skia/src/core/
DSkClipStackDevice.cpp68 fClipStack.clipDevRect(rect, SkClipOp::kIntersect); in onSetDeviceClipRestriction()
DSkClipStack.h361 void clipDevRect(const SkIRect& ir, SkClipOp op) { in clipDevRect() function
/external/skia/tests/
DClipStackTest.cpp1110 reducedStack.clipDevRect(scissor, kIntersect_SkClipOp); in test_reduced_clip_stack()
1111 stack.clipDevRect(scissor, kIntersect_SkClipOp); in test_reduced_clip_stack()
1253 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 100, 100), kReplace_SkClipOp); in test_reduced_clip_stack_no_aa_crash()
1254 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 50, 50), kReplace_SkClipOp); in test_reduced_clip_stack_no_aa_crash()
1503 stack.clipDevRect(gRects[i], kIntersect_SkClipOp); in DEF_TEST()
/external/skqp/tests/
DClipStackTest.cpp1082 reducedStack.clipDevRect(scissor, kIntersect_SkClipOp); in test_reduced_clip_stack()
1083 stack.clipDevRect(scissor, kIntersect_SkClipOp); in test_reduced_clip_stack()
1226 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 100, 100), kReplace_SkClipOp); in test_reduced_clip_stack_no_aa_crash()
1227 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 50, 50), kReplace_SkClipOp); in test_reduced_clip_stack_no_aa_crash()
1441 stack.clipDevRect(gRects[i], kIntersect_SkClipOp); in DEF_TEST()