Searched defs:clip (Results 101 - 125 of 176) sorted by relevance

12345678

/external/mesa3d/src/mesa/state_tracker/
H A Dst_context.h105 struct pipe_clip_state clip; member in struct:st_context::__anon15311
/external/pdfium/core/fxge/dib/
H A Dfx_dib_transform.cpp282 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, argument
289 rect.left = height - clip.top;
290 rect.right = height - clip.bottom;
292 rect.left = clip.top;
293 rect.right = clip.bottom;
296 rect.top = width - clip.left;
297 rect.bottom = width - clip.right;
299 rect.top = clip.left;
300 rect.bottom = clip.right;
/external/pdfium/third_party/agg23/
H A Dagg_basics.h88 bool clip(const self_type& r) function in struct:agg::rect_base
/external/skia/samplecode/
H A DSampleAll.cpp310 SkRect clip; local
311 clip.set(0, 0, SkIntToScalar(160), SkIntToScalar(160));
314 canvas->clipRect(clip);
317 if (clip.fRight < SkIntToScalar(320))
318 clip.offset(SkIntToScalar(160), 0);
319 else if (clip.fBottom < SkIntToScalar(480))
320 clip.offset(-SkIntToScalar(320), SkIntToScalar(160));
389 // !!! draw through a clip
392 SkRect clip = {0, 0, SkIntToScalar(320), SkIntToScalar(120)}; local
393 canvas->clipRect(clip);
[all...]
/external/skia/src/core/
H A DSkBlitter_RGB16.cpp196 const SkIRect& clip) {
198 SkRGB16_Black_BlitBW(fDevice, mask, clip);
200 uint16_t* SK_RESTRICT device = fDevice.writable_addr16(clip.fLeft, clip.fTop);
201 const uint8_t* SK_RESTRICT alpha = mask.getAddr8(clip.fLeft, clip.fTop);
202 unsigned width = clip.width();
203 unsigned height = clip.height();
363 const SkIRect& clip) {
365 SkRGB16_BlitBW(fDevice, mask, clip, fColor1
195 blitMask(const SkMask& mask, const SkIRect& clip) argument
362 blitMask(const SkMask& mask, const SkIRect& clip) argument
610 blitMask(const SkMask& mask, const SkIRect& clip) argument
[all...]
H A DSkPicturePlayback.cpp509 SkRect clip = canvas->getLocalClipBounds(); local
510 if (top < clip.fBottom && bottom > clip.fTop && paint && text.text()) {
538 SkRect clip = canvas->getLocalClipBounds(); local
539 if (top < clip.fBottom && bottom > clip.fTop && paint && text.text()) {
614 SkRect clip = canvas->getLocalClipBounds(); local
617 if (top < clip.fBottom && bottom > clip.fTop && paint && text.text()) {
H A DSkRecordDraw.cpp21 // Draw only ops that affect pixels in the canvas's current clip.
24 // this canvas' clip bounds transformed back into identity space, which
216 // The paint could do anything to our bounds. The only safe answer is the current clip.
229 // Nothing can draw outside the current clip.
252 // Most ops don't change the clip.
255 // Clip{Path,RRect,Rect,Region} obviously change the clip. They all know their bounds already.
261 // The bounds of clip ops need to be adjusted for the paints of saveLayers they're inside.
263 Bounds clip = SkRect::Make(devBounds); local
265 // clip bounds with the previous clip, exactl
280 Bounds clip = SkRect::Make(op.devBounds); local
[all...]
H A DSkScalerContext.cpp387 SkRasterClip clip; local
388 clip.setRect(SkIRect::MakeWH(dstW, dstH));
406 draw.fRC = &clip;
H A DSkScan_Path.cpp288 // check our bottom clip
305 void setBlitter(SkBlitter* blitter, const SkIRect& clip, int shift) { argument
307 fFirstX = clip.fLeft << shift;
308 fLastX = clip.fRight << shift;
340 void blitMask(const SkMask&, const SkIRect& clip) override {
401 // If we're convex, then we need both edges, even the right edge is past the clip
415 * we need to restrict our drawing to the intersection of the clip
479 void sk_blit_above(SkBlitter* blitter, const SkIRect& ir, const SkRegion& clip) { argument
480 const SkIRect& cr = clip.getBounds();
488 blitter->blitRectRegion(tmp, clip);
492 sk_blit_below(SkBlitter* blitter, const SkIRect& ir, const SkRegion& clip) argument
512 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& ir, bool skipRejectTest) argument
751 FillTriangle(const SkPoint pts[], const SkRasterClip& clip, SkBlitter* blitter) argument
[all...]
/external/skia/src/effects/
H A DSkMorphologyImageFilter.cpp400 const GrClip& clip,
417 renderTargetContext->fillRectToRect(clip, std::move(paint), GrAA::kNo, SkMatrix::I(),
422 const GrClip& clip,
437 renderTargetContext->fillRectToRect(clip, std::move(paint), GrAA::kNo, SkMatrix::I(),
442 const GrClip& clip,
474 apply_morphology_rect(renderTargetContext, clip, std::move(textureProxy),
478 apply_morphology_rect(renderTargetContext, clip, textureProxy,
480 apply_morphology_rect(renderTargetContext, clip, textureProxy,
482 apply_morphology_rect_no_bounds(renderTargetContext, clip, std::move(textureProxy),
499 // setup new clip
399 apply_morphology_rect(GrRenderTargetContext* renderTargetContext, const GrClip& clip, sk_sp<GrTextureProxy> proxy, const SkIRect& srcRect, const SkIRect& dstRect, int radius, GrMorphologyEffect::MorphologyType morphType, const float bounds[2], Gr1DKernelEffect::Direction direction) argument
421 apply_morphology_rect_no_bounds(GrRenderTargetContext* renderTargetContext, const GrClip& clip, sk_sp<GrTextureProxy> proxy, const SkIRect& srcRect, const SkIRect& dstRect, int radius, GrMorphologyEffect::MorphologyType morphType, Gr1DKernelEffect::Direction direction) argument
441 apply_morphology_pass(GrRenderTargetContext* renderTargetContext, const GrClip& clip, sk_sp<GrTextureProxy> textureProxy, const SkIRect& srcRect, const SkIRect& dstRect, int radius, GrMorphologyEffect::MorphologyType morphType, Gr1DKernelEffect::Direction direction) argument
[all...]
/external/skia/src/gpu/
H A DGrReducedClip.cpp31 * take a rect in case the caller knows a bound on what is to be drawn through this clip.
55 // "Is intersection of rects" means the clip is a single rect indicated by the stack bounds.
60 // The clip is a non-aa rect. This is the one spot where we can actually implement the
61 // clip (using fIBounds) rather than just telling the caller what it should be.
78 // Implement the clip with an AA rect element.
89 // Tighten the query by introducing a new clip at the stack's pixel boundaries. (This new
90 // clip will be enforced by the scissor through fIBounds.)
120 // During our backwards walk, track whether we've seen ops that either grow or shrink the clip.
121 // TODO: track these per saved clip so that we can consider them on the forward pass.
153 // the clip empt
528 stencil_element(GrRenderTargetContext* rtc, const GrFixedClip& clip, const GrUserStencilSettings* ss, const SkMatrix& viewMatrix, const SkClipStack::Element* element) argument
560 draw_element(GrRenderTargetContext* rtc, const GrClip& clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkClipStack::Element* element) argument
[all...]
/external/skia/src/gpu/instanced/
H A DInstancedRendering.cpp335 bool InstancedRendering::Op::xpRequiresDstTexture(const GrCaps& caps, const GrAppliedClip* clip) { argument
345 coverageInput, clip, caps);
486 const GrAppliedClip* clip = state->drawOpArgs().fAppliedClip; local
487 analysis.init(colorInput, coverageInput, fProcessors, clip, state->caps());
492 args.fAppliedClip = clip;
/external/skia/src/gpu/ops/
H A DGrDefaultPathRenderer.cpp413 const GrClip& clip,
558 renderTargetContext->addMeshDrawOp(pipelineBuilder, clip, std::move(op));
571 renderTargetContext->addMeshDrawOp(pipelineBuilder, clip, std::move(op));
409 internalDrawPath(GrRenderTargetContext* renderTargetContext, GrPaint&& paint, GrAAType aaType, const GrUserStencilSettings& userStencilSettings, const GrClip& clip, const SkMatrix& viewMatrix, const GrShape& shape, bool stencilOnly) argument
/external/skia/src/gpu/text/
H A DGrAtlasTextBlob.cpp291 inline void GrAtlasTextBlob::flushRun(GrRenderTargetContext* rtc, const GrClip& clip, int run, argument
313 rtc->addMeshDrawOp(pipelineBuilder, clip, std::move(op));
338 const GrClip& clip, const SkPaint& paint,
353 GrBlurUtils::drawPathWithMaskFilter(context, rtc, clip, bigGlyph.fPath, paint, ctm, nullptr,
360 const GrClip& clip, const GrTextUtils::Paint& paint,
373 GrTextUtils::DrawTextAsPath(context, rtc, clip, runPaint, viewMatrix,
378 GrTextUtils::DrawPosTextAsPath(context, rtc, props, clip, runPaint, viewMatrix,
383 GrTextUtils::DrawPosTextAsPath(context, rtc, props, clip, runPaint, viewMatrix,
394 const GrClip& clip, const SkMatrix& viewMatrix,
401 this->flushRunAsPaths(context, rtc, props, it, clip, pain
337 flushBigGlyphs(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& paint, const SkMatrix& viewMatrix, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
358 flushRunAsPaths(GrContext* context, GrRenderTargetContext* rtc, const SkSurfaceProps& props, const SkTextBlobRunIterator& it, const GrClip& clip, const GrTextUtils::Paint& paint, SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y) argument
390 flushCached(GrContext* context, GrRenderTargetContext* rtc, const SkTextBlob* blob, const SkSurfaceProps& props, const GrDistanceFieldAdjustTable* distanceAdjustTable, const GrTextUtils::Paint& paint, SkDrawFilter* drawFilter, const GrClip& clip, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y) argument
413 flushThrowaway(GrContext* context, GrRenderTargetContext* rtc, const SkSurfaceProps& props, const GrDistanceFieldAdjustTable* distanceAdjustTable, const GrTextUtils::Paint& paint, const GrClip& clip, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y) argument
[all...]
H A DGrStencilAndCoverTextContext.cpp72 const GrClip& clip, const SkPaint& skPaint,
82 run.draw(context, rtc, clip, viewMatrix, props, 0, 0, clipBounds, fFallbackTextContext,
88 fFallbackTextContext->drawText(context, rtc, clip, skPaint, viewMatrix, props, text,
94 GrTextUtils::DrawTextAsPath(context, rtc, clip, skPaint, viewMatrix, text, byteLength, x, y,
99 const GrClip& clip, const SkPaint& skPaint,
111 run.draw(context, rtc, clip, viewMatrix, props, 0, 0, clipBounds, fFallbackTextContext,
117 fFallbackTextContext->drawPosText(context, rtc, clip, skPaint, viewMatrix, props, text,
123 GrTextUtils::DrawPosTextAsPath(context, rtc, props, clip, skPaint, viewMatrix, text,
129 const GrClip& clip,
149 this->drawText(context, rtc, clip, runPain
71 drawText(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
98 drawPosText(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
127 uncachedDrawTextBlob(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) argument
167 drawTextBlob(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const SkTextBlob* skBlob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) argument
566 draw(GrContext* ctx, GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkMatrix& viewMatrix, const SkSurfaceProps& props, SkScalar x, SkScalar y, const SkIRect& clipBounds, GrAtlasTextContext* fallbackTextContext, const SkPaint& originalSkPaint) const argument
[all...]
H A DGrTextUtils.cpp165 // keep them as ints until we've done the clip-test
485 void GrTextUtils::DrawTextAsPath(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, argument
502 GrBlurUtils::drawPathWithMaskFilter(context, rtc, clip, *iterPath,
512 const GrClip& clip,
554 GrBlurUtils::drawPathWithMaskFilter(context, rtc, clip, *path, paint,
509 DrawPosTextAsPath(GrContext* context, GrRenderTargetContext* rtc, const SkSurfaceProps& props, const GrClip& clip, const SkPaint& origPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
/external/webp/src/enc/
H A Danalysis_enc.c72 static WEBP_INLINE int clip(int v, int m, int M) { function
94 enc->dqm_[n].alpha_ = clip(alpha, -127, 127);
95 enc->dqm_[n].beta_ = clip(beta, 0, 255);
110 return clip(alpha, 0, MAX_ALPHA);
/external/mesa3d/src/gallium/auxiliary/cso_cache/
H A Dcso_context.c112 struct pipe_clip_state clip; member in struct:cso_context
774 /* clip state */
792 const struct pipe_clip_state *clip)
794 if (clip_state_cmp(&ctx->clip, clip)) {
795 clip_state_cpy(&ctx->clip, clip);
796 ctx->pipe->set_clip_state(ctx->pipe, clip);
803 clip_state_cpy(&ctx->clip_saved, &ctx->clip);
809 if (clip_state_cmp(&ctx->clip,
791 cso_set_clip(struct cso_context *ctx, const struct pipe_clip_state *clip) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_private.h79 float clip[4]; member in struct:vertex_header
109 struct draw_stage *clip; member in struct:draw_context::__anon14444
219 boolean force_passthrough; /**< never clip or shade */
/external/mesa3d/src/gallium/drivers/galahad/
H A Dglhd_context.c446 const struct pipe_clip_state *clip)
452 clip);
445 galahad_context_set_clip_state(struct pipe_context *_pipe, const struct pipe_clip_state *clip) argument
/external/mesa3d/src/gallium/drivers/identity/
H A Did_context.c410 const struct pipe_clip_state *clip)
416 clip);
409 identity_set_clip_state(struct pipe_context *_pipe, const struct pipe_clip_state *clip) argument
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_emit.c71 struct r300_clip_state* clip = (struct r300_clip_state*)state; local
74 WRITE_CS_TABLE(clip->cb, size);
/external/mesa3d/src/gallium/drivers/rbug/
H A Drbug_context.c608 const struct pipe_clip_state *clip)
615 clip);
607 rbug_set_clip_state(struct pipe_context *_pipe, const struct pipe_clip_state *clip) argument
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_xv.c86 RegionRec clip; member in struct:xorg_xv_port_priv
104 REGION_EMPTY(pScrn->pScreen, &priv->clip);
651 REGION_NULL(pScreen, &priv->clip);
/external/mesa3d/src/mesa/swrast/
H A Ds_span.c1537 /* right clip */
1538 GLint clip = x + count - rb->Width; local
1539 count -= clip;
1543 /* left clip */

Completed in 6134 milliseconds

12345678