Home
last modified time | relevance | path

Searched refs:clip (Results 76 - 100 of 342) sorted by relevance

12345678910>>...14

/third_party/skia/src/gpu/ops/
H A DGrSimpleMeshDrawOpHelper.cpp69 const GrCaps& caps, const GrAppliedClip* clip, GrClampType clampType, in finalizeProcessors()
72 auto result = this->finalizeProcessors(caps, clip, clampType, geometryCoverage, &color); in finalizeProcessors()
81 const GrCaps& caps, const GrAppliedClip* clip, const GrUserStencilSettings* userStencil, in finalizeProcessors()
89 coverage = (clip && clip->hasCoverageFragmentProcessor()) in finalizeProcessors()
94 analysis = fProcessors->finalize(*geometryColor, coverage, clip, userStencil, caps, in finalizeProcessors()
68 finalizeProcessors( const GrCaps& caps, const GrAppliedClip* clip, GrClampType clampType, GrProcessorAnalysisCoverage geometryCoverage, SkPMColor4f* geometryColor, bool* wideColor) finalizeProcessors() argument
80 finalizeProcessors( const GrCaps& caps, const GrAppliedClip* clip, const GrUserStencilSettings* userStencil, GrClampType clampType, GrProcessorAnalysisCoverage geometryCoverage, GrProcessorAnalysisColor* geometryColor) finalizeProcessors() argument
H A DGrMeshDrawOp.cpp43 GrAppliedClip* clip, in onPrePrepareDraws()
53 GrAppliedClip appliedClip = clip ? std::move(*clip) : GrAppliedClip::Disabled(); in onPrePrepareDraws()
41 onPrePrepareDraws(GrRecordingContext* context, const GrSurfaceProxyView& writeView, GrAppliedClip* clip, const GrDstProxyView& dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) onPrePrepareDraws() argument
H A DPathStencilCoverOp.cpp126 const GrAppliedClip* clip, in finalize()
128 return fProcessors.finalize(fColor, GrProcessorAnalysisCoverage::kNone, clip, nullptr, caps, in finalize()
203 const GrSurfaceProxyView& writeView, GrAppliedClip* clip, in onPrePrepare()
212 (clip) ? std::move(*clip) : GrAppliedClip::Disabled()); in onPrePrepare()
125 finalize(const GrCaps& caps, const GrAppliedClip* clip, GrClampType clampType) finalize() argument
202 onPrePrepare(GrRecordingContext* context, const GrSurfaceProxyView& writeView, GrAppliedClip* clip, const GrDstProxyView& dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) onPrePrepare() argument
/third_party/skia/src/utils/
H A DSkCanvasStateUtils.cpp114 // See setup_MC_state, clipRects is only allocated when the clip isn't empty; and empty in ~SkCanvasState_v1()
141 static void setup_MC_state(SkMCState* state, const SkMatrix& matrix, const SkIRect& clip) { in setup_MC_state() argument
151 * We only support a single clipRect, so we take the clip's bounds. Clients have long made in setup_MC_state()
156 if (!clip.isEmpty()) { in setup_MC_state()
159 state->clipRects->left = clip.fLeft; in setup_MC_state()
160 state->clipRects->top = clip.fTop; in setup_MC_state()
161 state->clipRects->right = clip.fRight; in setup_MC_state()
162 state->clipRects->bottom = clip.fBottom; in setup_MC_state()
169 // Check the clip can be decomposed into rectangles (i.e. no soft clips). in CaptureCanvasState()
281 // setup the matrix and clip in make_canvas_from_canvas_layer()
[all...]
/third_party/skia/gm/
H A Dconvexpolyclip.cpp175 for (const Clip& clip : fClips) {
180 clip.getBounds(&bounds);
188 clip.setOnCanvas(canvas, SkClipOp::kIntersect, SkToBool(aa));
203 clip.getBounds(&bounds);
211 SkPath closedClipPath = clip.asClosedPath();
213 clip.setOnCanvas(canvas, SkClipOp::kIntersect, SkToBool(aa));
H A Dcubicpaths.cpp86 void drawOne(SkCanvas* canvas, const SkPath& path, const SkRect& clip) { in drawOne() argument
89 canvas->drawRect(clip, framePaint); in drawOne()
92 canvas->clipRect(clip); in drawOne()
127 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
138 canvas->clipRect(clip); in drawPath()
246 const SkRect& clip,SkPaint::Cap cap, SkPaint::Join join, in drawPath()
257 canvas->clipRect(clip); in drawPath()
126 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
245 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 Dcomplexclip2.cpp32 ComplexClip2GM(Clip clip, bool antiAlias) in ComplexClip2GM() argument
33 : fClip(clip) in ComplexClip2GM()
112 static const char* ClipStr(Clip clip) { in ClipStr() argument
113 switch (clip) { in ClipStr()
121 SkDEBUGFAIL("Unknown clip type."); in ClipStr()
/third_party/skia/experimental/xform/
H A DXContext.cpp21 static const SkRasterClip& peek_rasterclip(ClipCache* clip) { in peek_rasterclip() argument
22 return ((RasterClipCache*)clip)->fRC; in peek_rasterclip()
34 const SkRasterClip& rc = peek_rasterclip(parent->clip()); in RasterXformResolver()
153 fCanvas->clipRegion(peek_rasterclip(x->clip()).bwRgn());
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_clip.c131 static void interp(const struct clip_stage *clip, in interp() argument
138 const unsigned pos_attr = clip->pos_attr; in interp()
149 /* Interpolate the clip-space coords. in interp()
151 if (clip->cv_attr >= 0) { in interp()
152 interp_attr(dst->data[clip->cv_attr], t, in interp()
153 in->data[clip->cv_attr], out->data[clip->cv_attr]); in interp()
155 /* interpolate the clip-space position */ in interp()
164 clip->stage.draw->viewports[viewport_index].scale; in interp()
166 clip in interp()
[all...]
H A Ddraw_pipe.c49 draw->pipeline.clip = draw_clip_stage(draw); in draw_pipeline_init()
62 !draw->pipeline.clip || in draw_pipeline_init()
95 if (draw->pipeline.clip) in draw_pipeline_destroy()
96 draw->pipeline.clip->destroy(draw->pipeline.clip); in draw_pipeline_destroy()
/third_party/skia/src/core/
H A DSkLineClipper.h20 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that
21 lie completely above or below the clip. For portions to the left or
23 edge of the clip.
31 static int ClipLine(const SkPoint pts[2], const SkRect& clip,
42 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint dst[2]);
H A DSkDraw.cpp670 const SkRasterClip& clip = *fRC; in drawRect() local
679 SkScan::AntiFillRect(devRect, clip, blitter); in drawRect()
681 SkScan::FillRect(devRect, clip, blitter); in drawRect()
686 SkScan::AntiFrameRect(devRect, strokeSize, clip, blitter); in drawRect()
688 SkScan::FrameRect(devRect, strokeSize, clip, blitter); in drawRect()
693 SkScan::AntiHairRect(devRect, clip, blitter); in drawRect()
695 SkScan::HairRect(devRect, clip, blitter); in drawRect()
996 // clipped to the actual device and further limited by the clip bounds in drawBitmapAsMask()
1053 static bool clipped_out(const SkMatrix& matrix, const SkRasterClip& clip, in clipped_out() argument
1057 return clipped_out(matrix, clip, in clipped_out()
1060 clipHandlesSprite(const SkRasterClip& clip, int x, int y, const SkPixmap& pmap) clipHandlesSprite() argument
1252 SkRasterClip clip; draw_into_mask() local
[all...]
/third_party/ffmpeg/libavcodec/arm/
H A Dsimple_idct_armv5te.S332 .macro clip dst, src:vararg
358 clip a2, a2, asr #20
360 clip ip, ip, asr #20
363 clip a3, a3, asr #20
365 clip a4, a4, asr #20
376 clip a2, a2, asr #20
378 clip ip, ip, asr #20
382 clip a2, a3, asr #20
384 clip a4, a4, asr #20
390 clip a
[all...]
/third_party/mesa3d/src/mesa/main/
H A Drastpos.c49 * \param v vertex vector describing the point to clip.
69 * \param v vertex vector describing the point to clip.
88 * \param v vertex vector describing the point to clip.
108 * \param v vertex vector describing the point to clip.
408 GLfloat eye[4], clip[4], ndc[3], d; in _mesa_RasterPos() local
415 /* apply projection matrix: clip = Proj * eye */ in _mesa_RasterPos()
416 TRANSFORM_POINT( clip, ctx->ProjectionMatrixStack.Top->m, eye ); in _mesa_RasterPos()
418 /* clip to view volume. */ in _mesa_RasterPos()
420 if (viewclip_point_near_z(clip) == 0) { in _mesa_RasterPos()
426 if (viewclip_point_far_z(clip) in _mesa_RasterPos()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dtwinvq.h191 static inline float twinvq_mulawinv(float y, float clip, float mu) in twinvq_mulawinv() argument
193 y = av_clipf(y / clip, -1, 1); in twinvq_mulawinv()
194 return clip * FFSIGN(y) * (exp(log(1 + mu) * fabs(y)) - 1) / mu; in twinvq_mulawinv()
/third_party/ffmpeg/libavfilter/
H A Daf_extrastereo.c30 int clip; member
38 { "c", "enable clipping", OFFSET(clip), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, A },
91 if (s->clip) { in filter_frame()
H A Dvf_colorlevels.c104 #define DO_COMMON(type, clip, preserve, planar) \
157 dst_r[x] = clip(or, depth); \
158 dst_g[x] = clip(og, depth); \
159 dst_b[x] = clip(ob, depth); \
161 dst_r[x] = clip((ir - imin_r) * coeff_r + omin_r, depth); \
162 dst_g[x] = clip((ig - imin_g) * coeff_g + omin_g, depth); \
163 dst_b[x] = clip((ib - imin_b) * coeff_b + omin_b, depth); \
168 dst_a[x] = clip((src_a[x] - imin_a) * coeff_a + omin_a, depth); \
/third_party/skia/tests/
H A DRepeatedClippedBlurTest.cpp19 // shrinking the clip.
82 // Now draw the screen-sized image, blurred, multiple times with a shrinking clip. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
88 SkIRect clip = SkIRect::MakeWH(1024, 600); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
97 sk_sp<SkImage> filteredImg = smImg->makeWithFilter(dContext, blur.get(), subset, clip, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
108 clip.fRight -= 16; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DClipperTest.cpp36 * We had a bug where we misinterpreted the bottom of the clip, and in test_hairclipping()
39 * should just draw to [1,1], [2,2], [3,3] modulo the clip. in test_hairclipping()
68 const SkRect clip = { 0, 0, SkIntToScalar(300), SkIntToScalar(200) }; in test_edgeclipper() local
73 clipper.clipCubic(pts, clip); in test_edgeclipper()
166 SkRect clip = { -32767, -32767, 32767, 32767 }; in DEF_TEST() local
168 SkLineClipper::IntersectLine(src, clip, dst); in DEF_TEST()
/third_party/skia/src/gpu/v1/
H A DStencilMaskHelper.cpp22 // Stencil Rules for Merging user stencil space into clip
171 // We can render a clip element directly without first writing to the client
172 // portion of the clip when the fill is not inverse and the set operation will
173 // only modify the in/out status of samples covered by the clip element.
175 // this one only works if used right after stencil clip was cleared.
176 // Our clip mask creation code doesn't allow midstream replace ops.
233 // Settings used to when not allowed to draw directly to the clip to fill the user stencil bits
234 // before applying the covering clip stencil passes.
249 // stencil bits, and then cover the clip area with multiple passes using the returned
280 const GrHardClip& clip, in draw_stencil_rect()
279 draw_stencil_rect(skgpu::v1::SurfaceDrawContext* sdc, const GrHardClip& clip, const GrUserStencilSettings* ss, const SkMatrix& matrix, const SkRect& rect, GrAA aa) draw_stencil_rect() argument
289 draw_path(GrRecordingContext* rContext, skgpu::v1::SurfaceDrawContext* sdc, skgpu::v1::PathRenderer* pr, const GrHardClip& clip, const SkIRect& bounds, const GrUserStencilSettings* ss, const SkMatrix& matrix, const GrStyledShape& shape, GrAA aa) draw_path() argument
308 &clip, draw_path() local
317 stencil_path(GrRecordingContext* rContext, skgpu::v1::SurfaceDrawContext* sdc, skgpu::v1::PathRenderer* pr, const GrFixedClip& clip, const SkMatrix& matrix, const GrStyledShape& shape, GrAA aa) stencil_path() argument
[all...]
/third_party/skia/src/gpu/
H A DGrProcessorSet.cpp117 const GrAppliedClip* clip, const GrUserStencilSettings* userStencil, in finalize()
134 if (clip && clip->hasCoverageFragmentProcessor()) { in finalize()
136 const GrFragmentProcessor* clipFP = clip->coverageFragmentProcessor(); in finalize()
115 finalize( const GrProcessorAnalysisColor& colorInput, const GrProcessorAnalysisCoverage coverageInput, const GrAppliedClip* clip, const GrUserStencilSettings* userStencil, const GrCaps& caps, GrClampType clampType, SkPMColor4f* overrideInputColor) finalize() argument
/third_party/mesa3d/src/gallium/targets/haiku-softpipe/
H A DSoftwareRenderer.cpp234 clipping_rect *clip = &fInfo->clip_list[i]; in Display() local
236 dstClip.ClipRect(clip->left, clip->top, clip->right + 1, clip->bottom + 1); in Display()
/third_party/mesa3d/src/intel/vulkan/
H A DgenX_pipeline.c521 * Note that FS attribute reading must be aware that the clip in emit_3dstate_sbe()
535 /* Just like with clip distances, if Primitive Shading Rate, in emit_3dstate_sbe()
1166 struct GENX(3DSTATE_CLIP) clip = { in emit_3dstate_clip()
1170 clip.ClipEnable = true; in emit_3dstate_clip()
1171 clip.StatisticsEnable = true; in emit_3dstate_clip()
1172 clip.EarlyCullEnable = true; in emit_3dstate_clip()
1173 clip.APIMode = pipeline->negative_one_to_one ? APIMODE_OGL : APIMODE_D3D; in emit_3dstate_clip()
1174 clip.GuardbandClipTestEnable = true; in emit_3dstate_clip()
1177 clip.VertexSubPixelPrecisionSelect = _8Bit; in emit_3dstate_clip()
1179 clip in emit_3dstate_clip()
1249 GENX(3DSTATE_CLIP_pack)(NULL, pipeline->gfx7.clip, &clip); emit_3dstate_clip() local
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_clip.c37 const struct pipe_clip_state *clip) in llvmpipe_set_clip_state()
41 /* pass the clip state to the draw module */ in llvmpipe_set_clip_state()
42 draw_set_clip_state(llvmpipe->draw, clip); in llvmpipe_set_clip_state()
36 llvmpipe_set_clip_state(struct pipe_context *pipe, const struct pipe_clip_state *clip) llvmpipe_set_clip_state() argument
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_state_clip.c37 const struct pipe_clip_state *clip) in softpipe_set_clip_state()
41 /* pass the clip state to the draw module */ in softpipe_set_clip_state()
42 draw_set_clip_state(softpipe->draw, clip); in softpipe_set_clip_state()
36 softpipe_set_clip_state(struct pipe_context *pipe, const struct pipe_clip_state *clip) softpipe_set_clip_state() argument

Completed in 17 milliseconds

12345678910>>...14