Home
last modified time | relevance | path

Searched refs:fClip (Results 1 – 25 of 91) sorted by relevance

1234

/third_party/flutter/skia/src/gpu/ops/
DGrClearOp.h38 if (fClip.scissorEnabled()) { in dumpInfo()
39 const SkIRect& r = fClip.scissorRect(); in dumpInfo()
59 , fClip(GrFixedClip(rect)) in GrClearOp()
63 fClip.disableScissor(); in GrClearOp()
73 if (fClip.windowRectsState() != cb->fClip.windowRectsState()) { in onCombineIfPossible()
77 fClip = cb->fClip; in onCombineIfPossible()
88 return !fClip.scissorEnabled() || in contains()
89 (that->fClip.scissorEnabled() && in contains()
90 fClip.scissorRect().contains(that->fClip.scissorRect())); in contains()
97 GrFixedClip fClip; variable
DGrClearOp.cpp44 , fClip(clip) in GrClearOp()
47 if (fClip.scissorEnabled()) { in GrClearOp()
49 if (!fClip.intersect(rtRect)) { in GrClearOp()
51 fClip = GrFixedClip(SkIRect::MakeEmpty()); in GrClearOp()
54 if (GrProxyProvider::IsFunctionallyExact(proxy) && fClip.scissorRect() == rtRect) { in GrClearOp()
55 fClip.disableScissor(); in GrClearOp()
58 this->setBounds(SkRect::Make(fClip.scissorEnabled() ? fClip.scissorRect() : rtRect), in GrClearOp()
64 state->rtCommandBuffer()->clear(fClip, fColor); in onExecute()
DGrClearStencilClipOp.h32 if (fClip.scissorEnabled()) { in dumpInfo()
33 const SkIRect& r = fClip.scissorRect(); in dumpInfo()
50 , fClip(clip) in GrClearStencilClipOp()
52 const SkRect& bounds = fClip.scissorEnabled() in GrClearStencilClipOp()
53 ? SkRect::Make(fClip.scissorRect()) in GrClearStencilClipOp()
62 const GrFixedClip fClip; variable
DGrStencilAndCoverPathRenderer.cpp82 *args.fClip, args.fDoStencilMSAA, *args.fViewMatrix, p.get()); in onStencilPath()
107 if (!args.fClip->apply( in onDrawPath()
160 *args.fClip, &kInvertedCoverPass, std::move(args.fPaint), doStencilMSAA, in onDrawPath()
166 args.fRenderTargetContext->addDrawOp(*args.fClip, std::move(op)); in onDrawPath()
/third_party/skia/src/gpu/v1/
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.fixedClip().scissorRect(); in drawPath()
[all …]
DDevice_v1.h151 void onSave() override { fClip.save(); } in onSave()
152 void onRestore() override { fClip.restore(); } in onRestore()
156 fClip.clipRect(this->localToDevice(), rect, GrAA(aa), op); in onClipRect()
160 fClip.clipRRect(this->localToDevice(), rrect, GrAA(aa), op); in onClipRRect()
164 fClip.clipShader(std::move(shader)); in onClipShader()
169 fClip.replaceClip(deviceRect.round()); in onReplaceClip()
177 return fClip.clipState() == ClipStack::ClipState::kWideOpen; in onClipIsWideOpen()
179 SkIRect onDevClipBounds() const override { return fClip.getConservativeBounds(); } in onDevClipBounds()
184 ClipStack fClip; variable
200 const GrClip* clip() const { return &fClip; } in clip()
/third_party/flutter/skia/samplecode/
DSampleMegaStroke.cpp16 fClip.set(0, 0, 950, 600); in MegaStrokeView()
32 fClip.set(0, 0, 950, 600); in onChar()
47 canvas->clipRect(fClip); in onDrawContent()
65 fClip = divSim; in onDrawContent()
69 fClip.set(0, 0, 950, 600); in onSizeChange()
76 SkRect fClip; member in MegaStrokeView
DSamplePathClip.cpp154 SkRect fClip; member in EdgeClipView
157 EdgeClipView() : fClip(SkRect::MakeLTRB(150, 150, 550, 450)) { in EdgeClipView()
203 canvas->drawRect(fClip, p); in onDrawContent()
208 canvas->clipRect(fClip); in onDrawContent()
223 draw_clipped_line(canvas, fClip, fPoly[i], fPoly[j], p); in onDrawContent()
293 if (fClip.intersects(SkRect::MakeLTRB(x - 1, y - 1, x + 1, y + 1))) { in onFindClickHandler()
294 return new DragRectClick(&fClip); in onFindClickHandler()
/third_party/skia/samplecode/
DSampleMegaStroke.cpp16 fClip.setLTRB(0, 0, 950, 600); in MegaStrokeView()
32 fClip.setLTRB(0, 0, 950, 600); in onChar()
47 canvas->clipRect(fClip); in onDrawContent()
65 fClip = divSim; in onDrawContent()
69 fClip.setWH(950, 600); in onSizeChange()
76 SkRect fClip; member in MegaStrokeView
DSamplePathClip.cpp152 SkRect fClip; member in EdgeClipView
155 EdgeClipView() : fClip(SkRect::MakeLTRB(150, 150, 550, 450)) { in EdgeClipView()
201 canvas->drawRect(fClip, p); in onDrawContent()
206 canvas->clipRect(fClip); in onDrawContent()
221 draw_clipped_line(canvas, fClip, fPoly[i], fPoly[j], p); in onDrawContent()
291 if (fClip.intersects(SkRect::MakeLTRB(x - 1, y - 1, x + 1, y + 1))) { in onFindClickHandler()
292 return new DragRectClick(&fClip); in onFindClickHandler()
/third_party/flutter/skia/tools/
DDDLTileHelper.cpp22 , fClip(clip) { in TileData()
66 subCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip.height())); in createDDL()
67 subCanvas->translate(-fClip.fLeft, -fClip.fTop); in createDDL()
87 dst->clipRect(SkRect::Make(fClip)); in compose()
88 dst->drawImage(std::move(img), fClip.fLeft, fClip.fTop); in compose()
/third_party/skia/tools/
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.height())); in drawSKPDirectly()
142 tileCanvas->translate(-fClip.fLeft, -fClip.fTop); in drawSKPDirectly()
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 variable
/third_party/skia/modules/skottie/src/effects/
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)) { in onSync()
168 ClipInfo fClip; member in skottie::internal::__anonc1a48fe10111::EasyLevelsEffectAdapter
266 auto cf = SkTableColorFilter::MakeARGB(fAMapper.build_lut(a_lut_storage, fClip), in onSync()
267 fRMapper.build_lut(r_lut_storage, fClip), in onSync()
268 fGMapper.build_lut(g_lut_storage, fClip), in onSync()
269 fBMapper.build_lut(b_lut_storage, fClip)); in onSync()
272 if (const auto* rgb_lut = fRGBMapper.build_lut(a_lut_storage, fClip)) { in onSync()
289 ClipInfo fClip; member in skottie::internal::__anonc1a48fe10111::ProLevelsEffectAdapter
/third_party/skia/gm/
Dcomplexclip2.cpp33 : fClip(clip) in ComplexClip2GM()
126 if (kRect_Clip == fClip && !fAntiAlias) { in onShortName()
132 ClipStr(fClip), in onShortName()
161 switch (fClip) { in onDraw()
175 switch (fClip) { in onDraw()
199 Clip fClip; member in skiagm::ComplexClip2GM
/third_party/flutter/skia/gm/
Dcomplexclip2.cpp34 : fClip(clip) in ComplexClip2GM()
131 if (kRect_Clip == fClip && !fAntiAlias) { in onShortName()
137 ClipStr(fClip), in onShortName()
166 switch (fClip) { in onDraw()
180 switch (fClip) { in onDraw()
204 Clip fClip; member in skiagm::ComplexClip2GM
/third_party/skia/src/core/
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()
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()
/third_party/flutter/skia/src/core/
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()
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()
/third_party/skia/src/gpu/ops/
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()
/third_party/skia/experimental/xform/
DSkXform.h46 bool isCached() const { return !!fClip; } in isCached()
50 ClipCache* clip() const { return fClip.get(); } in clip()
71 sk_sp<ClipCache> fClip; variable
77 void internalInvalidateCaches() { fClip = nullptr; } in internalInvalidateCaches()
/third_party/flutter/skia/experimental/xform/
DSkXform.h46 bool isCached() const { return !!fClip; } in isCached()
50 ClipCache* clip() const { return fClip.get(); } in clip()
71 sk_sp<ClipCache> fClip; variable
77 void internalInvalidateCaches() { fClip = nullptr; } in internalInvalidateCaches()
/third_party/flutter/skia/bench/
DClipMaskBench.cpp27 , fClip(maskMaker(kSize)) {} in ClipMaskBench()
33 SkCanvas::SaveLayerRec rec(nullptr, nullptr, nullptr, fClip.get(), nullptr, 0); in onDraw()
46 sk_sp<SkImage> fClip; member in ClipMaskBench
/third_party/skia/bench/
DSKPBench.cpp25 , fClip(clip) in SKPBench()
48 bounds.intersect(fClip); in onPerCanvasPreDraw()
103 return SkIPoint::Make(fClip.width(), fClip.height()); in onGetSize()

1234