Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/gpu/geometry/
DGrQuadUtils.cpp40 static bool crop_rect_edge(const SkRect& clipDevRect, int v0, int v1, int v2, int v3, in crop_rect_edge() argument
49 if (x[v0] < clipDevRect.fLeft && x[v2] >= clipDevRect.fLeft) { in crop_rect_edge()
52 float alpha = (x[v2] - clipDevRect.fLeft) / (x[v2] - x[v0]); in crop_rect_edge()
55 x[v0] = clipDevRect.fLeft; in crop_rect_edge()
56 x[v1] = clipDevRect.fLeft; in crop_rect_edge()
58 } else if (x[v0] > clipDevRect.fRight && x[v2] <= clipDevRect.fRight) { in crop_rect_edge()
61 float alpha = (clipDevRect.fRight - x[v2]) / (x[v0] - x[v2]); in crop_rect_edge()
64 x[v0] = clipDevRect.fRight; in crop_rect_edge()
65 x[v1] = clipDevRect.fRight; in crop_rect_edge()
71 if (y[v0] < clipDevRect.fTop && y[v2] >= clipDevRect.fTop) { in crop_rect_edge()
[all …]
/third_party/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 …]
/third_party/flutter/skia/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
/third_party/flutter/skia/tests/
DClipStackTest.cpp1084 reducedStack.clipDevRect(scissor, kIntersect_SkClipOp); in test_reduced_clip_stack()
1085 stack.clipDevRect(scissor, kIntersect_SkClipOp); in test_reduced_clip_stack()
1228 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 100, 100), kReplace_SkClipOp); in test_reduced_clip_stack_no_aa_crash()
1229 stack.clipDevRect(SkIRect::MakeXYWH(0, 0, 50, 50), kReplace_SkClipOp); in test_reduced_clip_stack_no_aa_crash()
1478 stack.clipDevRect(gRects[i], kIntersect_SkClipOp); in DEF_TEST()
/third_party/skia/src/core/
DSkClipStack.h366 void clipDevRect(const SkIRect& ir, SkClipOp op) { in clipDevRect() function
/third_party/skia/tests/
DClipStackTest.cpp865 stack.clipDevRect(gRects[i], SkClipOp::kIntersect); in DEF_TEST()
/third_party/flutter/skia/src/gpu/
DSkGpuDevice.cpp1107 clip.clipDevRect(SkIRect::MakeXYWH(left, top, subset.width(), subset.height()), in drawSpecial()