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

1234567891011>>

/external/skia/src/gpu/
H A DGrRenderTargetOpList.h79 GrAppliedClip&& clip, const DstTexture& dstTexture) {
80 this->recordOp(std::move(op), renderTargetContext, clip.doesClip() ? &clip : nullptr,
118 friend class GrRenderTargetContextPriv; // for clearStencilClip and stencil clip state.
78 addOp(std::unique_ptr<GrOp> op, GrRenderTargetContext* renderTargetContext, GrAppliedClip&& clip, const DstTexture& dstTexture) argument
H A DGrRenderTargetOpList.cpp274 GrAppliedClip* clip,
310 if (this->combineIfPossible(candidate, op.get(), clip, dstTexture)) {
334 if (clip) {
335 clip = fClipAllocator.make<GrAppliedClip>(std::move(*clip));
337 fRecordedOps.emplace_back(std::move(op), renderTarget, clip, dstTexture); local
390 void GrRenderTargetOpList::clearStencilClip(const GrFixedClip& clip, argument
393 this->recordOp(GrClearStencilClipOp::Make(clip, insideStencilMask,
272 recordOp(std::unique_ptr<GrOp> op, GrRenderTargetContext* renderTargetContext, GrAppliedClip* clip, const DstTexture* dstTexture) argument
H A DSkGpuDevice.cpp288 fRenderTargetContext->drawPaint(this->clip(), std::move(grPaint), this->ctm());
347 fRenderTargetContext->drawPath(this->clip(), std::move(grPaint),
391 fRenderTargetContext->drawVertices(this->clip(),
417 this->clip(), path, paint, this->ctm(), nullptr,
429 fRenderTargetContext->drawRect(this->clip(), std::move(grPaint),
468 std::move(grPaint), this->clip(), this->ctm(),
486 this->clip(), path, paint, this->ctm(), nullptr,
493 fRenderTargetContext->drawRRect(this->clip(), std::move(grPaint),
521 fRenderTargetContext->drawDRRect(this->clip(), std::move(grPaint),
533 GrBlurUtils::drawPathWithMaskFilter(fContext.get(), fRenderTargetContext.get(), this->clip(),
738 determine_clipped_src_rect(int width, int height, const GrClip& clip, const SkMatrix& viewMatrix, const SkMatrix& srcToDstRect, const SkISize& imageSize, const SkRect* srcRectPtr, SkIRect* clippedSrcIRect) argument
[all...]
/external/skia/tests/
H A DRecordingXfermodeTest.cpp98 // Then it then replays the scene through a clip rectangle.
147 const SkRect& clip = SkRect::MakeXYWH(100, 0, 100, 100); local
150 const SkBitmap& goldenBM = golden.recordAndReplay(drawer, clip, mode);
151 const SkBitmap& pictureBM = picture.recordAndReplay(drawer, clip, mode);
/external/skia/gm/
H A Dconvexpolyclip.cpp164 const Clip* clip = iter.get(); variable
169 clip->getBounds(&bounds);
177 clip->setOnCanvas(canvas, kIntersect_SkClipOp, SkToBool(aa));
192 clip->getBounds(&bounds);
201 clip->asClosedPath(&closedClipPath);
203 clip->setOnCanvas(canvas, kIntersect_SkClipOp, SkToBool(aa));
H A Dimagemakewithfilter.cpp19 static void show_bounds(SkCanvas* canvas, const SkIRect& subset, const SkIRect& clip) { argument
20 SkIRect rects[] { subset, clip };
H A Dcomplexclip2.cpp26 ComplexClip2GM(Clip clip, bool antiAlias) argument
27 : fClip(clip)
110 static const char* ClipStr(Clip clip) { argument
111 switch (clip) {
119 SkDEBUGFAIL("Unknown clip type.");
H A Daarectmodes.cpp56 SkRect clip = {0, 130, 772, 531}; local
57 canvas->clipRect(clip);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dgen6_viewport_state.c34 /* The clip VP defines the guardband region where expensive clipping is skipped
39 * different clip/no clip paths depending on whether the rest of the prim ends
48 sizeof(*vp), 32, &brw->clip.vp_offset);
119 OUT_BATCH(brw->clip.vp_offset);
H A Dbrw_clip.c117 printf("clip:\n");
129 &brw->clip.prog_offset, &brw->clip.prog_data);
249 &brw->clip.prog_offset, &brw->clip.prog_data)) {
/external/skia/samplecode/
H A DSampleAAClip.cpp42 static void drawClip(SkCanvas* canvas, const SkAAClip& clip) { argument
46 clip.copyToMask(&mask);
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 DSkAAClip.h32 // Returns true iff the clip is not empty, and is just a hard-edged rect (no partial alpha).
33 // If true, getBounds() can be used in place of this clip.
39 bool setPath(const SkPath&, const SkRegion* clip = nullptr, bool doAA = true);
116 void blitMask(const SkMask&, const SkIRect& clip) override;
H A DSkAAClip.cpp18 AutoAAClipValidate(const SkAAClip& clip) : fClip(clip) { argument
29 #define AUTO_AACLIP_VALIDATE(clip) AutoAAClipValidate acv(clip)
31 #define AUTO_AACLIP_VALIDATE(clip)
134 SkAAClip::Iter::Iter(const SkAAClip& clip) { argument
135 if (clip.isEmpty()) {
137 fTop = fBottom = clip.fBounds.fBottom;
144 const RunHead* head = clip.fRunHead;
150 fTop = clip
1390 setPath(const SkPath& path, const SkRegion* clip, bool doAA) argument
1790 SkAAClip clip; local
1821 SkAAClip clip; local
1826 op(const SkAAClip& clip, SkRegion::Op op) argument
2183 blitMask(const SkMask& origMask, const SkIRect& clip) argument
[all...]
H A DSkRasterClipStack.h131 const SkRasterClip& clip = this->rc(); local
133 SkASSERT(clip.isEmpty());
134 } else if (!clip.isEmpty()) {
135 SkASSERT(fRootBounds.contains(clip.getBounds()));
H A DSkSpriteBlitter.h30 void blitMask(const SkMask&, const SkIRect& clip) override;
H A DSkBlitMask_D32.cpp55 const SkIRect& clip, SkColor color) {
56 int x = clip.fLeft, y = clip.fTop;
61 color, clip.width(), clip.height());
69 color, clip.width(), clip.height());
54 BlitColor(const SkPixmap& device, const SkMask& mask, const SkIRect& clip, SkColor color) argument
H A DSkRegion_path.cpp315 static bool check_inverse_on_empty_return(SkRegion* dst, const SkPath& path, const SkRegion& clip) { argument
317 return dst->set(clip);
323 bool SkRegion::setPath(const SkPath& path, const SkRegion& clip) { argument
326 if (clip.isEmpty()) {
331 return check_inverse_on_empty_return(this, path, clip);
338 return check_inverse_on_empty_return(this, path, clip);
342 int clipTransitions = clip.count_runtype_values(&clipTop, &clipBot);
347 return check_inverse_on_empty_return(this, path, clip);
359 SkScan::FillPath(path, clip, &builder);
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_clip.c114 static void interp( const struct clip_stage *clip, argument
120 const unsigned nr_attrs = draw_current_shader_outputs(clip->stage.draw);
121 const unsigned pos_attr = draw_current_shader_position_output(clip->stage.draw);
122 const unsigned clip_attr = draw_current_shader_clipvertex_output(clip->stage.draw);
133 /* Interpolate the clip-space coords.
135 interp_attr(dst->clip, t, in->clip, out->clip);
136 /* interpolate the clip-space position */
144 const float *scale = clip
[all...]
H A Ddraw_pipe.c48 draw->pipeline.clip = draw_clip_stage( draw );
60 !draw->pipeline.clip ||
91 if (draw->pipeline.clip)
92 draw->pipeline.clip->destroy( draw->pipeline.clip );
/external/skia/debugger/QT/
H A DSkInspectorWidget.h63 Sets the text in the current clip.
66 void setClip(const SkIRect& clip);
/external/skia/src/gpu/ops/
H A DGrDrawPathOp.h31 bool xpRequiresDstTexture(const GrCaps& caps, const GrAppliedClip* clip) override {
33 this->doFragmentProcessorAnalysis(caps, clip));
45 const GrCaps& caps, const GrAppliedClip* clip) {
47 &fAnalysis, fAnalysis.inputColor(), GrPipelineAnalysisCoverage::kNone, clip, caps);
44 doFragmentProcessorAnalysis( const GrCaps& caps, const GrAppliedClip* clip) argument
/external/curl/src/
H A Dtool_doswin.c211 char *clip = NULL; local
218 clip = p;
221 if(clip) {
222 *clip = '\0';
223 len = clip - target;
/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...]
/external/icu/icu4c/source/samples/layout/
H A DGDIFontInstance.cpp66 RECT clip; local
68 clip.top = 0;
69 clip.left = 0;
70 clip.bottom = height;
71 clip.right = width;
99 ExtTextOut(fHdc, x + (le_int32) xOffset, y + (le_int32) yOffset - font->getAscent(), ETO_CLIPPED | ETO_GLYPH_INDEX, &clip,

Completed in 8026 milliseconds

1234567891011>>