Home
last modified time | relevance | path

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

12345678910>>...15

/external/chromium_org/third_party/skia/tests/
DClipCubicTest.cpp80 SkIRect clipRect; in DEF_TEST() local
85 clipRect.set(-2, -2, 6, 14); in DEF_TEST()
86 clipper.setClip(clipRect); in DEF_TEST()
93 clipRect.set(-2, 0, 6, 14); in DEF_TEST()
94 clipper.setClip(clipRect); in DEF_TEST()
101 clipRect.set(-2, -2, 6, 12); in DEF_TEST()
102 clipper.setClip(clipRect); in DEF_TEST()
109 clipRect.set(-2, 14, 6, 20); in DEF_TEST()
110 clipper.setClip(clipRect); in DEF_TEST()
115 clipRect.set(-2, 1, 6, 14); in DEF_TEST()
[all …]
DCanvasStateTest.cpp156 SkIRect clipRect = layerRect; in DEF_TEST() local
157 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST()
158 clipRect.outset(SPACER, SPACER); in DEF_TEST()
160 SkIRect regionBounds = clipRect; in DEF_TEST()
161 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST()
225 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
226 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
232 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
233 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
316 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
DRecordPatternTest.cpp26 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
45 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
66 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
84 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
89 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
90 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
102 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
152 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
157 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
164 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
[all …]
DPictureStateTreeTest.cpp42 canvas->clipRect(layerBounds); in draw_scene()
45 canvas->clipRect(SkRect::MakeWH(25, 25)); in draw_scene()
51 canvas->clipRect(SkRect::MakeWH(25, 25)); in draw_scene()
97 referenceCanvas.clipRect(SkRect::MakeWH(50, 50)); in test_reference_picture()
100 bbhCanvas.clipRect(SkRect::MakeWH(50, 50)); in test_reference_picture()
109 referenceCanvas.clipRect(SkRect::MakeWH(10, 10)); in test_reference_picture()
112 bbhCanvas.clipRect(SkRect::MakeWH(10, 10)); in test_reference_picture()
DRecordingXfermodeTest.cpp41 void draw(SkCanvas* canvas, const SkRect& clipRect, SkXfermode::Mode mode) const { in draw() argument
53 canvas->clipRect(clipRect); in draw()
93 canvas.clipRect(intoClip); in recordAndReplay()
129 replayCanvas.clipRect(intoClip); in recordAndReplay()
169 replayCanvas.clipRect(intoClip); in recordAndReplay()
/external/skia/tests/
DClipCubicTest.cpp80 SkIRect clipRect; in DEF_TEST() local
85 clipRect.set(-2, -2, 6, 14); in DEF_TEST()
86 clipper.setClip(clipRect); in DEF_TEST()
93 clipRect.set(-2, 0, 6, 14); in DEF_TEST()
94 clipper.setClip(clipRect); in DEF_TEST()
101 clipRect.set(-2, -2, 6, 12); in DEF_TEST()
102 clipper.setClip(clipRect); in DEF_TEST()
109 clipRect.set(-2, 14, 6, 20); in DEF_TEST()
110 clipper.setClip(clipRect); in DEF_TEST()
115 clipRect.set(-2, 1, 6, 14); in DEF_TEST()
[all …]
DRecordPatternTest.cpp26 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
45 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
66 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
84 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
89 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
90 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
102 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
152 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
157 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
164 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
[all …]
DPictureStateTreeTest.cpp42 canvas->clipRect(layerBounds); in draw_scene()
45 canvas->clipRect(SkRect::MakeWH(25, 25)); in draw_scene()
51 canvas->clipRect(SkRect::MakeWH(25, 25)); in draw_scene()
97 referenceCanvas.clipRect(SkRect::MakeWH(50, 50)); in test_reference_picture()
100 bbhCanvas.clipRect(SkRect::MakeWH(50, 50)); in test_reference_picture()
109 referenceCanvas.clipRect(SkRect::MakeWH(10, 10)); in test_reference_picture()
112 bbhCanvas.clipRect(SkRect::MakeWH(10, 10)); in test_reference_picture()
DCanvasStateTest.cpp105 SkIRect clipRect = layerRect; in test_complex_clips() local
106 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in test_complex_clips()
107 clipRect.outset(SPACER, SPACER); in test_complex_clips()
109 SkIRect regionBounds = clipRect; in test_complex_clips()
110 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in test_complex_clips()
157 tmpCanvas->clipRect(SkRect::Make(clipRect), clipOps[j]); in test_complex_clips()
246 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in test_saveLayer_clip()
/external/chromium_org/ui/file_manager/gallery/js/image_editor/
Dimage_transform.js107 var clipRect = this.viewport_.screenToImageRect(
110 this.cropRect_.forceAspectRatio(aspect, clipRect);
485 var clipRect = this.viewport_.screenToImageRect(
487 if (!clipRect.inside(initialX, initialY))
497 var maxX = clipRect.left + clipRect.width - initialWidth;
498 var maxY = clipRect.top + clipRect.height - initialHeight;
504 var clamppedX = ImageUtil.clamp(clipRect.left, newX + mouseBiasX, maxX);
505 var clamppedY = ImageUtil.clamp(clipRect.top, newY + mouseBiasY, maxY);
515 var maxX = clipRect.left + clipRect.width;
516 var maxY = clipRect.top + clipRect.height;
[all …]
/external/skia/gm/
Dbitmapsource.cpp42 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { in fillRectFiltered() argument
46 canvas->clipRect(clipRect); in fillRectFiltered()
56 SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
65 fillRectFiltered(canvas, clipRect, bitmapSource); in onDraw()
69 fillRectFiltered(canvas, clipRect, bitmapSourceSrcRect); in onDraw()
73 fillRectFiltered(canvas, clipRect, bitmapSourceSrcRectDstRect); in onDraw()
77 fillRectFiltered(canvas, clipRect, bitmapSourceDstRectOnly); in onDraw()
Dblurquickreject.cpp37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local
66 canvas->drawRect(clipRect, hairlinePaint); in onDraw()
67 canvas->clipRect(clipRect); in onDraw()
Dbigblurs.cpp79 SkRect clipRect = SkRect::MakeXYWH(SkIntToScalar(desiredX), in onDraw() local
84 canvas->clipRect(clipRect, SkRegion::kReplace_Op, false); in onDraw()
95 canvas->drawRect(clipRect, outlinePaint); in onDraw()
Doffsetimagefilter.cpp68 SkRect clipRect = SkRect::MakeWH( in drawClippedBitmap() local
70 canvas->clipRect(clipRect); in drawClippedBitmap()
84 clipRect.intersect(cropRectFloat); in drawClippedBitmap()
85 canvas->drawRect(clipRect, strokePaint); in drawClippedBitmap()
/external/chromium_org/third_party/skia/gm/
Dbitmapsource.cpp43 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { in fillRectFiltered() argument
47 canvas->clipRect(clipRect); in fillRectFiltered()
57 SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
66 fillRectFiltered(canvas, clipRect, bitmapSource); in onDraw()
70 fillRectFiltered(canvas, clipRect, bitmapSourceSrcRect); in onDraw()
74 fillRectFiltered(canvas, clipRect, bitmapSourceSrcRectDstRect); in onDraw()
78 fillRectFiltered(canvas, clipRect, bitmapSourceDstRectOnly); in onDraw()
Dblurquickreject.cpp37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local
66 canvas->drawRect(clipRect, hairlinePaint); in onDraw()
67 canvas->clipRect(clipRect); in onDraw()
Dbigblurs.cpp79 SkRect clipRect = SkRect::MakeXYWH(SkIntToScalar(desiredX), in onDraw() local
84 canvas->clipRect(clipRect, SkRegion::kReplace_Op, false); in onDraw()
95 canvas->drawRect(clipRect, outlinePaint); in onDraw()
Doffsetimagefilter.cpp69 SkRect clipRect = SkRect::MakeWH( in drawClippedBitmap() local
71 canvas->clipRect(clipRect); in drawClippedBitmap()
85 clipRect.intersect(cropRectFloat); in drawClippedBitmap()
86 canvas->drawRect(clipRect, strokePaint); in drawClippedBitmap()
/external/chromium_org/third_party/WebKit/Source/core/paint/
DInlineFlowBoxPainter.cpp153 LayoutRect clipRect(paintRect); in clipRectForNinePieceImageStrip() local
157 clipRect.setY(paintRect.y() - outsets.top()); in clipRectForNinePieceImageStrip()
158 clipRect.setHeight(paintRect.height() + outsets.top() + outsets.bottom()); in clipRectForNinePieceImageStrip()
160 clipRect.setX(paintRect.x() - outsets.left()); in clipRectForNinePieceImageStrip()
161 clipRect.setWidth(paintRect.width() + outsets.left()); in clipRectForNinePieceImageStrip()
164 clipRect.setWidth(clipRect.width() + outsets.right()); in clipRectForNinePieceImageStrip()
166 clipRect.setX(paintRect.x() - outsets.left()); in clipRectForNinePieceImageStrip()
167 clipRect.setWidth(paintRect.width() + outsets.left() + outsets.right()); in clipRectForNinePieceImageStrip()
169 clipRect.setY(paintRect.y() - outsets.top()); in clipRectForNinePieceImageStrip()
170 clipRect.setHeight(paintRect.height() + outsets.top()); in clipRectForNinePieceImageStrip()
[all …]
/external/chromium_org/content/shell/tools/plugin/Tests/
DLogNPPSetWindow.cpp54 … window->clipRect.left, window->clipRect.top, window->clipRect.right, window->clipRect.bottom, in NPP_SetWindow()
/external/skia/src/core/
DSkScan_Path.cpp432 void sk_fill_path(const SkPath& path, const SkIRect* clipRect, SkBlitter* blitter, in sk_fill_path() argument
439 int count = builder.build(path, clipRect, shiftEdgesUp); in sk_fill_path()
487 if (clipRect && start_y < clipRect->fTop) { in sk_fill_path()
488 start_y = clipRect->fTop; in sk_fill_path()
490 if (clipRect && stop_y > clipRect->fBottom) { in sk_fill_path()
491 stop_y = clipRect->fBottom; in sk_fill_path()
645 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument
648 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges()
652 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges()
656 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges()
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkScan_Path.cpp432 void sk_fill_path(const SkPath& path, const SkIRect* clipRect, SkBlitter* blitter, in sk_fill_path() argument
439 int count = builder.build(path, clipRect, shiftEdgesUp); in sk_fill_path()
487 if (clipRect && start_y < clipRect->fTop) { in sk_fill_path()
488 start_y = clipRect->fTop; in sk_fill_path()
490 if (clipRect && stop_y > clipRect->fBottom) { in sk_fill_path()
491 stop_y = clipRect->fBottom; in sk_fill_path()
645 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument
648 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges()
652 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges()
656 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges()
[all …]
/external/skia/samplecode/
DSampleManyRects.cpp58 SkRect clipRect = rect; in onDrawContent() local
61 clipRect.outset(10, 10); in onDrawContent()
62 canvas->clipRect(clipRect); in onDrawContent()
/external/chromium_org/third_party/skia/samplecode/
DSampleManyRects.cpp58 SkRect clipRect = rect; in onDrawContent() local
61 clipRect.outset(10, 10); in onDrawContent()
62 canvas->clipRect(clipRect); in onDrawContent()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderRegion.cpp76 LayoutRect clipRect; in overflowRectForFlowThreadPortion() local
82 clipRect = LayoutRect(minX, minY, maxX - minX, maxY - minY); in overflowRectForFlowThreadPortion()
88 clipRect = LayoutRect(minX, minY, maxX - minX, maxY - minY); in overflowRectForFlowThreadPortion()
91 return clipRect; in overflowRectForFlowThreadPortion()

12345678910>>...15