/external/skia/samplecode/ |
D | SampleShadowReference.cpp | 131 SkRect clipRect = SkRect::MakeXYWH(45, 75, 122, 250); in onDrawContent() local 136 canvas->clipRect(clipRect); in onDrawContent() 144 clipRect.offset(clipDelta); in onDrawContent() 147 canvas->clipRect(clipRect); in onDrawContent() 155 clipRect.offset(clipDelta); in onDrawContent() 158 canvas->clipRect(clipRect); in onDrawContent() 166 clipRect.offset(clipDelta); in onDrawContent() 169 canvas->clipRect(clipRect); in onDrawContent() 177 clipRect.offset(clipDelta); in onDrawContent() 180 canvas->clipRect(clipRect); in onDrawContent() [all …]
|
D | SampleManyRects.cpp | 54 SkRect clipRect = rect; in onDrawContent() local 57 clipRect.outset(10, 10); in onDrawContent() 58 canvas->clipRect(clipRect); in onDrawContent()
|
/external/skqp/samplecode/ |
D | SampleShadowReference.cpp | 131 SkRect clipRect = SkRect::MakeXYWH(45, 75, 122, 250); in onDrawContent() local 136 canvas->clipRect(clipRect); in onDrawContent() 144 clipRect.offset(clipDelta); in onDrawContent() 147 canvas->clipRect(clipRect); in onDrawContent() 155 clipRect.offset(clipDelta); in onDrawContent() 158 canvas->clipRect(clipRect); in onDrawContent() 166 clipRect.offset(clipDelta); in onDrawContent() 169 canvas->clipRect(clipRect); in onDrawContent() 177 clipRect.offset(clipDelta); in onDrawContent() 180 canvas->clipRect(clipRect); in onDrawContent() [all …]
|
D | SampleManyRects.cpp | 54 SkRect clipRect = rect; in onDrawContent() local 57 clipRect.outset(10, 10); in onDrawContent() 58 canvas->clipRect(clipRect); in onDrawContent()
|
/external/skia/tests/ |
D | ClipCubicTest.cpp | 89 SkIRect clipRect; in DEF_TEST() local 94 clipRect.set(-2, -2, 6, 14); in DEF_TEST() 95 clipper.setClip(clipRect); in DEF_TEST() 102 clipRect.set(-2, 0, 6, 14); in DEF_TEST() 103 clipper.setClip(clipRect); in DEF_TEST() 110 clipRect.set(-2, -2, 6, 12); in DEF_TEST() 111 clipper.setClip(clipRect); in DEF_TEST() 118 clipRect.set(-2, 14, 6, 20); in DEF_TEST() 119 clipper.setClip(clipRect); in DEF_TEST() 124 clipRect.set(-2, 1, 6, 14); in DEF_TEST() [all …]
|
D | CanvasStateTest.cpp | 174 SkIRect clipRect = layerRect; in DEF_TEST() local 175 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST() 176 clipRect.outset(SPACER, SPACER); in DEF_TEST() 178 SkIRect regionBounds = clipRect; in DEF_TEST() 179 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST() 246 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 247 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 253 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 254 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 305 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
|
D | ClipStackTest.cpp | 69 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 71 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 77 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 92 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 101 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 119 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 170 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators() 299 stack.clipRect(rectA, SkMatrix::I(), kIntersect_SkClipOp, false); in test_bounds() 300 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds() 379 stack.clipRect(rectA, SkMatrix::I(), kUnion_SkClipOp, false); in test_isWideOpen() [all …]
|
D | RecordPatternTest.cpp | 33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 73 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 88 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 94 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 95 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST() 113 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 123 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 132 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 133 recorder.clipRect(SkRect::MakeWH(100, 400)); in DEF_TEST()
|
D | ClipBoundsTest.cpp | 26 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 27 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 32 stack.clipRect(clipRect, SkMatrix::I(), kReplace_SkClipOp, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RecordingXfermodeTest.cpp | 40 void draw(SkCanvas* canvas, const SkRect& clipRect, SkBlendMode mode) const { in draw() argument 53 canvas->clipRect(clipRect); in draw() 89 canvas.clipRect(intoClip); in recordAndReplay() 122 replayCanvas.clipRect(intoClip); in recordAndReplay()
|
/external/skqp/tests/ |
D | ClipCubicTest.cpp | 89 SkIRect clipRect; in DEF_TEST() local 94 clipRect.set(-2, -2, 6, 14); in DEF_TEST() 95 clipper.setClip(clipRect); in DEF_TEST() 102 clipRect.set(-2, 0, 6, 14); in DEF_TEST() 103 clipper.setClip(clipRect); in DEF_TEST() 110 clipRect.set(-2, -2, 6, 12); in DEF_TEST() 111 clipper.setClip(clipRect); in DEF_TEST() 118 clipRect.set(-2, 14, 6, 20); in DEF_TEST() 119 clipper.setClip(clipRect); in DEF_TEST() 124 clipRect.set(-2, 1, 6, 14); in DEF_TEST() [all …]
|
D | CanvasStateTest.cpp | 174 SkIRect clipRect = layerRect; in DEF_TEST() local 175 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST() 176 clipRect.outset(SPACER, SPACER); in DEF_TEST() 178 SkIRect regionBounds = clipRect; in DEF_TEST() 179 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST() 246 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 247 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 253 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 254 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 305 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
|
D | ClipStackTest.cpp | 69 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 71 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 77 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 92 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 101 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 119 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 170 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators() 299 stack.clipRect(rectA, SkMatrix::I(), kIntersect_SkClipOp, false); in test_bounds() 300 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds() 379 stack.clipRect(rectA, SkMatrix::I(), kUnion_SkClipOp, false); in test_isWideOpen() [all …]
|
D | RecordPatternTest.cpp | 33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 73 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 88 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 94 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 95 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST() 113 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 123 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 132 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 133 recorder.clipRect(SkRect::MakeWH(100, 400)); in DEF_TEST()
|
D | ClipBoundsTest.cpp | 26 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 27 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 32 stack.clipRect(clipRect, SkMatrix::I(), kReplace_SkClipOp, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RecordingXfermodeTest.cpp | 40 void draw(SkCanvas* canvas, const SkRect& clipRect, SkBlendMode mode) const { in draw() argument 53 canvas->clipRect(clipRect); in draw() 89 canvas.clipRect(intoClip); in recordAndReplay() 122 replayCanvas.clipRect(intoClip); in recordAndReplay()
|
/external/skqp/gm/ |
D | imagesource.cpp | 17 const SkRect& clipRect, in fill_rect_filtered() argument 22 canvas->clipRect(clipRect); in fill_rect_filtered() 48 const SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local 54 fill_rect_filtered(canvas, clipRect, std::move(imageSource)); in onDraw() 61 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRect)); in onDraw() 68 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRectDstRect)); in onDraw() 75 fill_rect_filtered(canvas, clipRect, std::move(imageSourceDstRectOnly)); in onDraw()
|
D | xfermodeimagefilter.cpp | 112 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local 127 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 138 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 162 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 174 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 182 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 195 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 208 canvas->clipRect(SkRect::MakeIWH(bitmap.width(), bitmap.height())); in DrawClippedBitmap() 217 canvas->clipRect(rect); in DrawClippedPaint()
|
D | blurquickreject.cpp | 37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local 65 canvas->drawRect(clipRect, hairlinePaint); in onDraw() 66 canvas->clipRect(clipRect); in onDraw()
|
/external/skia/gm/ |
D | imagesource.cpp | 17 const SkRect& clipRect, in fill_rect_filtered() argument 22 canvas->clipRect(clipRect); in fill_rect_filtered() 48 const SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local 54 fill_rect_filtered(canvas, clipRect, std::move(imageSource)); in onDraw() 61 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRect)); in onDraw() 68 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRectDstRect)); in onDraw() 75 fill_rect_filtered(canvas, clipRect, std::move(imageSourceDstRectOnly)); in onDraw()
|
D | xfermodeimagefilter.cpp | 112 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local 127 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 138 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 162 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 174 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 182 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 195 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 208 canvas->clipRect(SkRect::MakeIWH(bitmap.width(), bitmap.height())); in DrawClippedBitmap() 217 canvas->clipRect(rect); in DrawClippedPaint()
|
D | blurquickreject.cpp | 37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local 65 canvas->drawRect(clipRect, hairlinePaint); in onDraw() 66 canvas->clipRect(clipRect); in onDraw()
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | Device.cpp | 876 …void Device::ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX, bo… in ClipDstRect() argument 878 if(dstRect.x0 < clipRect.x0) in ClipDstRect() 880 …float offset = (static_cast<float>(clipRect.x0 - dstRect.x0) / static_cast<float>(dstRect.width())… in ClipDstRect() 889 dstRect.x0 = clipRect.x0; in ClipDstRect() 891 if(dstRect.x1 > clipRect.x1) in ClipDstRect() 893 …float offset = (static_cast<float>(dstRect.x1 - clipRect.x1) / static_cast<float>(dstRect.width())… in ClipDstRect() 902 dstRect.x1 = clipRect.x1; in ClipDstRect() 904 if(dstRect.y0 < clipRect.y0) in ClipDstRect() 906 …float offset = (static_cast<float>(clipRect.y0 - dstRect.y0) / static_cast<float>(dstRect.height()… in ClipDstRect() 915 dstRect.y0 = clipRect.y0; in ClipDstRect() [all …]
|
/external/skqp/src/core/ |
D | SkScan_Path.cpp | 396 void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitter, in sk_fill_path() argument 400 SkIRect shiftedClip = clipRect; in sk_fill_path() 418 SkIRect rect = clipRect; in sk_fill_path() 465 ib.setBlitter(blitter, clipRect, shiftEdgesUp); in sk_fill_path() 683 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument 686 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges() 690 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges() 694 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges() 701 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument 708 int count = build_tri_edges(edgeStorage, pts, clipRect, list); in sk_fill_triangle() [all …]
|
/external/skia/src/core/ |
D | SkScan_Path.cpp | 396 void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitter, in sk_fill_path() argument 400 SkIRect shiftedClip = clipRect; in sk_fill_path() 418 SkIRect rect = clipRect; in sk_fill_path() 465 ib.setBlitter(blitter, clipRect, shiftEdgesUp); in sk_fill_path() 683 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument 686 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges() 690 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges() 694 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges() 701 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument 708 int count = build_tri_edges(edgeStorage, pts, clipRect, list); in sk_fill_triangle() [all …]
|