Home
last modified time | relevance | path

Searched refs:clipRect (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/external/skqp/samplecode/
DSampleShadowReference.cpp129 SkRect clipRect = SkRect::MakeXYWH(45, 75, 122, 250); in onDrawContent() local
134 canvas->clipRect(clipRect); in onDrawContent()
142 clipRect.offset(clipDelta); in onDrawContent()
145 canvas->clipRect(clipRect); in onDrawContent()
153 clipRect.offset(clipDelta); in onDrawContent()
156 canvas->clipRect(clipRect); in onDrawContent()
164 clipRect.offset(clipDelta); in onDrawContent()
167 canvas->clipRect(clipRect); in onDrawContent()
175 clipRect.offset(clipDelta); in onDrawContent()
178 canvas->clipRect(clipRect); in onDrawContent()
[all …]
DSampleManyRects.cpp55 SkRect clipRect = rect; in onDrawContent() local
58 clipRect.outset(10, 10); in onDrawContent()
59 canvas->clipRect(clipRect); in onDrawContent()
/external/skia/samplecode/
DSampleShadowReference.cpp132 SkRect clipRect = SkRect::MakeXYWH(45, 75, 122, 250); in onDrawContent() local
137 canvas->clipRect(clipRect); in onDrawContent()
145 clipRect.offset(clipDelta); in onDrawContent()
148 canvas->clipRect(clipRect); in onDrawContent()
156 clipRect.offset(clipDelta); in onDrawContent()
159 canvas->clipRect(clipRect); in onDrawContent()
167 clipRect.offset(clipDelta); in onDrawContent()
170 canvas->clipRect(clipRect); in onDrawContent()
178 clipRect.offset(clipDelta); in onDrawContent()
181 canvas->clipRect(clipRect); in onDrawContent()
[all …]
DSampleManyRects.cpp55 SkRect clipRect = rect; in onDrawContent() local
58 clipRect.outset(10, 10); in onDrawContent()
59 canvas->clipRect(clipRect); in onDrawContent()
/external/skia/tests/
DClipCubicTest.cpp82 SkIRect clipRect; in DEF_TEST() local
87 clipRect.set(-2, -2, 6, 14); in DEF_TEST()
88 clipper.setClip(clipRect); in DEF_TEST()
95 clipRect.set(-2, 0, 6, 14); in DEF_TEST()
96 clipper.setClip(clipRect); in DEF_TEST()
103 clipRect.set(-2, -2, 6, 12); in DEF_TEST()
104 clipper.setClip(clipRect); in DEF_TEST()
111 clipRect.set(-2, 14, 6, 20); in DEF_TEST()
112 clipper.setClip(clipRect); in DEF_TEST()
117 clipRect.set(-2, 1, 6, 14); in DEF_TEST()
[all …]
DCanvasStateTest.cpp165 SkIRect clipRect = layerRect; in DEF_TEST() local
166 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST()
167 clipRect.outset(SPACER, SPACER); in DEF_TEST()
169 SkIRect regionBounds = clipRect; in DEF_TEST()
170 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST()
237 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
238 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
244 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
245 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
326 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
DClipStackTest.cpp47 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
49 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
55 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
70 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
79 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
97 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
148 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators()
277 stack.clipRect(rectA, SkMatrix::I(), kIntersect_SkClipOp, false); in test_bounds()
278 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds()
357 stack.clipRect(rectA, SkMatrix::I(), kUnion_SkClipOp, false); in test_isWideOpen()
[all …]
DRecordPatternTest.cpp33 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()
DClipBoundsTest.cpp23 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
24 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
29 stack.clipRect(clipRect, SkMatrix::I(), kReplace_SkClipOp, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRecordingXfermodeTest.cpp39 void draw(SkCanvas* canvas, const SkRect& clipRect, SkBlendMode mode) const { in draw() argument
52 canvas->clipRect(clipRect); in draw()
88 canvas.clipRect(intoClip); in recordAndReplay()
121 replayCanvas.clipRect(intoClip); in recordAndReplay()
/external/skqp/tests/
DClipCubicTest.cpp82 SkIRect clipRect; in DEF_TEST() local
87 clipRect.set(-2, -2, 6, 14); in DEF_TEST()
88 clipper.setClip(clipRect); in DEF_TEST()
95 clipRect.set(-2, 0, 6, 14); in DEF_TEST()
96 clipper.setClip(clipRect); in DEF_TEST()
103 clipRect.set(-2, -2, 6, 12); in DEF_TEST()
104 clipper.setClip(clipRect); in DEF_TEST()
111 clipRect.set(-2, 14, 6, 20); in DEF_TEST()
112 clipper.setClip(clipRect); in DEF_TEST()
117 clipRect.set(-2, 1, 6, 14); in DEF_TEST()
[all …]
DCanvasStateTest.cpp165 SkIRect clipRect = layerRect; in DEF_TEST() local
166 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST()
167 clipRect.outset(SPACER, SPACER); in DEF_TEST()
169 SkIRect regionBounds = clipRect; in DEF_TEST()
170 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST()
237 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
238 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
244 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
245 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
326 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
DClipStackTest.cpp47 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
49 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
55 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
70 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
79 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
97 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
148 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators()
277 stack.clipRect(rectA, SkMatrix::I(), kIntersect_SkClipOp, false); in test_bounds()
278 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds()
357 stack.clipRect(rectA, SkMatrix::I(), kUnion_SkClipOp, false); in test_isWideOpen()
[all …]
DRecordPatternTest.cpp33 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()
DClipBoundsTest.cpp23 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
24 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
29 stack.clipRect(clipRect, SkMatrix::I(), kReplace_SkClipOp, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRecordingXfermodeTest.cpp39 void draw(SkCanvas* canvas, const SkRect& clipRect, SkBlendMode mode) const { in draw() argument
52 canvas->clipRect(clipRect); in draw()
88 canvas.clipRect(intoClip); in recordAndReplay()
121 replayCanvas.clipRect(intoClip); in recordAndReplay()
/external/skqp/gm/
Dimagesource.cpp17 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()
Dxfermodeimagefilter.cpp112 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()
Dblurquickreject.cpp37 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/
Dimagesource.cpp17 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()
Dxfermodeimagefilter.cpp112 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()
Dblurquickreject.cpp37 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/
DDevice.cpp876 …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/
DSkScan_Path.cpp390 void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitter, in sk_fill_path() argument
394 SkIRect shiftedClip = clipRect; in sk_fill_path()
412 SkIRect rect = clipRect; in sk_fill_path()
459 ib.setBlitter(blitter, clipRect, shiftEdgesUp); in sk_fill_path()
696 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument
699 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges()
703 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges()
707 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges()
714 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument
721 int count = build_tri_edges(edgeStorage, pts, clipRect, list); in sk_fill_triangle()
[all …]
/external/skia/src/core/
DSkScan_Path.cpp395 void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitter, in sk_fill_path() argument
399 SkIRect shiftedClip = clipRect; in sk_fill_path()
417 SkIRect rect = clipRect; in sk_fill_path()
464 ib.setBlitter(blitter, clipRect, shiftEdgesUp); in sk_fill_path()
675 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument
678 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges()
682 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges()
686 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges()
693 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument
700 int count = build_tri_edges(edgeStorage, pts, clipRect, list); in sk_fill_triangle()
[all …]

12345678910>>...15