Home
last modified time | relevance | path

Searched refs:rect (Results 951 - 975 of 2728) sorted by relevance

1...<<31323334353637383940>>...110

/third_party/skia/src/core/
H A DSkWriteBuffer.cpp115 void SkBinaryWriteBuffer::writeIRect(const SkIRect& rect) { in writeIRect() argument
116 fWriter.write(&rect, sizeof(SkIRect)); in writeIRect()
119 void SkBinaryWriteBuffer::writeRect(const SkRect& rect) { in writeRect() argument
120 fWriter.writeRect(rect); in writeRect()
H A DSkWriteBuffer.h60 virtual void writeIRect(const SkIRect& rect) = 0;
61 virtual void writeRect(const SkRect& rect) = 0;
122 void writeIRect(const SkIRect& rect) override;
123 void writeRect(const SkRect& rect) override;
/third_party/skia/tools/debugger/
H A DJsonWriteBuffer.cpp161 void JsonWriteBuffer::writeIRect(const SkIRect& rect) { in writeIRect() argument
163 DrawCommand::MakeJsonIRect(*fWriter, rect); in writeIRect()
166 void JsonWriteBuffer::writeRect(const SkRect& rect) { in writeRect() argument
167 this->append("rect"); in writeRect()
168 DrawCommand::MakeJsonRect(*fWriter, rect); in writeRect()
/third_party/skia/gm/
H A Dimagealphathreshold.cpp180 SkRect rect = SkRect::MakeWH(WIDTH, HEIGHT); in make_img() local
183 while (!rect.isEmpty()) { in make_img()
185 canvas.drawRect(rect, paint); in make_img()
186 rect.inset(25, 25); in make_img()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcanvas_pattern.cpp191 void CanvasPattern::FillRect(const Rect& rect) in FillRect() argument
194 auto task = [rect](CanvasPaintMethod& paintMethod) { in FillRect()
195 paintMethod.FillRect(rect); in FillRect()
199 paintMethod_->PushTask<FillRectOp>(rect); in FillRect()
203 void CanvasPattern::StrokeRect(const Rect& rect) in StrokeRect() argument
206 auto task = [rect](CanvasPaintMethod& paintMethod) { in StrokeRect()
207 paintMethod.StrokeRect(rect); in StrokeRect()
211 paintMethod_->PushTask<StrokeRectOp>(rect); in StrokeRect()
215 void CanvasPattern::ClearRect(const Rect& rect) in ClearRect() argument
218 auto task = [rect](CanvasPaintMetho in ClearRect()
371 AddRect(const Rect& rect) AddRect() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_modifier.cpp450 RSRect rect(xSegment, offset.GetY(), xSegment + segmentWidth, offset.GetY() + height); in PaintColorSegment()
451 RSRoundRect paintRect = RSRoundRect(rect, 0, 0); in PaintColorSegment()
455 segmentStartPoint.SetX(rect.GetLeft()); in PaintColorSegment()
456 segmentStartPoint.SetY(rect.GetTop()); in PaintColorSegment()
458 segmentEndPoint.SetX(rect.GetRight()); in PaintColorSegment()
459 segmentEndPoint.SetY(rect.GetBottom()); in PaintColorSegment()
494 RSRect rect(xSegment + shadowOffsetXFloat_->Get(), offset.GetY() + shadowOffsetYFloat_->Get(), in PaintColorSegmentFilterMask()
496 RSRoundRect paintRect = RSRoundRect(rect, 0, 0); in PaintColorSegmentFilterMask()
500 segmentStartPoint.SetX(rect.GetLeft()); in PaintColorSegmentFilterMask()
501 segmentStartPoint.SetY(rect in PaintColorSegmentFilterMask()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_draw_cmd.cpp136 void RSExtendImageObject::Playback(Drawing::Canvas& canvas, const Drawing::Rect& rect, in Playback() argument
146 Drawing::AdaptiveImageInfo imageInfo = rsImage_->GetAdaptiveImageInfoWithCustomizedFrameRect(rect); in Playback()
159 rsImage_->CanvasDrawImage(canvas, rect, sampling, isBackground); in Playback()
164 rsImage_->CanvasDrawImage(canvas, rect, sampling, isBackground); in Playback()
456 void RSExtendImageBaseObj::Playback(Drawing::Canvas& canvas, const Drawing::Rect& rect, in Playback() argument
495 void RSExtendDrawFuncObj::Playback(Drawing::Canvas* canvas, const Drawing::Rect* rect) in Playback() argument
498 drawFunc_(canvas, rect); in Playback()
545 void DrawImageWithParmOpItem::Playback(Canvas* canvas, const Rect* rect) in Playback() argument
552 objectHandle_->Playback(*canvas, *rect, sampling_, false); in Playback()
607 void DrawPixelMapWithParmOpItem::Playback(Canvas* canvas, const Rect* rect) in Playback() argument
665 Playback(Canvas* canvas, const Rect* rect) Playback() argument
716 Playback(Canvas* canvas, const Rect* rect) Playback() argument
788 Playback(Canvas* canvas, const Rect* rect) Playback() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_yuv.cpp326 uint32_t PixelYuv::crop(const Rect &rect) in crop() argument
328 int32_t rectSize = GetYSize(rect.width, rect.height); in crop()
330 if (rect.top < 0 || rect.left < 0 || rectSize > pixelSize || rect.width <= 1 || rect.height <= 1 || in crop()
336 auto dstMemory = CreateMemory(imageInfo_.pixelFormat, "crop ImageData", rect.width, rect.height, dstStrides); in crop()
345 if (!PixelYuvUtils::YuvCrop(data_, srcInfo, (uint8_t *)dstMemory->data.data, rect, dstStride in crop()
[all...]
/foundation/window/window_manager/wmserver/src/
H A Dremote_animation.cpp199 auto rect = srcNode->GetWindowRect(); in GetAndDrawSnapShot() local
200 srcNode->closeWinSurfaceNode_->SetBounds(0, 0, rect.width_, rect.height_); in GetAndDrawSnapShot()
751 auto rect = windowNode->GetWindowRect(); in CreateWindowAnimationTarget() local
753 auto boundsRect = RectF(rect.posX_, rect.posY_, rect.width_, rect.height_); in CreateWindowAnimationTarget()
757 WLOGFD("[FixOrientation] the window %{public}u is expected rotatable, pre-calculate bounds, rect:" in CreateWindowAnimationTarget()
758 " [%{public}d, %{public}d, %{public}d, %{public}d]", windowNode->GetWindowId(), rect in CreateWindowAnimationTarget()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_mipi_dbi.c255 struct drm_rect *rect) in mipi_dbi_fb_dirty()
258 unsigned int height = rect->y2 - rect->y1; in mipi_dbi_fb_dirty()
259 unsigned int width = rect->x2 - rect->x1; in mipi_dbi_fb_dirty()
268 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in mipi_dbi_fb_dirty()
273 ret = mipi_dbi_buf_copy(tr, src, fb, rect, swap); in mipi_dbi_fb_dirty()
280 mipi_dbi_set_window_address(dbidev, rect->x1, rect->x2 - 1, rect in mipi_dbi_fb_dirty()
254 mipi_dbi_fb_dirty(struct iosys_map *src, struct drm_framebuffer *fb, struct drm_rect *rect) mipi_dbi_fb_dirty() argument
322 struct drm_rect rect; mipi_dbi_pipe_update() local
360 struct drm_rect rect = { mipi_dbi_enable_flush() local
[all...]
/third_party/skia/src/gpu/
H A DSurfaceContext.cpp714 const SkIRect& rect, in asyncReadPixels()
718 SkASSERT(rect.fLeft >= 0 && rect.fRight <= this->width()); in asyncReadPixels()
719 SkASSERT(rect.fTop >= 0 && rect.fBottom <= this->height()); in asyncReadPixels()
728 auto transferResult = this->transferPixels(SkColorTypeToGrColorType(colorType), rect); in asyncReadPixels()
731 auto ii = SkImageInfo::Make(rect.size(), colorType, this->colorInfo().alphaType(), in asyncReadPixels()
738 SkIPoint pt{rect.fLeft, rect.fTop}; in asyncReadPixels()
761 rect in asyncReadPixels()
713 asyncReadPixels(GrDirectContext* dContext, const SkIRect& rect, SkColorType colorType, ReadPixelsCallback callback, ReadPixelsContext callbackContext) asyncReadPixels() argument
1234 transferPixels(GrColorType dstCT, const SkIRect& rect) transferPixels() argument
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Drect.h226 bool operator==(const Rect& rect) const in operator ==()
228 return (GetOffset() == rect.GetOffset()) && (GetSize() == rect.GetSize()); in operator ==()
231 bool operator!=(const Rect& rect) const in operator !=()
233 return !operator==(rect); in operator !=()
266 * @brief Magnetically attracted to a "magnetic" rect.
338 * @return The offset that this rect need to moving into magnet.
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_content_overlay/
H A Dselect_content_overlay_pattern.cpp201 DimensionRect SelectContentOverlayPattern::ConvertToHotRect(const RectF& rect) in ConvertToHotRect() argument
204 newRegion.SetSize({ Dimension(rect.GetSize().Width()), Dimension(rect.GetSize().Height()) }); in ConvertToHotRect()
205 newRegion.SetOffset(DimensionOffset(Offset(rect.GetOffset().GetX(), rect.GetOffset().GetY()))); in ConvertToHotRect()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/helper/
H A Dwindow_scene_helper.cpp189 auto rect = renderContext->GetPaintRectWithoutTransform(); in CaculatePoint() local
192 PointF tmp(item.GetWindowX() + rect.GetX(), item.GetWindowY() + rect.GetY()); in CaculatePoint()
199 PointF tmpPos(item.GetWindowXPos() + rect.GetX(), item.GetWindowYPos() + rect.GetY()); in CaculatePoint()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_styles.h203 rect.SetOffset(offset); in UpdateOffset()
208 auto offset = rect.GetOffset(); in AddOffset()
217 return rect == handleInfo.rect && index == handleInfo.index; in operator ==()
226 RectF rect; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_prop_convertor.cpp38 RSRect ToRSRect(const NG::RectF& rect) in ToRSRect() argument
40 return RSRect(rect.Left(), rect.Top(), rect.Right(), rect.Bottom()); in ToRSRect()
/foundation/arkui/ui_lite/test/uitest/test_transform/
H A Dui_test_transform.cpp260 UIRadioButton* UITestTransform::AddRadioButton(Rect rect, const char* name, in AddRadioButton() argument
269 radioButton->SetPosition(rect.GetX(), rect.GetY(), rect.GetWidth(), rect.GetHeight()); in AddRadioButton()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_scroll_view.cpp284 Rect rect = GetAllChildRelativeRect(); in CalculateReboundDistance() local
285 int16_t top = rect.GetTop(); in CalculateReboundDistance()
286 int16_t bottom = rect.GetBottom(); in CalculateReboundDistance()
288 int16_t left = rect.GetLeft(); in CalculateReboundDistance()
289 int16_t right = rect.GetRight(); in CalculateReboundDistance()
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/cmd/
H A Drs_node_cmd_test.cpp111 std::shared_ptr<RectF> rect = nullptr; in HWTEST_F() local
112 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
223 auto rect = std::make_shared<RectF>(); in HWTEST_F() local
224 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
228 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
H A Drs_node_command_test.cpp111 std::shared_ptr<RectF> rect = nullptr; in HWTEST_F() local
112 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
223 auto rect = std::make_shared<RectF>(); in HWTEST_F() local
224 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
228 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/
H A Drs_cpu_overdraw_canvas_listener.cpp66 void RSCPUOverdrawCanvasListener::DrawRect(const Drawing::Rect& rect) in DrawRect() argument
69 path.AddRect(rect); in DrawRect()
126 // need know canvas rect region in DrawBackground()
133 // need know shadow rect region in DrawShadow()
140 // need know shadow rect region in DrawShadowStyle()
155 auto rect = blob->Bounds(); in DrawTextBlob() local
156 rect->Offset(x, y); in DrawTextBlob()
157 DrawRect(*rect); in DrawTextBlob()
186 // need know picture rect region in DrawPicture()
191 // need know canvas rect regio in Clear()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/command/
H A Drs_node_command_test.cpp98 std::shared_ptr<RectF> rect = nullptr; in HWTEST_F() local
99 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
241 auto rect = std::make_shared<RectF>(); in HWTEST_F() local
242 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
246 RSNodeCommandHelper::SetDrawRegion(context, nodeId, rect); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_render_node_drawable_autocache.cpp281 for (auto& rect : drawRects) { in DrawAutoCache()
282 auto srcRect = rect; in DrawAutoCache()
284 canvas.DrawImageRect(image, srcRect, rect, samplingOption, constraint); in DrawAutoCache()
311 for (auto& rect : drawRects) { in DrawAutoCacheDfx()
312 canvas.DrawRect(rect); in DrawAutoCacheDfx()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/
H A Drecording_canvas.h68 void DrawRect(const Rect& rect) override;
105 void ClipRect(const Rect& rect, ClipOp op, bool doAntiAlias) override;
106 void ClipIRect(const RectI& rect, ClipOp op = ClipOp::INTERSECT) override;
108 void ClipRoundRect(const Rect& rect, std::vector<Point>& pts, bool doAntiAlias) override;
136 using DrawFunc = std::function<void(Drawing::Canvas* canvas, const Drawing::Rect* rect)>;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dcore_canvas_impl.h43 #include "utils/rect.h"
88 virtual void DrawRect(const Rect& rect, const Paint& paint) = 0;
114 // opinc calculate realdraw rect
140 virtual void ClipRect(const Rect& rect, ClipOp op, bool doAntiAlias = false) = 0;
141 virtual void ClipIRect(const RectI& rect, ClipOp op = ClipOp::INTERSECT) = 0;
143 virtual void ClipRoundRect(const Rect& rect, std::vector<Point>& pts, bool doAntiAlias = false) = 0;
148 virtual bool QuickReject(const Rect& rect) = 0;

Completed in 20 milliseconds

1...<<31323334353637383940>>...110