Home
last modified time | relevance | path

Searched refs:clip (Results 201 - 225 of 505) sorted by relevance

12345678910>>...21

/third_party/skia/src/core/
H A DSkCubicClipper.h15 /** This class is initialized with a clip rectangle, and then can be fed cubics,
18 In the future, it might return a series of segments, allowing it to clip
25 void setClip(const SkIRect& clip);
H A DSkCubicClipper.cpp18 void SkCubicClipper::setClip(const SkIRect& clip) { in setClip() argument
20 fClip.set(clip); in setClip()
H A DSkOverdrawCanvas.cpp214 void SkOverdrawCanvas::onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], in onDrawEdgeAAQuad() argument
216 if (clip) { in onDrawEdgeAAQuad()
217 fList[0]->onDrawPath(SkPath::Polygon(clip, 4, true), fPaint); in onDrawEdgeAAQuad()
H A DSkEdgeBuilder.cpp243 SkRect clip = this->recoverClip(*iclip); in buildPoly() local
249 int lineCount = SkLineClipper::ClipLine(e.fPts, clip, lines, canCullToTheRight); in buildPoly()
296 SkRect clip = this->recoverClip(*iclip); in build() local
302 SkEdgeClipper::ClipPath(path, clip, canCullToTheRight, in build()
365 // If we're convex, then we need both edges, even if the right edge is past the clip. in buildEdges()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A Dangletypes.cpp642 bool ClipRectangle(const Rectangle &source, const Rectangle &clip, Rectangle *intersection)
661 angle::CheckedNumeric<int> clipX2(clip.x);
662 clipX2 += clip.width;
667 angle::CheckedNumeric<int> clipY2(clip.y);
668 clipY2 += clip.height;
675 MinMax(clip.x, clipX2.ValueOrDie(), &minClipX, &maxClipX);
676 MinMax(clip.y, clipY2.ValueOrDie(), &minClipY, &maxClipY);
/foundation/arkui/ui_lite/frameworks/engines/gfx/
H A Dsoft_engine.cpp97 ClipUtils clip; in ClipCircle() local
98 clip.PerformScan(path, info); in ClipCircle()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_util.h38 * @ clip: clip shift
53 uint16_t clip; member
187 * @clip: Clip coefficient
202 uint16_t clip; member
/third_party/skia/gm/
H A Dlinepaths.cpp22 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
33 canvas->clipRect(clip); in drawPath()
21 drawPath(SkPath& path,SkCanvas* canvas,SkColor color, const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth) drawPath() argument
H A Daarectmodes.cpp68 SkRect clip = {0, 130, 772, 531}; in test4() local
69 canvas->clipRect(clip); in test4()
H A Ddftext_blob_persp.cpp82 for (bool clip : {false, true}) {
86 if (clip) {
H A Demptypath.cpp33 const SkRect& clip, in drawEmpty()
42 canvas->clipRect(clip); in drawEmpty()
31 drawEmpty(SkCanvas* canvas, SkColor color, const SkRect& clip, SkPaint::Style style, SkPathFillType fill) drawEmpty() argument
H A Dclockwise.cpp180 GrAppliedClip* clip,
190 GrAppliedClip appliedClip = clip ? std::move(*clip) : GrAppliedClip::Disabled();
H A Dcolorfilterimagefilter.cpp122 SkRect clip(r); in draw_clipped_rect()
123 clip.outset(outset, outset); in draw_clipped_rect()
124 canvas->clipRect(clip); in draw_clipped_rect()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_kms.h82 * @pre_clip: Populate fifo before clip.
84 * This is where pre clip related command should be populated like
95 * @clip: Populate fifo for clip.
99 * which is one if doing full update. @clip is the damage in destination
100 * coordinates which is crtc/DU and @src_x, @src_y is damage clip src in
107 uint32_t (*clip)(struct vmw_du_update_plane *update, void *cmd, member
108 struct drm_rect *clip, uint32_t src_x, uint32_t src_y);
111 * @post_clip: Populate fifo after clip.
159 * all clip rect
186 void (*clip)(struct vmw_kms_dirty *); global() member
[all...]
H A Dvmwgfx_kms.c849 * @vclips: Array of clip rects.
850 * @num_clips: Number of clip rects in @vclips.
2341 * @dest_x: X coordinate offset for the crtc / destination clip rects.
2342 * @dest_y: Y coordinate offset for the crtc / destination clip rects.
2344 * @increment: Integer with which to increment the clip counter when looping.
2345 * Used to skip a predetermined number of clip rects.
2402 * Select clip array type. Note that integer type in vmw_kms_helper_dirty()
2425 /* Skip this clip if it's outside the crtc region */ in vmw_kms_helper_dirty()
2445 dirty->clip(dirty); in vmw_kms_helper_dirty()
2497 * @increment: Integer with which to increment the clip counte
2709 struct drm_rect clip; vmw_du_helper_plane_update() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/
H A Dqxl_draw.c100 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
122 * Right now implementing with a single draw and a clip list. Clip
169 /* skip the first clip rect */ in qxl_draw_dirty_fb()
225 drawable->clip.type = SPICE_CLIP_TYPE_RECTS; in qxl_draw_dirty_fb()
226 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb()
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_kms.h83 * @pre_clip: Populate fifo before clip.
85 * This is where pre clip related command should be populated like
96 * @clip: Populate fifo for clip.
100 * which is one if doing full update. @clip is the damage in destination
101 * coordinates which is crtc/DU and @src_x, @src_y is damage clip src in
108 uint32_t (*clip)(struct vmw_du_update_plane *update, void *cmd, member
109 struct drm_rect *clip, uint32_t src_x, uint32_t src_y);
112 * @post_clip: Populate fifo after clip.
159 * all clip rect
186 void (*clip)(struct vmw_kms_dirty *); global() member
[all...]
/third_party/mesa3d/src/broadcom/vulkan/
H A Dv3dvx_cmd_buffer.c94 cl_emit(&job->bcl, CLIP_WINDOW, clip) { in job_emit_clip_window()
95 clip.clip_window_left_pixel_coordinate = rect->offset.x; in job_emit_clip_window()
96 clip.clip_window_bottom_pixel_coordinate = rect->offset.y; in job_emit_clip_window()
97 clip.clip_window_width_in_pixels = rect->extent.width; in job_emit_clip_window()
98 clip.clip_window_height_in_pixels = rect->extent.height; in job_emit_clip_window()
1065 cl_emit(&job->bcl, CLIPPER_XY_SCALING, clip) { in cmd_buffer_emit_viewport()
1066 clip.viewport_half_width_in_1_256th_of_pixel = vpscale[0] * 256.0f; in cmd_buffer_emit_viewport()
1067 clip.viewport_half_height_in_1_256th_of_pixel = vpscale[1] * 256.0f; in cmd_buffer_emit_viewport()
1070 cl_emit(&job->bcl, CLIPPER_Z_SCALE_AND_OFFSET, clip) { in cmd_buffer_emit_viewport()
1071 clip in cmd_buffer_emit_viewport()
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_state_viewport.c58 * This is because the viewport transformation inverts the clip space in si_get_small_prim_cull_info()
166 /* Since the guard band disables clipping, we have to clip per-pixel
175 /* Convert (-1, -1) and (1, 1) from clip space into window space. */ in si_get_scissor_from_viewport()
209 static void si_clip_scissor(struct pipe_scissor_state *out, struct pipe_scissor_state *clip) in si_clip_scissor() argument
211 out->minx = MAX2(out->minx, clip->minx); in si_clip_scissor()
212 out->miny = MAX2(out->miny, clip->miny); in si_clip_scissor()
213 out->maxx = MIN2(out->maxx, clip->maxx); in si_clip_scissor()
214 out->maxy = MIN2(out->maxy, clip->maxy); in si_clip_scissor()
336 * distance from (0,0) in clip space. in si_emit_guardband()
339 * on the viewport limits to get those limits in clip spac in si_emit_guardband()
[all...]
/third_party/skia/src/gpu/ops/
H A DDefaultPathRenderer.cpp438 GrProcessorSet::Analysis finalize(const GrCaps& caps, const GrAppliedClip* clip,
444 return fHelper.finalizeProcessors(caps, clip, clampType, gpCoverage, &fColor, nullptr);
622 const GrClip* clip, in internalDrawPath()
740 sdc->stencilRect(clip, passes[p], std::move(paint), in internalDrawPath()
757 sdc->addDrawOp(clip, std::move(op)); in internalDrawPath()
618 internalDrawPath(skgpu::v1::SurfaceDrawContext* sdc, GrPaint&& paint, GrAAType aaType, const GrUserStencilSettings& userStencilSettings, const GrClip* clip, const SkMatrix& viewMatrix, const GrStyledShape& shape, bool stencilOnly) internalDrawPath() argument
/third_party/skia/tests/
H A DRegionTest.cpp427 SkRegion clip; in DEF_TEST() local
428 clip.op(SkIRect::MakeLTRB(10, 10, 15, 20), SkRegion::kUnion_Op); in DEF_TEST()
429 clip.op(SkIRect::MakeLTRB(20, 10, 25, 20), SkRegion::kUnion_Op); in DEF_TEST()
432 rgn.setPath(path, clip); in DEF_TEST()
434 REPORTER_ASSERT(reporter, clip == rgn); in DEF_TEST()
H A DRecordOptsTest.cpp218 SkRect clip = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(60)); in DEF_TEST() local
269 recorder.clipRect(clip); in DEF_TEST()
311 recorder.clipRect(clip); in DEF_TEST()
323 recorder.clipRect(clip); in DEF_TEST()
336 // Test that currently we do not fold alphas for patterns without the clip. This is just not in DEF_TEST()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_state.c310 const struct pipe_clip_state *clip) in nv30_set_clip_state()
314 memcpy(nv30->clip.ucp, clip->ucp, sizeof(clip->ucp)); in nv30_set_clip_state()
309 nv30_set_clip_state(struct pipe_context *pipe, const struct pipe_clip_state *clip) nv30_set_clip_state() argument
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Danalysis_enc.c72 static WEBP_INLINE int clip(int v, int m, int M) { in clip() function
94 enc->dqm_[n].alpha_ = clip(alpha, -127, 127); in SetSegmentAlphas()
95 enc->dqm_[n].beta_ = clip(beta, 0, 255); in SetSegmentAlphas()
110 return clip(alpha, 0, MAX_ALPHA); in FinalAlphaValue()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_region.h128 * @brief Constructs region that matchs outline of path within clip.
133 * @param clip Indicates the pointer to an <b>OH_Drawing_Region</b> object.
138 bool OH_Drawing_RegionSetPath(OH_Drawing_Region* region, const OH_Drawing_Path* path, const OH_Drawing_Region* clip);

Completed in 21 milliseconds

12345678910>>...21