Home
last modified time | relevance | path

Searched refs:rect (Results 326 - 350 of 1130) sorted by relevance

1...<<11121314151617181920>>...46

/third_party/skia/src/core/
H A DSkRecorder.cpp169 void SkRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() argument
170 TRY_MINIRECORDER(drawRect, rect, paint); in onDrawRect()
171 this->append<SkRecords::DrawRect>(paint, rect); in onDrawRect()
287 void SkRecorder::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) { in onDrawAnnotation() argument
288 this->append<SkRecords::DrawAnnotation>(rect, SkString(key), sk_ref_sp(value)); in onDrawAnnotation()
291 void SkRecorder::onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], in onDrawEdgeAAQuad() argument
294 rect, this->copy(clip, 4), aa, color, mode); in onDrawEdgeAAQuad()
360 void SkRecorder::onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipRect() argument
361 INHERITED(onClipRect, rect, op, edgeStyle); in onClipRect()
363 this->append<SkRecords::ClipRect>(rect, opA in onClipRect()
[all...]
H A DSkBlitter.cpp59 void SkBlitter::blitFatAntiRect(const SkRect& rect) { in blitFatAntiRect() argument
60 SkIRect bounds = rect.roundOut(); in blitFatAntiRect()
64 // To ensure consistency of the threaded backend (a rect that's considered fat in the init-once in blitFatAntiRect()
68 // This also implies that we cannot do vertical tiling unless we can blit any rect (not just the in blitFatAntiRect()
84 SkScalar partialL = bounds.fLeft + 1 - rect.fLeft; in blitFatAntiRect()
85 SkScalar partialR = rect.fRight - (bounds.fRight - 1); in blitFatAntiRect()
86 SkScalar partialT = bounds.fTop + 1 - rect.fTop; in blitFatAntiRect()
87 SkScalar partialB = rect.fBottom - (bounds.fBottom - 1); in blitFatAntiRect()
90 partialT = rect.fBottom - rect in blitFatAntiRect()
290 blitRectRegion(const SkIRect& rect, const SkRegion& clip) blitRectRegion() argument
343 y_in_rect(int y, const SkIRect& rect) y_in_rect() argument
347 x_in_rect(int x, const SkIRect& rect) x_in_rect() argument
[all...]
H A DSkRasterClipStack.h53 void clipRect(const SkMatrix& ctm, const SkRect& rect, SkClipOp op, bool aa) { in clipRect() argument
54 this->writable_rc().op(rect, ctm, op, this->finalAA(aa)); in clipRect()
78 void replaceClip(const SkIRect& rect) { in replaceClip() argument
79 SkIRect devRect = rect; in replaceClip()
H A DSkClipStackDevice.cpp30 void SkClipStackDevice::onClipRect(const SkRect& rect, SkClipOp op, bool aa) { in onClipRect() argument
31 fClipStack.clipRect(rect, this->localToDevice(), op, aa); in onClipRect()
55 void SkClipStackDevice::onReplaceClip(const SkIRect& rect) { in onReplaceClip() argument
56 SkRect deviceRect = SkMatrixPriv::MapRect(this->globalToDevice(), SkRect::Make(rect)); in onReplaceClip()
/third_party/skia/gm/
H A Droundrects.cpp194 SkRect rect = SkRect::MakeLTRB(-20, -60, 20, 60); variable
196 ellipseRect.setRectXY(rect, 5, 10);
206 canvas->drawRect(rect, rectPaint);
213 SkRect rect = SkRect::MakeLTRB(-80, -30, 80, 30); variable
215 ellipseRect.setRectXY(rect, 20, 5);
226 canvas->drawRect(rect, rectPaint);
233 SkRect rect = SkRect::MakeLTRB(0, -60, 1, 60); variable
235 circleRect.setRectXY(rect, 5, 5);
251 SkRect rect = SkRect::MakeLTRB(-80, -1, 80, 0); variable
253 circleRect.setRectXY(rect,
[all...]
H A Dclipdrawdraw.cpp18 // clipRect(rect, noAA);
22 // drawRect(rect, noAA);
23 // can leave 1 pixel wide remnants of the first rect.
24 static void Draw(SkCanvas* canvas, const SkRect& rect) { in Draw() argument
31 // draw a black rect through the clip in Draw()
33 canvas->clipRect(rect); in Draw()
37 // now draw the white rect on top in Draw()
39 canvas->drawRect(rect, p); in Draw()
H A Dclip_strokerect.cpp40 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); variable
43 canvas->clipRect(rect, true);
49 canvas->drawRect(rect, p);
H A Dlocalmatrixshader.cpp87 auto rect = SkRect::Make(image->bounds()); in DEF_SIMPLE_GM() local
88 SkAssertResult(SkMatrix::Concat(inner, outer).mapRect(&rect)); in DEF_SIMPLE_GM()
96 canvas->drawRect(rect, p); in DEF_SIMPLE_GM()
97 canvas->drawRect(rect, border); in DEF_SIMPLE_GM()
99 canvas->translate(0, rect.height() * 1.5f); in DEF_SIMPLE_GM()
107 canvas->translate(0, rect.height() * SK_ARRAY_COUNT(gFactories) * 1.5f); in DEF_SIMPLE_GM()
111 canvas->translate(rect.width() * 1.5f, 0); in DEF_SIMPLE_GM()
H A Daarecteffect.cpp78 SkRect rect = r.makeOffset(x, y); variable
80 auto fp = GrFragmentProcessor::Rect(/*inputFP=*/nullptr, edgeType, rect);
87 auto drawRect = rect.makeOutset(kOutset, kOutset);
91 x += SkScalarCeilToScalar(rect.width() + kDX);
94 // Draw rect without and with AA using normal API for reference
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_mipi_dbi.c257 static void mipi_dbi_fb_dirty(struct drm_framebuffer *fb, struct drm_rect *rect) in mipi_dbi_fb_dirty() argument
262 unsigned int height = rect->y2 - rect->y1; in mipi_dbi_fb_dirty()
263 unsigned int width = rect->x2 - rect->x1; in mipi_dbi_fb_dirty()
278 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in mipi_dbi_fb_dirty()
283 ret = mipi_dbi_buf_copy(dbidev->tx_buf, fb, rect, swap); in mipi_dbi_fb_dirty()
290 mipi_dbi_set_window_address(dbidev, rect->x1, rect->x2 - 1, rect in mipi_dbi_fb_dirty()
314 struct drm_rect rect; mipi_dbi_pipe_update() local
342 struct drm_rect rect = { mipi_dbi_enable_flush() local
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Ds1d13xxxfb.c518 * @rect : fb_fillrect structure
524 s1d13xxxfb_bitblt_solidfill(struct fb_info *info, const struct fb_fillrect *rect) in s1d13xxxfb_bitblt_solidfill() argument
537 dest = ((rect->dy * screen_stride) + (bpp * rect->dx)); in s1d13xxxfb_bitblt_solidfill()
541 rect->dx, rect->dy, screen_stride, dest, in s1d13xxxfb_bitblt_solidfill()
542 rect->width - 1, rect->height - 1); in s1d13xxxfb_bitblt_solidfill()
547 dbg_blit("(solidfill) : rop=%d\n", rect->rop); in s1d13xxxfb_bitblt_solidfill()
555 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH0, ((rect in s1d13xxxfb_bitblt_solidfill()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Ds1d13xxxfb.c517 * @rect : fb_fillrect structure
523 s1d13xxxfb_bitblt_solidfill(struct fb_info *info, const struct fb_fillrect *rect) in s1d13xxxfb_bitblt_solidfill() argument
536 dest = ((rect->dy * screen_stride) + (bpp * rect->dx)); in s1d13xxxfb_bitblt_solidfill()
540 rect->dx, rect->dy, screen_stride, dest, in s1d13xxxfb_bitblt_solidfill()
541 rect->width - 1, rect->height - 1); in s1d13xxxfb_bitblt_solidfill()
546 dbg_blit("(solidfill) : rop=%d\n", rect->rop); in s1d13xxxfb_bitblt_solidfill()
554 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH0, ((rect in s1d13xxxfb_bitblt_solidfill()
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_transfer.c553 linear_ptr(struct nv30_rect *rect, char *base, int x, int y, int z) in linear_ptr() argument
555 return base + (y * rect->pitch) + (x * rect->cpp); in linear_ptr()
569 swizzle2d_ptr(struct nv30_rect *rect, char *base, int x, int y, int z) in swizzle2d_ptr() argument
571 unsigned k = util_logbase2(MIN2(rect->w, rect->h)); in swizzle2d_ptr()
573 unsigned nx = rect->w >> k; in swizzle2d_ptr()
582 return base + (m * rect->cpp); in swizzle2d_ptr()
586 swizzle3d_ptr(struct nv30_rect *rect, char *base, int x, int y, int z) in swizzle3d_ptr() argument
588 unsigned w = rect in swizzle3d_ptr()
619 get_ptr(struct nv30_rect *rect) get_ptr() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DDevice.cpp360 void Device::setScissorRect(const sw::Rect &rect) in setScissorRect() argument
362 scissorRect = rect; in setScissorRect()
857 bool Device::validRectangle(const sw::Rect *rect, sw::Surface *surface) in validRectangle() argument
859 if(!rect) in validRectangle()
864 if(rect->x1 <= rect->x0 || rect->y1 <= rect->y0) in validRectangle()
869 if(rect->x0 < 0 || rect in validRectangle()
882 validRectangle(const sw::RectF *rect, sw::Surface *surface) validRectangle() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_fbcon.h55 int nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
59 int nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
64 int nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
/third_party/skia/third_party/externals/libwebp/examples/
H A Dgifdec.h75 // frame dimensions and offsets in 'rect'.
90 // Dispose the pixels within 'rect' of 'curr_canvas' based on 'dispose' method
92 void GIFDisposeFrame(GIFDisposeMethod dispose, const GIFFrameRect* const rect,
96 // Given 'src' picture and its frame rectangle 'rect', blend it into 'dst'.
98 const GIFFrameRect* const rect,
104 // In the given 'pic', clear the pixels in 'rect' to transparent color.
105 void GIFClearPic(struct WebPPicture* const pic, const GIFFrameRect* const rect);
/kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DSchedGui.py120 rect = y / (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE)
123 if rect < 0 or rect > self.nr_rects - 1 or height > RootFrame.RECT_HEIGHT:
126 return rect
136 rect = self.rect_from_ypixel(y)
137 if rect == -1:
142 self.sched_tracer.mouse_down(rect, t)
/kernel/linux/linux-6.6/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DSchedGui.py120 rect = y / (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE)
123 if rect < 0 or rect > self.nr_rects - 1 or height > RootFrame.RECT_HEIGHT:
126 return rect
136 rect = self.rect_from_ypixel(y)
137 if rect == -1:
142 self.sched_tracer.mouse_down(rect, t)
/third_party/mesa3d/include/android_stub/android/
H A Dhardware_buffer.h52 #include <android/rect.h>
404 * If \a rect is not NULL, the caller promises to modify only data in
405 * the area specified by rect. If rect is NULL, the caller may modify
407 * of the specified rect is NOT modified by this call.
430 int32_t fence, const ARect* rect, void** outVirtualAddress) __INTRODUCED_IN(26);
460 int32_t fence, const ARect* rect, AHardwareBuffer_Planes* outPlanes) __INTRODUCED_IN(29);
535 int32_t fence, const ARect* rect, void** outVirtualAddress,
/third_party/skia/tests/
H A DCanvasStateHelpers.cpp31 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in complex_layers_draw() local
32 canvas->drawRect(rect, bluePaint); in complex_layers_draw()
33 canvas->translate(0, rect.height() + spacer); in complex_layers_draw()
34 canvas->drawRect(rect, bluePaint); in complex_layers_draw()
/third_party/skia/bench/
H A DImageFilterDAGBench.cpp29 const SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); variable
48 canvas->drawRect(rect, paint);
126 SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); variable
130 canvas->drawRect(rect, paint);
/third_party/skia/src/svg/
H A DSkSVGDevice.cpp618 void SkSVGDevice::AutoElement::addRectAttributes(const SkRect& rect) {
620 if (rect.x() != 0) {
621 this->addAttribute("x", rect.x());
623 if (rect.y() != 0) {
624 this->addAttribute("y", rect.y());
627 this->addAttribute("width", rect.width());
628 this->addAttribute("height", rect.height());
754 AutoElement rect("rect", fWriter);
757 AutoElement rect("rec
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
H A Dipu3-css-params.c375 input_width = css_pipe->rect[IPU3_CSS_RECT_GDC].width; in imgu_css_osys_calc_frame_and_stripe_params()
376 input_height = css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_osys_calc_frame_and_stripe_params()
383 reso.input_width = css_pipe->rect[IPU3_CSS_RECT_GDC].width; in imgu_css_osys_calc_frame_and_stripe_params()
386 reso.input_height = css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_osys_calc_frame_and_stripe_params()
1199 rounddown(css_pipe->rect[IPU3_CSS_RECT_GDC].width - in imgu_css_osys_calc()
1202 roundup(css_pipe->rect[IPU3_CSS_RECT_GDC].width - in imgu_css_osys_calc()
1204 block_stripes[0].height = css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_osys_calc()
1644 .image_height = css_pipe->rect[IPU3_CSS_RECT_BDS].height, in imgu_css_af_ops_calc()
1671 .image_height = css_pipe->rect[IPU3_CSS_RECT_BDS].height, in imgu_css_awb_fr_ops_calc()
1698 .image_height = css_pipe->rect[IPU3_CSS_RECT_BD in imgu_css_awb_ops_calc()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/
H A Dipu3-css-params.c375 input_width = css_pipe->rect[IPU3_CSS_RECT_GDC].width; in imgu_css_osys_calc_frame_and_stripe_params()
376 input_height = css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_osys_calc_frame_and_stripe_params()
383 reso.input_width = css_pipe->rect[IPU3_CSS_RECT_GDC].width; in imgu_css_osys_calc_frame_and_stripe_params()
386 reso.input_height = css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_osys_calc_frame_and_stripe_params()
1196 rounddown(css_pipe->rect[IPU3_CSS_RECT_GDC].width - in imgu_css_osys_calc()
1199 roundup(css_pipe->rect[IPU3_CSS_RECT_GDC].width - in imgu_css_osys_calc()
1201 block_stripes[0].height = css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_osys_calc()
1641 .image_height = css_pipe->rect[IPU3_CSS_RECT_BDS].height, in imgu_css_af_ops_calc()
1668 .image_height = css_pipe->rect[IPU3_CSS_RECT_BDS].height, in imgu_css_awb_fr_ops_calc()
1695 .image_height = css_pipe->rect[IPU3_CSS_RECT_BD in imgu_css_awb_ops_calc()
[all...]
/third_party/skia/src/gpu/vk/
H A DGrVkGpu.cpp498 SkIRect rect, in onWritePixels()
535 rect, in onWritePixels()
542 rect, in onWritePixels()
563 SkIRect rect, in onTransferPixelsTo()
601 SkASSERT(SkIRect::MakeSize(texture->dimensions()).contains(rect)); in onTransferPixelsTo()
610 region.imageOffset = { rect.left(), rect.top(), 0 }; in onTransferPixelsTo()
611 region.imageExtent = { (uint32_t)rect.width(), (uint32_t)rect.height(), 1 }; in onTransferPixelsTo()
636 SkIRect rect, in onTransferPixelsFrom()
497 onWritePixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling) onWritePixels() argument
562 onTransferPixelsTo(GrTexture* texture, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t bufferOffset, size_t rowBytes) onTransferPixelsTo() argument
635 onTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset) onTransferPixelsFrom() argument
761 uploadTexDataLinear(GrVkImage* texImage, SkIRect rect, GrColorType dataColorType, const void* data, size_t rowBytes) uploadTexDataLinear() argument
921 uploadTexDataOptimal(GrVkImage* texImage, SkIRect rect, GrColorType dataColorType, const GrMipLevel texels[], int mipLevelCount) uploadTexDataOptimal() argument
2527 onReadPixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* buffer, size_t rowBytes) onReadPixels() argument
[all...]

Completed in 20 milliseconds

1...<<11121314151617181920>>...46