| /third_party/skia/modules/skparagraph/src/ |
| H A D | Decorations.cpp | 57 auto width = context.clip.width(); in paint() 58 SkScalar x = context.clip.left(); in paint() 60 fPosition : (context.clip.top() + fPosition); in paint() 68 calculateAvoidanceWaves(textStyle, context.clip); in paint() 73 calculateWaves(textStyle, context.clip); in paint() 201 void Decorations::calculateAvoidanceWaves(const TextStyle& textStyle, SkRect clip) { in calculateAvoidanceWaves() argument 212 while (x_start + quarterWave * step < clip.width()) { in calculateAvoidanceWaves() 221 auto remaining = clip.width() - x_start; in calculateAvoidanceWaves() 325 void Decorations::calculateWaves(const TextStyle& textStyle, SkRect clip) { in calculateThickness() 341 while (x_start + quarterWave * 2 < clip in calculateThickness() [all...] |
| /third_party/skia/src/gpu/v1/ |
| H A D | Device.cpp | 263 // Regions don't actually need AA, but in DMSAA mode every clip element is antialiased. in onClipRegion() 331 fSurfaceDrawContext->drawPaint(this->clip(), std::move(grPaint), this->localToDevice()); in drawPaint() 358 fSurfaceDrawContext->drawPath(this->clip(), std::move(grPaint), aa, this->localToDevice(), in drawPoints() 405 fSurfaceDrawContext->drawVertices(this->clip(), std::move(grPaint), *matrixProvider, in drawPoints() 422 this->clip(), paint, this->asMatrixProvider(), shape); in drawRect() 432 fSurfaceDrawContext->drawRect(this->clip(), std::move(grPaint), in drawRect() 438 const SkPoint clip[4], in drawEdgeAAQuad() 455 if (clip) { in drawEdgeAAQuad() 457 fSurfaceDrawContext->fillQuadWithEdgeAA(this->clip(), std::move(grPaint), GrAA::kYes, grAA, in drawEdgeAAQuad() 458 this->localToDevice(), clip, nullpt in drawEdgeAAQuad() 437 drawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], SkCanvas::QuadAAFlags aaFlags, const SkColor4f& color, SkBlendMode mode) drawEdgeAAQuad() argument [all...] |
| /third_party/skia/src/gpu/geometry/ |
| H A D | GrQuadUtils.cpp | 403 // Nothing to clip, can proceed normally drawing just 'quad' 429 Vertices clip; local 430 clip.fX = (t * next_ccw(v.fX) + (1.f - t) * v.fX); 431 clip.fY = (t * next_ccw(v.fY) + (1.f - t) * v.fY); 432 clip.fW = SkPathPriv::kW0PlaneDistance; 434 clip.fU = (t * next_ccw(v.fU) + (1.f - t) * v.fU); 435 clip.fV = (t * next_ccw(v.fV) + (1.f - t) * v.fV); 436 clip.fR = (t * next_ccw(v.fR) + (1.f - t) * v.fR); 450 if_then_else((!ccwValid) & (!cwValid), next_ccw(clip.fX), 451 if_then_else(ccwValid, clip [all...] |
| /third_party/skia/tests/ |
| H A D | FillPathTest.cpp | 34 SkIRect clip; in DEF_TEST() local 39 clip.setLTRB(0, height - expected_lines, width, height); in DEF_TEST() 45 SkScan::FillPath(path, clip, &blitter); in DEF_TEST()
|
| H A D | ImageFilterCacheTest.cpp | 46 SkIRect clip = SkIRect::MakeWH(100, 100); in test_find_existing() local 47 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() 48 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing() 61 // If either id is different or the clip or the matrix are different the 95 SkIRect clip = SkIRect::MakeWH(100, 100); in test_internal_purge() local 96 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() 97 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() 122 SkIRect clip = SkIRect::MakeWH(100, 100); in test_explicit_purging() local 123 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_explicit_purging() 124 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, subse in test_explicit_purging() [all...] |
| /third_party/skia/modules/svg/src/ |
| H A D | SkSVGClipPath.cpp | 21 auto clip = this->asPath(ctx); in resolveClip() local 26 clip.transform(m); in resolveClip() 28 return clip; in resolveClip()
|
| /third_party/skia/bench/ |
| H A D | AAClipBench.cpp | 50 // jostle the clip regions each time to prevent caching 67 // this path tests out directly draw the clip primitive 68 // use it to comparing just drawing the clip vs. drawing using 69 // the clip 84 // This bench tests out nested clip stacks. It is intended to simulate 197 SkAAClip clip; variable 199 clip.setPath(fPath, fBounds, fDoAA); 202 clip.setPath(SkPath::Rect(fRect), fBounds, fDoAA); 204 clip.setRect(fBounds); 218 // test conversion of a complex clip t in AAClipRegionBench() 233 SkAAClip clip; global() variable [all...] |
| H A D | SKPBench.cpp | 22 SKPBench::SKPBench(const char* name, const SkPicture* pic, const SkIRect& clip, SkScalar scale, in SKPBench() argument 25 , fClip(clip) in SKPBench() 75 SkRect clip = SkRect::Make(bounds); in onPerCanvasPreDraw() local 76 clip.offset(-SkIntToScalar(tileRect.fLeft), -SkIntToScalar(tileRect.fTop)); in onPerCanvasPreDraw() 77 fSurfaces.back()->getCanvas()->clipRect(clip); in onPerCanvasPreDraw()
|
| /third_party/skia/src/gpu/ops/ |
| H A D | PathTessellateOp.cpp | 26 const GrAppliedClip* clip, in finalize() 30 clip, in finalize() 90 const GrSurfaceProxyView& writeView, GrAppliedClip* clip, in onPrePrepare() 99 (clip) ? std::move(*clip) : GrAppliedClip::Disabled()); in onPrePrepare() 25 finalize(const GrCaps& caps, const GrAppliedClip* clip, GrClampType clampType) finalize() argument 89 onPrePrepare(GrRecordingContext* context, const GrSurfaceProxyView& writeView, GrAppliedClip* clip, const GrDstProxyView& dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) onPrePrepare() argument
|
| H A D | StrokeTessellateOp.cpp | 80 const GrAppliedClip* clip, in finalize() 90 this->headColor(), GrProcessorAnalysisCoverage::kNone, clip, in finalize() 170 GrUserStencilTest::kLessIfInClip, // i.e., "not equal to zero, if in clip". 177 GrAppliedClip&& clip) { in prePrepareTessellator() 188 auto* pipeline = GrTessellationShader::MakePipeline(args, fAAType, std::move(clip), in prePrepareTessellator() 228 const GrSurfaceProxyView& writeView, GrAppliedClip* clip, in onPrePrepare() 237 (clip) ? std::move(*clip) : GrAppliedClip::Disabled()); in onPrePrepare() 79 finalize(const GrCaps& caps, const GrAppliedClip* clip, GrClampType clampType) finalize() argument 176 prePrepareTessellator(GrTessellationShader::ProgramArgs&& args, GrAppliedClip&& clip) prePrepareTessellator() argument 227 onPrePrepare(GrRecordingContext* context, const GrSurfaceProxyView& writeView, GrAppliedClip* clip, const GrDstProxyView& dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) onPrePrepare() argument
|
| /third_party/skia/experimental/graphite/src/ |
| H A D | DrawList.h | 119 * A DrawList represents a collection of drawing commands (and related clip/shading state) in 127 * - a primitive clip (not affected by the transform) 133 * the transformed shape, restricted by its primitive clip (e.g. a scissor rect) and a depth test 167 const Clip& clip, 173 const Clip& clip, 180 const Clip& clip, 208 const Clip& clip, DrawOrder order, const PaintParams* paint, in Draw() 213 , fClip(clip) in Draw()
|
| H A D | DrawContext.h | 56 const Clip& clip, 62 const Clip& clip, 69 const Clip& clip,
|
| /third_party/skia/modules/sksg/include/ |
| H A D | SkSGClipEffect.h | 18 * Concrete Effect node, applying a clip to its descendants. 23 static sk_sp<ClipEffect> Make(sk_sp<RenderNode> child, sk_sp<GeometryNode> clip, in Make() argument 25 return (child && clip) in Make() 26 ? sk_sp<ClipEffect>(new ClipEffect(std::move(child), std::move(clip), aa)) in Make()
|
| /third_party/mesa3d/src/gallium/drivers/v3d/ |
| H A D | v3dx_emit.c | 411 /* Clip to the scissor if it's enabled, but still clip to the in emit_state() 415 * Additionally, always clip the rendering to the viewport, in emit_state() 432 cl_emit(&job->bcl, CLIP_WINDOW, clip) { in emit_state() 433 clip.clip_window_left_pixel_coordinate = minx; in emit_state() 434 clip.clip_window_bottom_pixel_coordinate = miny; in emit_state() 436 clip.clip_window_width_in_pixels = maxx - minx; in emit_state() 437 clip.clip_window_height_in_pixels = maxy - miny; in emit_state() 439 /* The HW won't entirely clip out when scissor in emit_state() 444 clip.clip_window_width_in_pixels = 1; in emit_state() 445 clip in emit_state() [all...] |
| /third_party/skia/src/core/ |
| H A D | SkMaskFilter.cpp | 193 bool fillCenter, const SkRasterClip& clip, SkBlitter* blitter) { in draw_nine() 194 // if we get here, we need to (possibly) resolve the clip and blitter in draw_nine() 195 SkAAClipBlitterWrapper wrapper(clip, blitter); in draw_nine() 217 const SkRasterClip& clip, SkBlitter* blitter) const { in filterRRect() 224 clip.getBounds(), in filterRRect() 229 draw_nine(patch.fMask, patch.fOuterRect, patch.fCenter, true, clip, blitter); in filterRRect() 234 const SkRasterClip& clip, SkBlitter* blitter, in filterPath() 244 switch (this->filterRectsToNine(rects, rectCount, matrix, clip.getBounds(), &patch)) { in filterPath() 250 draw_nine(patch.fMask, patch.fOuterRect, patch.fCenter, 1 == rectCount, clip, in filterPath() 268 if (!SkDraw::DrawToMask(devPath, &clip in filterPath() 192 draw_nine(const SkMask& mask, const SkIRect& outerR, const SkIPoint& center, bool fillCenter, const SkRasterClip& clip, SkBlitter* blitter) draw_nine() argument 216 filterRRect(const SkRRect& devRRect, const SkMatrix& matrix, const SkRasterClip& clip, SkBlitter* blitter) const filterRRect() argument 233 filterPath(const SkPath& devPath, const SkMatrix& matrix, const SkRasterClip& clip, SkBlitter* blitter, SkStrokeRec::InitStyle style) const filterPath() argument [all...] |
| H A D | SkScan_AntiPath.cpp | 85 // We use the clip bounds instead of the ir, since we may be asked to in BaseSuperBlitter() 742 // If the intersection of the path bounds and the clip bounds 748 // clip, and we care whether the entire clip exceeds our limits. 760 // Our antialiasing can't handle a clip larger than 32767, so we restrict 761 // the clip to that limit here. (the runs[] uses int16_t for its index). 765 // to tile the clip/target... 818 void SkScan::FillPath(const SkPath& path, const SkRasterClip& clip, SkBlitter* blitter) { 819 if (clip.isEmpty() || !path.isFinite()) { 823 if (clip [all...] |
| H A D | SkAAClip.cpp | 24 AutoAAClipValidate(const SkAAClip& clip) : fClip(clip) { in AutoAAClipValidate() argument 35 #define AUTO_AACLIP_VALIDATE(clip) AutoAAClipValidate acv(clip) 37 #define AUTO_AACLIP_VALIDATE(clip) 222 static Iter Iterate(const SkAAClip& clip) { in Iterate() 223 const RunHead* head = clip.fRunHead; in Iterate() 224 if (!clip.fRunHead) { in Iterate() 225 // A null run head is an empty clip, so return aan already finished iterator. in Iterate() 229 return Iter(clip in Iterate() [all...] |
| H A D | SkRasterClipStack.h | 89 const SkRasterClip& clip = this->rc(); in validate() local 91 SkASSERT(clip.isEmpty()); in validate() 92 } else if (!clip.isEmpty()) { in validate() 93 SkASSERT(fRootBounds.contains(clip.getBounds())); in validate()
|
| H A D | SkBlitter_ARGB32.cpp | 607 const SkIRect& clip, in blit_color() 609 int x = clip.fLeft, in blit_color() 610 y = clip.fTop; in blit_color() 615 color, clip.width(), clip.height()); in blit_color() 631 for (int height = clip.height(); height --> 0; ) { in blit_color() 632 blit_row(dstRow, maskRow, color, clip.width(), opaqueDst); in blit_color() 646 const SkIRect& clip, SkPMColor srcColor) { in SkARGB32_Blit32() 654 int x = clip.fLeft; in SkARGB32_Blit32() 655 int y = clip in SkARGB32_Blit32() 605 blit_color(const SkPixmap& device, const SkMask& mask, const SkIRect& clip, SkColor color) blit_color() argument 645 SkARGB32_Blit32(const SkPixmap& device, const SkMask& mask, const SkIRect& clip, SkPMColor srcColor) SkARGB32_Blit32() argument 793 blitMask(const SkMask& mask, const SkIRect& clip) blitMask() argument 817 blitMask(const SkMask& mask, const SkIRect& clip) blitMask() argument 1282 blitMask(const SkMask& mask, const SkIRect& clip) blitMask() argument [all...] |
| H A D | SkDevice.cpp | 88 // (e.g. Android's device-space clip regions are going away, and are not compatible with the in getOrigin() 244 void SkBaseDevice::drawEdgeAAQuad(const SkRect& r, const SkPoint clip[4], SkCanvas::QuadAAFlags aa, in drawEdgeAAQuad() argument 251 if (clip) { in drawEdgeAAQuad() 252 // Draw the clip directly as a quad since it's a filled color with no local coords in drawEdgeAAQuad() 254 clipPath.addPoly(clip, 4, true); in drawEdgeAAQuad() 289 // Since drawImageRect requires a srcRect, the dst clip is implemented as a true clip in drawEdgeAAImageSet() 562 auto& clip = this->writableClip(); in onReplaceClip() local 563 clip.fClipBounds = deviceRect; in onReplaceClip() 564 clip in onReplaceClip() 569 const auto& clip = this->clip(); onGetClipType() local [all...] |
| /third_party/skia/modules/skottie/src/effects/ |
| H A D | LevelsEffect.cpp | 26 ScalarValue fClipBlack = 1, // 1: clip, 2/3: don't clip 45 float clip[] = {0, 1}; in build_lut() local 49 clip[idx] = SkTPin(out_0, 0.0f, 1.0f); in build_lut() 53 clip[idx] = SkTPin(out_1, 0.0f, 1.0f); in build_lut() 55 SkASSERT(clip[0] <= clip[1]); in build_lut() 90 lut_storage[i] = static_cast<uint8_t>(std::round(SkTPin(out, clip[0], clip[1]) * 255)); in build_lut()
|
| /third_party/skia/modules/sksg/src/ |
| H A D | SkSGClipEffect.cpp | 16 ClipEffect::ClipEffect(sk_sp<RenderNode> child, sk_sp<GeometryNode> clip, bool aa) in ClipEffect() argument 18 , fClipNode(std::move(clip)) in ClipEffect() 30 fClipNode->clip(canvas, fAntiAlias); in onRender()
|
| /third_party/skia/gm/ |
| H A D | manypathatlases.cpp | 45 SkPath clip = SkPath().moveTo(-50, 20) variable 48 clip.transform(SkMatrix::Translate(64, 70)); 50 SkPath rotatedClip = clip;
|
| H A D | rasterhandleallocator.cpp | 31 void clip(const SkRect& r) { fCanvas->clipRect(r); } in clip() function in GraphicsPort 80 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { 84 canvas->clipRect(SkRect::Make(clip)); 142 void updateHandle(Handle hndl, const SkMatrix& ctm, const SkIRect& clip) override { 147 CGContextClipToRect(cg, CGRectMake(clip.x(), clip.y(), clip.width(), clip.height())); 290 port->clip({150, 50, 200, 200}); in DEF_SIMPLE_GM()
|
| /third_party/lame/mpglib/ |
| H A D | layer1.c | 206 int i, clip = 0; in decode_layer1_frame() local 219 clip += synth_1to1_mono(mp, (real *) fraction[single], pcm_sample, pcm_point); in decode_layer1_frame() 226 clip += synth_1to1(mp, (real *) fraction[0], 0, pcm_sample, &p1); in decode_layer1_frame() 227 clip += synth_1to1(mp, (real *) fraction[1], 1, pcm_sample, pcm_point); in decode_layer1_frame() 231 return clip; in decode_layer1_frame()
|