Home
last modified time | relevance | path

Searched refs:fClip (Results 1 - 25 of 47) sorted by relevance

12

/third_party/skia/src/gpu/v1/
H A DStencilMaskHelper.cpp327 args.fClip = &clip; in stencil_path()
348 , fClip(sdc->dimensions()) { in StencilMaskHelper()
357 fClip.setStencilClip(genID); in init()
359 SkAssertResult(fClip.fixedClip().setScissor(bounds)); in init()
361 fClip.fixedClip().setWindowRectangles( in init()
383 draw_stencil_rect(fSDC, fClip.fixedClip(), &gDrawToStencil, matrix, rect, aa); in drawRect()
390 draw_stencil_rect(fSDC, fClip, *pass, matrix, rect, aa); in drawRect()
392 draw_stencil_rect(fSDC, fClip, *pass, SkMatrix::I(), in drawRect()
393 SkRect::Make(fClip.fixedClip().scissorRect()), aa); in drawRect()
430 canDrawArgs.fClipConservativeBounds = &fClip in drawPath()
[all...]
H A DDevice_v1.h154 void onSave() override { fClip.save(); }
155 void onRestore() override { fClip.restore(); }
159 fClip.clipRect(this->localToDevice(), rect, GrAA(aa), op);
163 fClip.clipRRect(this->localToDevice(), rrect, GrAA(aa), op);
167 fClip.clipShader(std::move(shader));
172 fClip.replaceClip(deviceRect.round());
180 return fClip.clipState() == ClipStack::ClipState::kWideOpen;
182 SkIRect onDevClipBounds() const override { return fClip.getConservativeBounds(); }
187 ClipStack fClip; member in skgpu::v1::final
203 const GrClip* clip() const { return &fClip; } in clip()
[all...]
H A DPathRenderer.h123 const GrClip* fClip; member
154 const GrHardClip* fClip; member
H A DDevice.cpp185 , fClip(SkIRect::MakeSize(fSurfaceDrawContext->dimensions()), in Device()
257 fClip.clipPath(this->localToDevice(), path, GrAA(aa), op); in onClipPath()
267 fClip.clipRect(SkMatrix::I(), SkRect::MakeEmpty(), aa, op); in onClipRegion()
269 fClip.clipRect(this->globalToDevice().asM33(), SkRect::Make(globalRgn.getBounds()), aa, op); in onClipRegion()
273 fClip.clipPath(this->globalToDevice().asM33(), path, aa, op); in onClipRegion()
278 SkIRect bounds = fClip.getConservativeBounds(); in onAsRgnClip()
282 for (const ClipStack::Element& e : fClip) { in onAsRgnClip()
298 for (const ClipStack::Element& e : fClip) { in onClipIsAA()
308 ClipStack::ClipState state = fClip.clipState(); in onGetClipType()
H A DStencilMaskHelper.h65 StencilClip fClip; member in skgpu::v1::StencilMaskHelper
/third_party/skia/samplecode/
H A DSampleMegaStroke.cpp16 fClip.setLTRB(0, 0, 950, 600); in MegaStrokeView()
32 fClip.setLTRB(0, 0, 950, 600);
47 canvas->clipRect(fClip);
65 fClip = divSim;
69 fClip.setWH(950, 600);
76 SkRect fClip; member in MegaStrokeView
H A DSamplePathClip.cpp152 SkRect fClip; member in EdgeClipView
155 EdgeClipView() : fClip(SkRect::MakeLTRB(150, 150, 550, 450)) { in EdgeClipView()
201 canvas->drawRect(fClip, p);
206 canvas->clipRect(fClip);
221 draw_clipped_line(canvas, fClip, fPoly[i], fPoly[j], p);
291 if (fClip.intersects(SkRect::MakeLTRB(x - 1, y - 1, x + 1, y + 1))) {
292 return new DragRectClick(&fClip);
/third_party/skia/modules/skottie/src/effects/
H A DLevelsEffect.cpp138 .bind(kClipToOutBlack_Index, fClip.fClipBlack ) in EasyLevelsEffectAdapter()
139 .bind(kClipToOutWhite_Index, fClip.fClipWhite ); in EasyLevelsEffectAdapter()
154 if (channel < kRGB_Channel || channel > kA_Channel || !fMapper.build_lut(lut, fClip)) {
168 ClipInfo fClip; member in skottie::internal::__anon18557::final
266 auto cf = SkTableColorFilter::MakeARGB(fAMapper.build_lut(a_lut_storage, fClip),
267 fRMapper.build_lut(r_lut_storage, fClip),
268 fGMapper.build_lut(g_lut_storage, fClip),
269 fBMapper.build_lut(b_lut_storage, fClip));
272 if (const auto* rgb_lut = fRGBMapper.build_lut(a_lut_storage, fClip)) {
289 ClipInfo fClip; member in skottie::internal::__anon18557::final
[all...]
/third_party/skia/tools/
H A DDDLTileHelper.cpp28 fClip = clip; in init()
48 auto recordingChar = fPlaybackChar.createResized(fClip.width(), fClip.height()); in createDDL()
58 recordingCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip.height())); in createDDL()
59 recordingCanvas->translate(-fClip.fLeft, -fClip.fTop); in createDDL()
140 SkASSERT(this->padOffset().isZero() && this->paddedRectSize() == fClip.size()); in drawSKPDirectly()
141 tileCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip in drawSKPDirectly()
[all...]
H A DDDLTileHelper.h63 SkIRect clipRect() const { return fClip; } in clipRect()
65 return { fClip.width() + fPaddingOutsets.fLeft + fPaddingOutsets.fRight, in paddedRectSize()
66 fClip.height() + fPaddingOutsets.fTop + fPaddingOutsets.fBottom }; in paddedRectSize()
84 SkIRect fClip; // in the device space of the final SkSurface member in DDLTileHelper::TileData
/third_party/skia/src/core/
H A DSkQuadClipper.cpp14 fClip.setEmpty(); in SkQuadClipper()
19 fClip.set(clip); in setClip()
68 const SkScalar ctop = fClip.fTop; in clipQuad()
69 const SkScalar cbot = fClip.fBottom; in clipQuad()
H A DSkCubicClipper.cpp15 fClip.setEmpty(); in SkCubicClipper()
20 fClip.set(clip); in setClip()
125 const SkScalar ctop = fClip.fTop; in clipCubic()
126 const SkScalar cbot = fClip.fBottom; in clipCubic()
H A DSkCubicClipper.h31 SkRect fClip; member in SkCubicClipper
H A DSkDraw.cpp95 const SkRegion* fClip; member
115 SkASSERT(rec.fClip->isRect()); in bw_pt_rect_hair_proc()
116 const SkIRect& r = rec.fClip->getBounds(); in bw_pt_rect_hair_proc()
174 if (rec.fClip->contains(x, y)) { in bw_pt_hair_proc()
274 fClip = nullptr; in init()
288 fClip = &fRC->bwRgn(); in chooseProc()
291 fClip = &fWrapper.getRgn(); in chooseProc()
314 if (SkCanvas::kPoints_PointMode == fMode && fClip->isRect()) { in chooseProc()
/third_party/skia/gm/
H A Dcomplexclip2.cpp33 : fClip(clip) in ComplexClip2GM()
126 if (kRect_Clip == fClip && !fAntiAlias) {
132 ClipStr(fClip),
161 switch (fClip) {
175 switch (fClip) {
199 Clip fClip; member in skiagm::ComplexClip2GM
/third_party/skia/experimental/xform/
H A DSkXform.h46 bool isCached() const { return !!fClip; } in isCached()
50 ClipCache* clip() const { return fClip.get(); } in clip()
71 sk_sp<ClipCache> fClip; member in Xform
77 void internalInvalidateCaches() { fClip = nullptr; } in internalInvalidateCaches()
/third_party/skia/src/gpu/ops/
H A DTessellationPathRenderer.cpp153 sdc->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
160 args.fSurfaceDrawContext->drawPaint(args.fClip, std::move(args.fPaint), in onDrawPath()
176 sdc->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
192 sdc->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
237 sdc->addDrawOp(args.fClip, std::move(op)); in onStencilPath()
249 sdc->addDrawOp(args.fClip, std::move(op)); in onStencilPath()
H A DAtlasPathRenderer.cpp291 if (!is_visible(pathDevBounds, args.fClip->getConservativeBounds())) { in onDrawPath()
294 args.fSurfaceDrawContext->drawPaint(args.fClip, std::move(args.fPaint), in onDrawPath()
308 ? (args.fClip in onDrawPath()
309 ? args.fClip->getConservativeBounds() in onDrawPath()
320 args.fSurfaceDrawContext->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
H A DSoftwarePathRenderer.cpp252 args.fClip, *args.fShape, in onDrawPath()
258 *args.fUserStencilSettings, args.fClip, *args.fViewMatrix, in onDrawPath()
392 *args.fUserStencilSettings, args.fClip, *args.fViewMatrix, devClipBounds, in onDrawPath()
396 *args.fUserStencilSettings, args.fClip, *args.fViewMatrix, in onDrawPath()
/third_party/skia/bench/
H A DSKPBench.cpp25 , fClip(clip) in SKPBench()
48 bounds.intersect(fClip); in onPerCanvasPreDraw()
103 return SkIPoint::Make(fClip.width(), fClip.height()); in onGetSize()
H A Dnanobench.cpp633 &fClip.fLeft, &fClip.fTop, &fClip.fRight, &fClip.fBottom)) { in BenchmarkStream()
825 return new SKPBench(name.c_str(), pic.get(), fClip, fScales[fCurrentScale], in rawNext()
834 return new SKPBench(SkOSPath::Basename(path).c_str(), pic.get(), fClip, in rawNext()
858 return new SKPAnimationBench(name.c_str(), pic.get(), fClip, std::move(animation), in rawNext()
1078 SkStringPrintf("%d %d %d %d", fClip.fLeft, fClip.fTop, in fillCurrentOptions()
1079 fClip in fillCurrentOptions()
[all...]
/third_party/skia/experimental/graphite/src/
H A DDrawPass.cpp184 if (occlusionCuller && occlusionCuller->isOccluded(draw.fClip.drawBounds(), in Make()
224 passBounds.join(draw.fClip.drawBounds()); in Make()
303 if (draw.fClip.scissor() != lastScissor) { in Make()
H A DDrawList.h201 Clip fClip; member
213 , fClip(clip) in Draw()
/third_party/skia/tests/
H A DBlendTest.cpp102 SkRect fClip; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() member
141 canvas->clipRect(testCase.fClip, false); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/skia/tools/debugger/
H A DDebugCanvas.h97 const SkIRect& getCurrentClip() { return fClip; } in getCurrentClip()
209 SkIRect fClip; member in DebugCanvas

Completed in 28 milliseconds

12