Home
last modified time | relevance | path

Searched refs:rect (Results 251 - 275 of 1415) sorted by relevance

1...<<11121314151617181920>>...57

/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Dwmt_ge_rops.c41 void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in wmt_ge_fillrect() argument
50 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in wmt_ge_fillrect()
52 fg = rect->color; in wmt_ge_fillrect()
65 writel(rect->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_fillrect()
66 writel(rect->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_fillrect()
67 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_fillrect()
68 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_fillrect()
72 writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF); in wmt_ge_fillrect()
H A Dhitfb.c124 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in hitfb_fillrect() argument
126 if (rect->rop != ROP_COPY) in hitfb_fillrect()
127 cfb_fillrect(p, rect); in hitfb_fillrect()
134 fb_writew(((u32 *) (p->pseudo_palette))[rect->color], in hitfb_fillrect()
136 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect()
137 rect->height); in hitfb_fillrect()
140 fb_writew(rect->color, HD64461_GRSCR); in hitfb_fillrect()
141 hitfb_accel_set_dest(0, rect in hitfb_fillrect()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Dwmt_ge_rops.c44 void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in wmt_ge_fillrect() argument
53 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in wmt_ge_fillrect()
55 fg = rect->color; in wmt_ge_fillrect()
68 writel(rect->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_fillrect()
69 writel(rect->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_fillrect()
70 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_fillrect()
71 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_fillrect()
75 writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF); in wmt_ge_fillrect()
H A Dhitfb.c140 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in hitfb_fillrect() argument
142 if (rect->rop != ROP_COPY) in hitfb_fillrect()
143 cfb_fillrect(p, rect); in hitfb_fillrect()
150 hitfb_writew(((u32 *) (p->pseudo_palette))[rect->color], in hitfb_fillrect()
152 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect()
153 rect->height); in hitfb_fillrect()
156 hitfb_writew(rect->color, HD64461_GRSCR); in hitfb_fillrect()
157 hitfb_accel_set_dest(0, rect in hitfb_fillrect()
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrShape.h39 * the shape's type (e.g. rect, rrect, or oval).
43 * - SkRect::isEmpty() returns true if the rect is not sorted, even if it has area. GrShape will not
47 * to a point or line, just like a rect. SkRRect does not have the concept of unsorted edges.
66 explicit GrShape(const SkRect& rect) { this->setRect(rect); } in GrShape() argument
103 // type represents a rrect, rect, or oval.
106 // type represents a rrect, rect, or oval.
133 SkRect& rect() { SkASSERT(this->isRect()); return fRect; } in rect() function in GrShape
134 const SkRect& rect() const { SkASSERT(this->isRect()); return fRect; } in rect() function in GrShape
149 // performs no simplification, so calling setRRect() with a round rect tha
158 setRect(const SkRect& rect) setRect() argument
[all...]
H A DGrStyledShape.cpp64 // closing an open rect that wasn't closed in the original shape because it had in MakeFilled()
185 // Dir and start are only used for rect and rrect shapes, so are not included in other in writeUnstyledKey()
215 memcpy(key, &fShape.rect(), sizeof(SkRect)); in writeUnstyledKey()
335 // stroke of a rect). in GrStyledShape()
436 // If the shape is a regular rect, map to round rect winding parameters, including accounting in asRRect()
440 *rrect = SkRRect::MakeRect(fShape.rect()); in asRRect()
451 // In SkPath a rect starts at index 0 by default. This is the top left corner. However, in asRRect()
453 // rect edges. Thus, we may need to modify the rrect's start index and direction. in asRRect()
457 if (fShape.rect() in asRRect()
755 SkRect rect; simplifyStroke() local
[all...]
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_damage_helper.h40 * @rect: Return a rectangle in fb coordinate clipped to plane src.
46 #define drm_atomic_for_each_plane_damage(iter, rect) \
47 while (drm_atomic_helper_damage_iter_next(iter, rect))
80 struct drm_rect *rect);
83 struct drm_rect *rect);
/third_party/skia/docs/examples/
H A DPath_addOval_2.cpp9 const SkRect rect = {10, 10, 54, 54}; in REG_FIDDLE() local
22 path.addOval(rect, direction, start); in REG_FIDDLE()
25 canvas->drawText(&"0123"[start], 1, rect.centerX(), rect.centerY() + 5, textPaint); in REG_FIDDLE()
/third_party/skia/experimental/graphite/src/geom/
H A DTransform.cpp45 Rect Transform::mapRect(const Rect& rect) const { return map_rect(fM, rect); } in mapRect()
46 Rect Transform::inverseMapRect(const Rect& rect) const { return map_rect(fInvM, rect); } in inverseMapRect()
/third_party/alsa-utils/alsamixer/
H A Dmixer_widget.c476 struct clickable_rect *rect; in on_mouse_key() local
487 rect = clickable_find(m.y, m.x); in on_mouse_key()
488 if (rect) in on_mouse_key()
489 cmd = rect->command; in on_mouse_key()
495 focus_control_index = rect->arg1; in on_mouse_key()
504 focus_control_index = rect->arg1; in on_mouse_key()
519 if (rect && rect->arg1 >= 0) in on_mouse_key()
520 focus_control_index = rect->arg1; in on_mouse_key()
525 channels = m.x - rect in on_mouse_key()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/wgl/
H A DDXGISwapChainWindowSurfaceWGL.cpp94 RECT rect; in initialize() local
95 if (!GetClientRect(mWindow, &rect)) in initialize()
99 mWidth = rect.right - rect.left; in initialize()
100 mHeight = rect.bottom - rect.top; in initialize()
160 RECT rect = {static_cast<LONG>(x), static_cast<LONG>(mHeight - y - height), in postSubBuffer() local
162 DXGI_PRESENT_PARAMETERS params = {1, &rect, nullptr, nullptr}; in postSubBuffer()
343 RECT rect; in checkForResize() local
344 if (!GetClientRect(mWindow, &rect)) in checkForResize()
[all...]
/third_party/mesa3d/src/gallium/frontends/vdpau/
H A Dvdpau_private.h339 RectToPipeBox(const VdpRect *rect, struct pipe_resource *res) in RectToPipeBox() argument
350 if (rect) { in RectToPipeBox()
351 if (rect->x1 > rect->x0 && in RectToPipeBox()
352 rect->y1 > rect->y0) { in RectToPipeBox()
353 box.x = rect->x0; in RectToPipeBox()
354 box.y = rect->y0; in RectToPipeBox()
355 box.width = rect->x1 - box.x; in RectToPipeBox()
356 box.height = rect in RectToPipeBox()
[all...]
/third_party/node/test/fixtures/wpt/resources/
H A Dtestdriver.js6 function getInViewCenterPoint(rect) {
7 var left = Math.max(0, rect.left);
8 var right = Math.min(window.innerWidth, rect.right);
9 var top = Math.max(0, rect.top);
10 var bottom = Math.min(window.innerHeight, rect.bottom);
162 var rect = element.getClientRects()[0];
163 var centerPoint = getInViewCenterPoint(rect);
276 * Restore the window from minimized/maximized state to a given rect.
279 * <https://www.w3.org/TR/webdriver/#set-window-rect>`_
282 * @param {Object} rect
[all...]
/third_party/skia/src/utils/
H A DSkPaintFilterCanvas.cpp73 void SkPaintFilterCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() argument
76 this->SkNWayCanvas::onDrawRect(rect, apf.paint()); in onDrawRect()
102 void SkPaintFilterCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { in onDrawOval() argument
105 this->SkNWayCanvas::onDrawOval(rect, apf.paint()); in onDrawOval()
109 void SkPaintFilterCanvas::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, in onDrawArc() argument
113 this->SkNWayCanvas::onDrawArc(rect, startAngle, sweepAngle, useCenter, apf.paint()); in onDrawArc()
225 void SkPaintFilterCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) { in onDrawAnnotation() argument
226 this->SkNWayCanvas::onDrawAnnotation(rect, key, value); in onDrawAnnotation()
233 void SkPaintFilterCanvas::onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], in onDrawEdgeAAQuad() argument
240 this->SkNWayCanvas::onDrawEdgeAAQuad(rect, cli in onDrawEdgeAAQuad()
[all...]
H A DSkNWayCanvas.cpp132 void SkNWayCanvas::onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipRect() argument
135 iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); in onClipRect()
137 this->INHERITED::onClipRect(rect, op, edgeStyle); in onClipRect()
202 void SkNWayCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() argument
205 iter->drawRect(rect, paint); in onDrawRect()
216 void SkNWayCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { in onDrawOval() argument
219 iter->drawOval(rect, paint); in onDrawOval()
223 void SkNWayCanvas::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, in onDrawArc() argument
227 iter->drawArc(rect, startAngle, sweepAngle, useCenter, paint); in onDrawArc()
342 void SkNWayCanvas::onDrawAnnotation(const SkRect& rect, cons argument
349 onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aa, const SkColor4f& color, SkBlendMode mode) onDrawEdgeAAQuad() argument
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_meta_copy.c123 /* Start creating blit rect */ in copy_buffer_to_image()
125 struct radv_meta_blit2d_rect rect = { in copy_buffer_to_image() local
172 rect.dst_x = img_offset_el.x; in copy_buffer_to_image()
173 rect.dst_y = img_offset_el.y; in copy_buffer_to_image()
177 radv_meta_buffer_to_image_cs(cmd_buffer, &buf_bsurf, &img_bsurf, 1, &rect); in copy_buffer_to_image()
179 radv_meta_blit2d(cmd_buffer, NULL, &buf_bsurf, &img_bsurf, 1, &rect); in copy_buffer_to_image()
272 /* Start creating blit rect */ in copy_image_to_buffer()
274 struct radv_meta_blit2d_rect rect = { in copy_image_to_buffer() local
320 rect.src_x = img_offset_el.x; in copy_image_to_buffer()
321 rect in copy_image_to_buffer()
490 struct radv_meta_blit2d_rect rect = { copy_image() local
[all...]
/third_party/skia/gm/
H A Dblurrect.cpp49 SkRect rect; in draw_donut() local
52 rect = r; in draw_donut()
53 rect.outset(STROKE_WIDTH/2, STROKE_WIDTH/2); in draw_donut()
54 path.addRect(rect); in draw_donut()
55 rect = r; in draw_donut()
56 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2); in draw_donut()
58 path.addRect(rect); in draw_donut()
65 SkRect rect; in draw_donut_skewed() local
68 rect = r; in draw_donut_skewed()
69 rect in draw_donut_skewed()
426 auto rect = SkRect::MakeXYWH(pad, pad, w, h); prepareActualMasks() local
[all...]
H A Dinternal_links.cpp44 SkRect rect = SkRect::MakeXYWH(0, 0, SkIntToScalar(50), SkIntToScalar(20)); variable
45 SkAnnotateLinkToDestination(canvas, rect, name.get());
61 SkRect rect = SkRect::MakeXYWH(x, y, in drawLabeledRect() local
63 canvas->drawRect(rect, paint); in drawLabeledRect()
/third_party/skia/tests/
H A DReadWritePixelsGpuTest.cpp251 const auto rect = SkIRect::MakeWH(readInfo.width(), readInfo.height()).makeOffset(offset); in gpu_read_pixels_test_driver()
270 if (!SkIRect::Intersects(rect, surfBounds)) { in gpu_read_pixels_test_driver()
276 } else if (!rules.fUncontainedRectSucceeds && !surfBounds.contains(rect)) { in gpu_read_pixels_test_driver()
287 rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, csConversion); in gpu_read_pixels_test_driver()
295 // Considering the rect we tried to read and the surface bounds figure out which pixels in in gpu_read_pixels_test_driver()
298 if (result == Result::kSuccess && srcReadRect.intersect(surfBounds, rect)) { in gpu_read_pixels_test_driver()
299 SkIRect dstWriteRect = srcReadRect.makeOffset(-rect in gpu_read_pixels_test_driver()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/
H A Dgm12u320.c96 struct drm_rect rect; member
261 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks()
262 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks()
263 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks()
264 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks()
424 gm12u320->fb_update.rect = *dirty; in gm12u320_fb_mark_dirty()
427 struct drm_rect *rect = &gm12u320->fb_update.rect; in gm12u320_fb_mark_dirty() local
429 rect->x1 = min(rect in gm12u320_fb_mark_dirty()
563 struct drm_rect rect = { 0, 0, GM12U320_USER_WIDTH, GM12U320_HEIGHT }; gm12u320_pipe_enable() local
581 struct drm_rect rect; gm12u320_pipe_update() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/tiny/
H A Dgm12u320.c98 struct drm_rect rect; member
267 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks()
268 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks()
269 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks()
270 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks()
415 gm12u320->fb_update.rect = *dirty; in gm12u320_fb_mark_dirty()
419 struct drm_rect *rect = &gm12u320->fb_update.rect; in gm12u320_fb_mark_dirty() local
421 rect->x1 = min(rect in gm12u320_fb_mark_dirty()
556 struct drm_rect rect = { 0, 0, GM12U320_USER_WIDTH, GM12U320_HEIGHT }; gm12u320_pipe_enable() local
576 struct drm_rect rect; gm12u320_pipe_update() local
[all...]
/kernel/linux/linux-5.10/tools/perf/ui/gtk/
H A Dbrowser.c18 GdkRectangle rect; in perf_gtk__resize_window() local
28 gdk_screen_get_monitor_geometry(screen, monitor, &rect); in perf_gtk__resize_window()
30 width = rect.width * 3 / 4; in perf_gtk__resize_window()
31 height = rect.height * 3 / 4; in perf_gtk__resize_window()
/kernel/linux/linux-6.6/tools/perf/ui/gtk/
H A Dbrowser.c18 GdkRectangle rect; in perf_gtk__resize_window() local
28 gdk_screen_get_monitor_geometry(screen, monitor, &rect); in perf_gtk__resize_window()
30 width = rect.width * 3 / 4; in perf_gtk__resize_window()
31 height = rect.height * 3 / 4; in perf_gtk__resize_window()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A Dmain.cpp24 RECT rect; in DebuggerWaitDialogProc() local
29 GetWindowRect(GetDesktopWindow(), &rect); in DebuggerWaitDialogProc() local
30 SetWindowPos(hwnd, HWND_TOP, rect.right / 2, rect.bottom / 2, 0, 0, SWP_NOSIZE); in DebuggerWaitDialogProc()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_clear.c132 SVGA3dRect rect = { 0, 0, 0, 0 }; in try_clear() local
153 rect.w = fb->width; in try_clear()
154 rect.h = fb->height; in try_clear()
164 rect.w = MAX2(rect.w, fb->zsbuf->width); in try_clear()
165 rect.h = MAX2(rect.h, fb->zsbuf->height); in try_clear()
169 !svga_rects_equal(&rect, &svga->state.hw_clear.viewport)) { in try_clear()
171 ret = SVGA3D_SetViewport(svga->swc, &rect); in try_clear()
234 rect in try_clear()
[all...]

Completed in 15 milliseconds

1...<<11121314151617181920>>...57