/third_party/skia/src/core/ |
H A D | SkEdgeClipper.cpp | 15 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { in quick_reject() argument 16 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject() 48 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { in clipLine() argument 54 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight); in clipLine() 94 // Modify pts[] in place so that it is clipped in Y to the clip rect 95 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { in chop_quad_in_Y() argument 100 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y() 101 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y() 105 tmp[2].fY = clip in chop_quad_in_Y() 144 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) clipMonoQuad() argument 221 clipQuad(const SkPoint srcPts[3], const SkRect& clip) clipQuad() argument 283 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) chop_cubic_in_Y() argument 337 clipMonoCubic(const SkPoint src[4], const SkRect& clip) clipMonoCubic() argument 417 clipCubic(const SkPoint srcPts[4], const SkRect& clip) clipCubic() argument 563 ClipPath(const SkPath& path, const SkRect& clip, bool canCullToTheRight, void (*consume)(SkEdgeClipper*, bool newCtr, void* ctx), void* ctx) ClipPath() argument [all...] |
H A D | SkLineClipper.cpp | 90 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, in IntersectLine() argument 95 if (containsNoEmptyCheck(clip, bounds)) { in IntersectLine() 103 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine() 104 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine() 105 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine() 106 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine() 124 if (tmp[index0].fY < clip.fTop) { in IntersectLine() 125 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine() 127 if (tmp[index1].fY > clip in IntersectLine() 175 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[], bool canCullToTheRight) ClipLine() argument [all...] |
H A D | SkScan.cpp | 20 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() argument 23 if (clip) { in FillIRect() 24 if (clip->isRect()) { in FillIRect() 25 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() 36 SkRegion::Cliperator cliper(*clip, r); in FillIRect() 50 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, in FillXRect() argument 55 SkScan::FillIRect(r, clip, blitter); in FillXRect() 58 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, in FillRect() argument 63 SkScan::FillIRect(ir, clip, blitter); in FillRect() 68 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect() argument 83 FillXRect(const SkXRect& xr, const SkRasterClip& clip, SkBlitter* blitter) FillXRect() argument 98 FillRect(const SkRect& r, const SkRasterClip& clip, SkBlitter* blitter) FillRect() argument [all...] |
H A D | SkScan_Hairline.cpp | 46 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip, 55 if (clip) { 56 clipBounds.set(clip->getBounds()); 64 // We have to pre-clip the line to fit in a SkFixed, so we just chop 70 // Perform a clip in scalar space, so we catch huge values which might 72 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { 86 if (clip) { 90 const SkIRect& bounds = clip->getBounds(); 106 if (!clip->isRect() || !clipR.contains(ptsR)) { 107 blitter = clipper.apply(origBlitter, clip); [all...] |
H A D | SkScan_Antihair.cpp | 21 our extends. The bug is that when this happens, we will set the clip to 22 nullptr (for speed), and thus draw outside of the clip by a pixel, which might 28 case (i.e. not setting the clip to nullptr) when we might not actually need 313 const SkIRect* clip, SkBlitter* blitter) { 321 // The caller must clip the line to [-32767.0 ... 32767.0] ahead of time 331 values are huge. A better fix might be to clip the original pts 337 do_anti_hairline(x0, y0, hx, hy, clip, blitter); 338 do_anti_hairline(hx, hy, x1, y1, clip, blitter); 383 if (clip){ 384 if (istart >= clip [all...] |
H A D | SkEdgeClipper.h | 14 /** This is basically an iterator. It is initialized with an edge and a clip, 21 bool clipLine(SkPoint p0, SkPoint p1, const SkRect& clip); 22 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 23 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 33 static void ClipPath(const SkPath& path, const SkRect& clip, bool canCullToTheRight, 48 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 49 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
H A D | SkRasterClip.cpp | 183 // Since op is either intersect or difference, the clip is always shrinking; that means we can in op() 187 // clip, it's faster to convert the path into a region/aa-mask in place than evaluate the in op() 214 bool SkRasterClip::op(const SkRasterClip& clip, SkClipOp op) { in op() argument 216 clip.validate(); in op() 218 if (this->isBW() && clip.isBW()) { in op() 219 (void)fBW.op(clip.fBW, (SkRegion::Op) op); in op() 227 if (clip.isBW()) { in op() 228 tmp.setRegion(clip.bwRgn()); in op() 231 other = &clip.aaRgn(); in op() 299 SkAAClipBlitterWrapper::SkAAClipBlitterWrapper(const SkRasterClip& clip, in SkAAClipBlitterWrapper() argument 315 init(const SkRasterClip& clip, SkBlitter* blitter) init() argument [all...] |
H A D | SkVMBlitter.cpp | 199 && this->clip == that.clip in operator ==() 223 sk_sp<SkShader> clip) { in EffectiveParams() 282 std::move(clip), in EffectiveParams() 370 if (params.clip) { in BuildProgram() 371 skvm::Color clip = as_SB(params.clip)->program(p, device, /*local=*/device, paint, in BuildProgram() local 374 SkAssertResult(clip); in BuildProgram() 375 cov.r *= clip.a; // We use the alpha channel of clip fo in BuildProgram() 219 EffectiveParams(const SkPixmap& device, const SkPixmap* sprite, SkPaint paint, const SkMatrixProvider& matrices, sk_sp<SkShader> clip) EffectiveParams() argument 528 SkVMBlitter(const SkPixmap& device, const SkPaint& paint, const SkPixmap* sprite, SkIPoint spriteOffset, const SkMatrixProvider& matrices, sk_sp<SkShader> clip, bool* ok) SkVMBlitter() argument 687 blitMask(const SkMask& mask, const SkIRect& clip) blitMask() argument 749 Make(const SkPixmap& device, const SkPaint& paint, const SkMatrixProvider& matrices, SkArenaAlloc* alloc, sk_sp<SkShader> clip) Make() argument 760 Make(const SkPixmap& device, const SkPaint& paint, const SkPixmap& sprite, int left, int top, SkArenaAlloc* alloc, sk_sp<SkShader> clip) Make() argument [all...] |
H A D | SkBlitter.cpp | 193 void SkBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument 194 SkASSERT(mask.fBounds.contains(clip)); in blitMask() 201 int cx = clip.fLeft; in blitMask() 202 int cy = clip.fTop; in blitMask() 205 int height = clip.height(); in blitMask() 213 if (cx == maskLeft && clip.fRight == mask.fBounds.fRight) { in blitMask() 232 int rightEdge = clip.fRight - bitsLeft; in blitMask() 256 int width = clip.width(); in blitMask() 259 const uint8_t* aa = mask.getAddr8(clip.fLeft, clip in blitMask() 276 blitMaskRegion(const SkMask& mask, const SkRegion& clip) blitMaskRegion() argument 290 blitRectRegion(const SkIRect& rect, const SkRegion& clip) blitRectRegion() argument 300 blitRegion(const SkRegion& clip) blitRegion() argument 317 blitMask(const SkMask& mask, const SkIRect& clip) blitMask() argument [all...] |
/third_party/skia/tests/ |
H A D | MatrixClipCollapseTest.cpp | 18 // overall structure, bodies that draw something and model/clip state changes. 23 // be completely removed by the matrix/clip collapse. Note: every save in 32 // The ModelClip methods output matrix and clip ops in various orders and 34 // expected matrix & clip ops. Note that, currently, the entire clip stack 35 // is output for each MC state so the clip operations accumulate down the 39 // check on clip offsets 40 // - not sure if this is possible. The desire is to verify that the clip 43 // offset stored in the SkPicture to the debugger's clip objects 47 // rendering before and after images. Additionally the matrix/clip collaps 154 emit_clip(SkCanvas* canvas, ClipType clip) emit_clip() argument 194 add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) add_clip() argument 325 emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_clip_and_mat() argument 346 emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_mat_and_clip() argument 369 emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_double_mat_and_clip() argument 394 emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_mat_clip_clip() argument 417 emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body0() argument 438 emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body1() argument 466 emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body2() argument 504 emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body3() argument 552 emit_struct0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct0() argument 568 emit_struct1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct1() argument 591 emit_struct2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct2() argument 620 emit_struct3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct3() argument [all...] |
H A D | AAClipTest.cpp | 202 SkAAClip clip; in test_path_bounds() local 208 clip.setPath(path, path.getBounds().roundOut(), true); in test_path_bounds() 209 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); in test_path_bounds() 222 clip.setPath(path, path.getBounds().roundOut(), true); in test_path_bounds() 223 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height()); in test_path_bounds() 227 SkAAClip clip; in test_empty() local 229 REPORTER_ASSERT(reporter, clip.isEmpty()); in test_empty() 230 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty()); in test_empty() 232 clip.translate(10, 10, &clip); // shoul in test_empty() 325 SkAAClip clip; test_path_with_hole() local 343 SkAAClip clip; test_really_a_rect() local 401 SkAAClip clip; test_regressions() local 426 SkAAClip clip; test_huge() local [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_clip.c | 42 /* Second state atom for user clip planes: 46 struct pipe_clip_state clip; in st_update_clip() local 50 STATIC_ASSERT(sizeof(clip.ucp) <= sizeof(ctx->Transform._ClipUserPlane)); in st_update_clip() 52 /* if we have a vertex shader that writes clip vertex we need to pass in st_update_clip() 60 memcpy(clip.ucp, in st_update_clip() 62 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp)); in st_update_clip() 64 if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) { in st_update_clip() 65 st->state.clip in st_update_clip() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | cfhddsp.c | 29 int len, int clip) in filter() 36 if (clip) in filter() 37 output[(2*0+0)*out_stride] = av_clip_uintp2_c(output[(2*0+0)*out_stride], clip); in filter() 41 if (clip) in filter() 42 output[(2*0+1)*out_stride] = av_clip_uintp2_c(output[(2*0+1)*out_stride], clip); in filter() 47 if (clip) in filter() 48 output[(2*i+0)*out_stride] = av_clip_uintp2_c(output[(2*i+0)*out_stride], clip); in filter() 52 if (clip) in filter() 53 output[(2*i+1)*out_stride] = av_clip_uintp2_c(output[(2*i+1)*out_stride], clip); in filter() 58 if (clip) in filter() 26 filter(int16_t *output, ptrdiff_t out_stride, const int16_t *low, ptrdiff_t low_stride, const int16_t *high, ptrdiff_t high_stride, int len, int clip) filter() argument 93 horiz_filter_clip(int16_t *output, const int16_t *low, const int16_t *high, int width, int clip) horiz_filter_clip() argument 99 horiz_filter_clip_bayer(int16_t *output, const int16_t *low, const int16_t *high, int width, int clip) horiz_filter_clip_bayer() argument [all...] |
/third_party/skia/gm/ |
H A D | inverseclip.cpp | 14 SkPathBuilder clip; in DEF_SIMPLE_GM() local 15 clip.setFillType(SkPathFillType::kInverseWinding); in DEF_SIMPLE_GM() 16 clip.moveTo(195.448f, 31); in DEF_SIMPLE_GM() 17 clip.cubicTo(97.9925f, 31, 18.99f, 105.23f, 18.99f, 196.797f); in DEF_SIMPLE_GM() 18 clip.cubicTo(18.99f, 288.365f, 97.9925f, 362.595f, 195.448f, 362.595f); in DEF_SIMPLE_GM() 19 clip.cubicTo(292.905f, 362.595f, 371.905f, 288.365f, 371.905f, 196.797f); in DEF_SIMPLE_GM() 20 clip.cubicTo(371.905f, 105.23f, 292.905f, 31, 195.448f, 31); in DEF_SIMPLE_GM() 21 clip.close(); in DEF_SIMPLE_GM() 22 canvas->clipPath(clip.detach(), true); in DEF_SIMPLE_GM()
|
H A D | bug9331.cpp | 14 SkRect clip = {0, 0, 200, 150}; in DEF_SIMPLE_GM() local 18 canvas->drawRect(clip, paint); in DEF_SIMPLE_GM() 21 auto draw = [&](SkColor color, SkRect clip) { in DEF_SIMPLE_GM() 32 canvas->clipRect(clip); in DEF_SIMPLE_GM() 37 draw(0xFF000000, clip); in DEF_SIMPLE_GM() 38 draw(0xFF0000FF, clip.makeOffset(0,150)); in DEF_SIMPLE_GM()
|
/third_party/skia/src/gpu/v1/ |
H A D | SurfaceDrawContext.cpp | 329 void SurfaceDrawContext::drawGlyphRunListNoCache(const GrClip* clip, in drawGlyphRunListNoCache() argument 340 GrSubRunNoCachePainter painter{this, alloc, clip, viewMatrix, glyphRunList, paint}; in drawGlyphRunListNoCache() 351 void SurfaceDrawContext::drawGlyphRunListWithCache(const GrClip* clip, in drawGlyphRunListWithCache() argument 394 subRun.draw(clip, viewMatrix, glyphRunList, paint, this); in drawGlyphRunListWithCache() 400 void SurfaceDrawContext::drawGlyphRunList(const GrClip* clip, in drawGlyphRunList() argument 420 this->drawGlyphRunListNoCache(clip, viewMatrix, glyphRunList, paint); in drawGlyphRunList() 422 this->drawGlyphRunListWithCache(clip, viewMatrix, glyphRunList, paint); in drawGlyphRunList() 426 void SurfaceDrawContext::drawPaint(const GrClip* clip, in drawPaint() argument 430 // drawFilledQuad() will automatically restrict it to clip bounds for us if possible. in drawPaint() 435 this->fillRectToRect(clip, st in drawPaint() 462 attemptQuadOptimization( const GrClip* clip, const GrUserStencilSettings* stencilSettings, GrAA* aa, DrawQuad* quad, GrPaint* paint) attemptQuadOptimization() argument 611 drawFilledQuad(const GrClip* clip, GrPaint&& paint, GrAA aa, DrawQuad* quad, const GrUserStencilSettings* ss) drawFilledQuad() argument 644 drawTexture(const GrClip* clip, GrSurfaceProxyView view, SkAlphaType srcAlphaType, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, SkBlendMode blendMode, const SkPMColor4f& color, const SkRect& srcRect, const SkRect& dstRect, GrAA aa, GrQuadAAFlags edgeAA, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> colorSpaceXform) drawTexture() argument 690 drawTexturedQuad(const GrClip* clip, GrSurfaceProxyView proxyView, SkAlphaType srcAlphaType, sk_sp<GrColorSpaceXform> textureXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, SkBlendMode blendMode, GrAA aa, DrawQuad* quad, const SkRect* subset) drawTexturedQuad() argument 731 drawRect(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& rect, const GrStyle* style) drawRect() argument 784 fillRectToRect(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& rectToDraw, const SkRect& localRect) fillRectToRect() argument 840 drawQuadSet(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const GrQuadSetEntry quads[], int cnt) drawQuadSet() argument 914 stencilPath(const GrHardClip* clip, GrAA doStencilMSAA, const SkMatrix& viewMatrix, const SkPath& path) stencilPath() argument 952 drawTextureSet(const GrClip* clip, GrTextureSetEntry set[], int cnt, int proxyRunCnt, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, SkBlendMode mode, GrAA aa, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> texXform) drawTextureSet() argument 979 drawVertices(const GrClip* clip, GrPaint&& paint, const SkMatrixProvider& matrixProvider, sk_sp<SkVertices> vertices, GrPrimitiveType* overridePrimType) drawVertices() argument 1005 drawAtlas(const GrClip* clip, GrPaint&& paint, const SkMatrix& viewMatrix, int spriteCount, const SkRSXform xform[], const SkRect texRect[], const SkColor colors[]) drawAtlas() argument 1045 const GrClip* clip = origClip; drawRRect() local 1122 drawFastShadow(const GrClip* clip, const SkMatrix& viewMatrix, const SkPath& path, const SkDrawShadowRec& rec) drawFastShadow() argument 1328 drawRegion(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRegion& region, const GrStyle& style, const GrUserStencilSettings* ss) drawRegion() argument 1363 drawOval(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& oval, const GrStyle& style) drawOval() argument 1427 drawArc(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const GrStyle& style) drawArc() argument 1466 drawImageLattice(const GrClip* clip, GrPaint&& paint, const SkMatrix& viewMatrix, GrSurfaceProxyView view, SkAlphaType alphaType, sk_sp<GrColorSpaceXform> csxf, GrSamplerState::Filter filter, std::unique_ptr<SkLatticeIter> iter, const SkRect& dst) drawImageLattice() argument 1549 drawPath(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkPath& path, const GrStyle& style) drawPath() argument 1564 drawShape(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, GrStyledShape&& shape) drawShape() argument 1588 get_clip_bounds(const SurfaceDrawContext* sdc, const GrClip* clip) get_clip_bounds() argument 1592 drawAndStencilPath(const GrHardClip* clip, const GrUserStencilSettings* ss, SkRegion::Op op, bool invert, GrAA aa, const SkMatrix& viewMatrix, const SkPath& path) drawAndStencilPath() argument 1652 clip, drawAndStencilPath() local 1674 drawStrokedLine(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkPoint points[2], const SkStrokeRec& stroke) drawStrokedLine() argument 1721 drawSimpleShape(const GrClip* clip, GrPaint* paint, GrAA aa, const SkMatrix& viewMatrix, const GrStyledShape& shape) drawSimpleShape() argument 1784 drawShapeUsingPathRenderer(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, GrStyledShape&& shape, bool attemptDrawSimple) drawShapeUsingPathRenderer() argument 1892 clip, drawShapeUsingPathRenderer() local 1901 addDrawOp(const GrClip* clip, GrOp::Owner op, const std::function<WillAddOpFn>& willAddFn) addDrawOp() argument [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_clip_cull_distance_arrays.c | 30 * This pass combines clip and cull distance arrays in separate locations and 37 * Get the length of the clip/cull distance array, looking past 47 * underlying clip/cull distance array length, not the per-vertex in get_unwrapped_array_length() 70 nir_variable *clip = NULL; in combine_clip_cull() local 74 clip = var; in combine_clip_cull() 80 if (!cull && !clip) { in combine_clip_cull() 92 if (!cull && clip) { in combine_clip_cull() 94 if (!clip->data.compact) in combine_clip_cull() 98 * the combined clip/cull distance array was clip in combine_clip_cull() [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_emit.c | 41 /* Clip to the scissor if it's enabled, but still clip to the in vc4_emit_state() 45 * Additionally, always clip the rendering to the viewport, in vc4_emit_state() 62 cl_emit(&job->bcl, CLIP_WINDOW, clip) { in vc4_emit_state() 63 clip.clip_window_left_pixel_coordinate = minx; in vc4_emit_state() 64 clip.clip_window_bottom_pixel_coordinate = miny; in vc4_emit_state() 65 clip.clip_window_height_in_pixels = maxy - miny; in vc4_emit_state() 66 clip.clip_window_width_in_pixels = maxx - minx; in vc4_emit_state() 122 cl_emit(&job->bcl, CLIPPER_XY_SCALING, clip) { in vc4_emit_state() 123 clip.viewport_half_width_in_1_16th_of_pixel = in vc4_emit_state() 125 clip in vc4_emit_state() [all...] |
/third_party/icu/icu4c/source/samples/layout/ |
H A D | Surface.cpp | 21 RECT clip; in drawGlyphs() local 23 clip.top = 0; in drawGlyphs() 24 clip.left = 0; in drawGlyphs() 25 clip.bottom = height; in drawGlyphs() 26 clip.right = width; in drawGlyphs() 30 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip, in drawGlyphs()
|
/third_party/skia/third_party/externals/icu/source/samples/layout/ |
H A D | Surface.cpp | 21 RECT clip; in drawGlyphs() local 23 clip.top = 0; in drawGlyphs() 24 clip.left = 0; in drawGlyphs() 25 clip.bottom = height; in drawGlyphs() 26 clip.right = width; in drawGlyphs() 30 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip, in drawGlyphs()
|
/third_party/skia/experimental/graphite/src/ |
H A D | DrawContext.cpp | 54 const Clip& clip, in stencilAndFillPath() 57 SkASSERT(SkIRect::MakeSize(fTarget->dimensions()).contains(clip.scissor())); in stencilAndFillPath() 58 fPendingDraws->stencilAndFillPath(localToDevice, shape, clip, order,paint); in stencilAndFillPath() 63 const Clip& clip, in fillConvexPath() 66 SkASSERT(SkIRect::MakeSize(fTarget->dimensions()).contains(clip.scissor())); in fillConvexPath() 67 fPendingDraws->fillConvexPath(localToDevice, shape, clip, order, paint); in fillConvexPath() 73 const Clip& clip, in strokePath() 76 SkASSERT(SkIRect::MakeSize(fTarget->dimensions()).contains(clip.scissor())); in strokePath() 77 fPendingDraws->strokePath(localToDevice, shape, stroke, clip, order, paint); in strokePath() 52 stencilAndFillPath(const Transform& localToDevice, const Shape& shape, const Clip& clip, DrawOrder order, const PaintParams* paint) stencilAndFillPath() argument 61 fillConvexPath(const Transform& localToDevice, const Shape& shape, const Clip& clip, DrawOrder order, const PaintParams* paint) fillConvexPath() argument 70 strokePath(const Transform& localToDevice, const Shape& shape, const StrokeParams& stroke, const Clip& clip, DrawOrder order, const PaintParams* paint) strokePath() argument
|
/third_party/mesa3d/src/mesa/main/ |
H A D | blit.c | 371 } clip; in do_blit_framebuffer() local 380 clip.srcX0 = srcX0; in do_blit_framebuffer() 381 clip.srcY0 = srcY0; in do_blit_framebuffer() 382 clip.srcX1 = srcX1; in do_blit_framebuffer() 383 clip.srcY1 = srcY1; in do_blit_framebuffer() 384 clip.dstX0 = dstX0; in do_blit_framebuffer() 385 clip.dstY0 = dstY0; in do_blit_framebuffer() 386 clip.dstX1 = dstX1; in do_blit_framebuffer() 387 clip.dstY1 = dstY1; in do_blit_framebuffer() 396 &clip in do_blit_framebuffer() [all...] |
/third_party/skia/third_party/externals/libwebp/src/dec/ |
H A D | quant_dec.c | 16 static WEBP_INLINE int clip(int v, int M) { in clip() function 96 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)]; in VP8ParseQuant() 97 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)]; in VP8ParseQuant() 99 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2; in VP8ParseQuant() 103 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16; in VP8ParseQuant() 106 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; in VP8ParseQuant() 107 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)]; in VP8ParseQuant()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_crystalizer.c | 30 int clip; member 40 { "c", "enable clipping", OFFSET(clip), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, A }, 55 #define filters(fmt, type, inverse, clp, inverset, clip, one, clip_fn, packed) \ 87 if (clip) { \ 111 if (clip) { \ 122 filters(flt, float, inverse, clip, 1, 1, 1.f, av_clipf, 1) 124 filters(flt, float, noinverse, clip, 0, 1, 1.f, av_clipf, 1) 127 filters(fltp, float, inverse, clip, 1, 1, 1.f, av_clipf, 0) 129 filters(fltp, float, noinverse, clip, 0, 1, 1.f, av_clipf, 0) 132 filters(dbl, double, inverse, clip, [all...] |
/third_party/skia/modules/skparagraph/src/ |
H A D | TextLine.cpp | 381 roundRectAttrs.push_back({style.getStyleId(), style.getBackgroundRect(), context.clip}); 411 auto clip = SkRect::MakeXYWH(0.0f, this->sizes().runTop(&run, this->fAscentStyle), local 430 /*clip=*/clip, // entire line 551 SkRect result = context.clip; 598 record.fClipRect = context.clip.makeOffset(this->offset()); 671 painter->drawRect(context.clip.makeOffset(this->offset() + SkPoint::Make(x, y)), 729 SkRect clip = extendHeight(context); local 730 clip.offset(x, y); 731 clip [all...] |