/foundation/windowmanager/utils/include/ |
D | window_helper.h | 93 Rect dstRect = oriDstRect; in GetFixedWindowRectByLimitSize() local 96 dstRect.width_ = std::max(minVerticalFloatingW, oriDstRect.width_); in GetFixedWindowRectByLimitSize() 97 dstRect.height_ = std::max(minVerticalFloatingH, oriDstRect.height_); in GetFixedWindowRectByLimitSize() 99 dstRect.width_ = std::max(minVerticalFloatingH, oriDstRect.width_); in GetFixedWindowRectByLimitSize() 100 dstRect.height_ = std::max(minVerticalFloatingW, oriDstRect.height_); in GetFixedWindowRectByLimitSize() 104 …dstRect.width_ = std::min(static_cast<uint32_t>(MAX_FLOATING_SIZE * virtualPixelRatio), dstRect.wi… in GetFixedWindowRectByLimitSize() 105 …dstRect.height_ = std::min(static_cast<uint32_t>(MAX_FLOATING_SIZE * virtualPixelRatio), dstRect.h… in GetFixedWindowRectByLimitSize() 109 dstRect.posX_ = oriDstRect.posX_ + static_cast<int32_t>(oriDstRect.width_) - in GetFixedWindowRectByLimitSize() 110 static_cast<int32_t>(dstRect.width_); in GetFixedWindowRectByLimitSize() 113 dstRect.posY_ = oriDstRect.posY_ + static_cast<int32_t>(oriDstRect.height_) - in GetFixedWindowRectByLimitSize() [all …]
|
/foundation/graphic/standard/rosen/modules/render_service/core/pipeline/ |
D | rs_hardware_processor.cpp | 82 IRect dstRect = layer->GetLayerSize(); in CropLayers() local 86 RectI dstRectI(dstRect.x, dstRect.y, dstRect.w, dstRect.h); in CropLayers() 95 dstRect = { in CropLayers() 107 layer->SetLayerSize(dstRect); in CropLayers() 111 dstRect.x, dstRect.y, dstRect.w, dstRect.h, srcRect.x, srcRect.y, srcRect.w, srcRect.h); in CropLayers() 158 .dstRect = { in ProcessSurface() 184 node.SetDstRect({info.dstRect.x, info.dstRect.y, info.dstRect.w, info.dstRect.h}); in ProcessSurface() 189 … info.dstRect.x, info.dstRect.y, info.dstRect.w, info.dstRect.h, info.srcRect.w, info.srcRect.h, in ProcessSurface() 217 RectI originDstRect(info.dstRect.x, info.dstRect.y, info.dstRect.w, info.dstRect.h); in CalculateInfoWithVideo() 219 info.dstRect = { in CalculateInfoWithVideo() [all …]
|
D | rs_surface_capture_task.cpp | 198 param.dstRect = SkRect::MakeXYWH( in ProcessSurfaceRenderNode() 209 param.dstRect = SkRect::MakeXYWH(0, 0, node.GetRenderProperties().GetBoundsWidth(), in ProcessSurfaceRenderNode() 219 … param.dstRect = SkRect::MakeXYWH(0, 0, node.GetRenderProperties().GetBoundsWidth() * scaleX_, in ProcessSurfaceRenderNode() 222 canvas.translate(floor(params.dstRect.left() * scaleX_ - params.dstRect.left()), in ProcessSurfaceRenderNode() 223 floor(params.dstRect.top() * scaleY_ - params.dstRect.top())); in ProcessSurfaceRenderNode()
|
D | rs_render_service_util.h | 38 SkRect dstRect; member 54 IRect dstRect; member
|
D | rs_compatible_processor.cpp | 146 .dstRect = { in DoComposeSurfaces()
|
D | rs_render_service_util.cpp | 533 layer->SetLayerSize(info.dstRect); in ComposeSurface() 693 params.dstRect = SkRect::MakeXYWH(0, 0, property.GetBoundsWidth(), property.GetBoundsHeight()); in CreateBufferDrawParam() 744 …canvas.drawBitmapRect(bitmap, bufferDrawParam.srcRect, bufferDrawParam.dstRect, &(bufferDrawParam.… in DrawBuffer()
|
/foundation/ace/ace_engine/frameworks/core/components/image/ |
D | render_image.cpp | 228 void RenderImage::ApplyImageFit(Rect& srcRect, Rect& dstRect) in ApplyImageFit() argument 236 ApplyNone(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 239 ApplyCover(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 242 ApplyFitWidth(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 245 ApplyFitHeight(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 248 if (srcRect.GetSize() < dstRect.GetSize()) { in ApplyImageFit() 249 ApplyNone(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 251 ApplyContain(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 255 ApplyContain(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() 258 ApplyContain(srcRect, dstRect, rawPicSize, layoutSize); in ApplyImageFit() [all …]
|
D | render_image.h | 250 void ApplyImageFit(Rect& srcRect, Rect& dstRect); 251 …void ApplyContain(Rect& srcRect, Rect& dstRect, const Size& rawPicSize, const Size& imageComponent… 252 …void ApplyCover(Rect& srcRect, Rect& dstRect, const Size& rawPicSize, const Size& imageComponentSi… 253 …void ApplyFitWidth(Rect& srcRect, Rect& dstRect, const Size& rawPicSize, const Size& imageComponen… 254 …void ApplyFitHeight(Rect& srcRect, Rect& dstRect, const Size& rawPicSize, const Size& imageCompone… 255 …void ApplyNone(Rect& srcRect, Rect& dstRect, const Size& rawPicSize, const Size& imageComponentSiz…
|
D | rosen_render_image.h | 100 void DrawImageOnCanvas(const Rect& srcRect, const Rect& dstRect, const SkPaint& paint,
|
D | flutter_render_image.h | 126 const Rect& dstRect,
|
D | rosen_render_image.cpp | 745 void RosenRenderImage::DrawImageOnCanvas(const Rect& srcRect, const Rect& dstRect, const SkPaint& p… in DrawImageOnCanvas() argument 756 dstRect.Width(), dstRect.Height()); in DrawImageOnCanvas() 761 SkScalar transX = dstRect.Left() - imageRenderPosition_.GetX(); in DrawImageOnCanvas() 762 SkScalar transY = dstRect.Top() - imageRenderPosition_.GetY(); in DrawImageOnCanvas()
|
D | flutter_render_image.cpp | 689 const Rect& dstRect, in DrawImageOnCanvas() argument 697 dstRect.Left() - dstOffset.GetX(), in DrawImageOnCanvas() 698 dstRect.Top() - dstOffset.GetY(), in DrawImageOnCanvas() 699 dstRect.Width(), dstRect.Height()); in DrawImageOnCanvas()
|
/foundation/graphic/standard/rosen/samples/2d_graphics/ |
D | render_context_sample.cpp | 245 IRect dstRect; in DrawBackgroundLayer() local 247 dstRect.x = 0; // Absolute coordinates, with offset in DrawBackgroundLayer() 248 dstRect.y = 0; in DrawBackgroundLayer() 249 dstRect.w = 2560; in DrawBackgroundLayer() 250 dstRect.h = 1600; in DrawBackgroundLayer() 252 if (!FillBackGroundLayer(layer, zorder, dstRect)) { in DrawBackgroundLayer() 261 IRect dstRect; in DrawDrawingLayer() local 263 dstRect.x = 0; // Absolute coordinates, with offset in DrawDrawingLayer() 264 dstRect.y = 0; in DrawDrawingLayer() 266 dstRect.w = 1200; in DrawDrawingLayer() [all …]
|
D | drawing_sample_canvaskit0310.cpp | 74 …eLayer(std::shared_ptr<HdiLayerInfo> &showLayer, uint32_t index, uint32_t zorder, IRect &dstRect); 321 IRect dstRect; in DrawBaseLayer() local 322 dstRect.x = 0; // Absolute coordinates, with offset in DrawBaseLayer() 323 dstRect.y = 0; in DrawBaseLayer() 324 dstRect.w = baseWidthVec_[0]; in DrawBaseLayer() 325 dstRect.h = baseHeightVec_[0]; in DrawBaseLayer() 326 if (!FillBaseLayer(layerVec[0], 0, zorder, dstRect)) { in DrawBaseLayer() 332 dstRect.x = 0; // Absolute coordinates, with offset in DrawBaseLayer() 333 dstRect.y = 112; in DrawBaseLayer() 334 dstRect.w = baseWidthVec_[1]; in DrawBaseLayer() [all …]
|
D | render_context_sample.h | 81 …ngLayer(std::shared_ptr<HdiLayerInfo> &showLayer, uint32_t index, uint32_t zorder, IRect &dstRect); 82 …ool FillBackGroundLayer(std::shared_ptr<HdiLayerInfo> &showLayer, uint32_t zorder, IRect &dstRect);
|
/foundation/ace/ace_engine/frameworks/core/components/test/unittest/image/ |
D | image_test_utils.cpp | 49 renderImage->SetLayoutSize(imageFitConfig.dstRect.GetSize()); in VerifyImageFit() 50 renderImage->ApplyImageFit(imageFitConfig.srcRect, imageFitConfig.dstRect); in VerifyImageFit() 57 ASSERT_TRUE(imageFitConfig.dstRect == expectDstRect); in VerifyImageFit()
|
D | image_test_utils.h | 101 srcRect(Offset::Zero(), srcRectSize), dstRect(Offset::Zero(), dstRectSize) in ImageFitConfig() 110 Rect dstRect; member
|
/foundation/graphic/standard/rosen/modules/2d_graphics/src/engine_adapter/skia_adapter/ |
D | skia_canvas.cpp | 325 SkRect dstRect = SkRect::MakeLTRB(dst.GetLeft(), dst.GetTop(), dst.GetRight(), dst.GetBottom()); in DrawImageRect() local 331 …img, srcRect, dstRect, samplingOptions, nullptr, static_cast<SkCanvas::SrcRectConstraint>(constrai… in DrawImageRect() 334 img, srcRect, dstRect, nullptr, static_cast<SkCanvas::SrcRectConstraint>(constraint)); in DrawImageRect() 349 skiaCanvas_->drawImageRect(img, srcRect, dstRect, samplingOptions, &d->paint, in DrawImageRect() 353 … img, srcRect, dstRect, &d->paint, static_cast<SkCanvas::SrcRectConstraint>(constraint)); in DrawImageRect() 367 SkRect dstRect = SkRect::MakeLTRB(dst.GetLeft(), dst.GetTop(), dst.GetRight(), dst.GetBottom()); in DrawImageRect() local 372 skiaCanvas_->drawImageRect(img, dstRect, samplingOptions, nullptr); in DrawImageRect() 374 skiaCanvas_->drawImageRect(img, dstRect, nullptr); in DrawImageRect() 389 skiaCanvas_->drawImageRect(img, dstRect, samplingOptions, &d->paint); in DrawImageRect() 391 skiaCanvas_->drawImageRect(img, dstRect, &d->paint); in DrawImageRect()
|
/foundation/graphic/standard/rosen/modules/render_service_base/include/pipeline/ |
D | rs_surface_render_node.h | 113 void SetDstRect(const RectI& dstRect) in SetDstRect() argument 115 dstRect_ = dstRect; in SetDstRect()
|
/foundation/graphic/standard/rosen/modules/render_service_base/include/render/ |
D | rs_image.h | 51 void SetDstRect(const RectF& dstRect);
|
/foundation/graphic/standard/rosen/modules/render_service_base/src/render/ |
D | rs_image.cpp | 142 void RSImage::SetDstRect(const RectF& dstRect) in SetDstRect() argument 144 dstRect_ = dstRect; in SetDstRect()
|
/foundation/ace/ace_engine/frameworks/core/components/custom_paint/ |
D | rosen_render_custom_paint.cpp | 1201 …SkRect dstRect = SkRect::MakeXYWH(canvasImage.dx, canvasImage.dy, canvasImage.dWidth, canvasImage.… in DrawImage() local 1203 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawImage() 1261 SkRect dstRect = in DrawPixelMap() local 1265 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawPixelMap() 1379 auto dstRect = SkRect::MakeXYWH(0.0, 0.0, dirtyWidth, dirtyHeight); in GetImageData() local 1380 tempCanvas.drawBitmapRect(canvasCache_, srcRect, dstRect, nullptr); in GetImageData()
|
D | flutter_render_custom_paint.cpp | 1334 SkRect dstRect = in DrawImage() local 1338 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawImage() 1396 SkRect dstRect = in DrawPixelMap() local 1400 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawPixelMap() 1515 auto dstRect = SkRect::MakeXYWH(0.0, 0.0, dirtyWidth, dirtyHeight); in GetImageData() local 1516 tempCanvas.drawBitmapRect(canvasCache_, srcRect, dstRect, nullptr); in GetImageData()
|
D | flutter_render_offscreen_canvas.cpp | 305 SkRect dstRect = in DrawImage() local 309 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawImage() 367 SkRect dstRect = in DrawPixelMap() local 371 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawPixelMap()
|
D | rosen_render_offscreen_canvas.cpp | 299 SkRect dstRect = in DrawImage() local 303 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawImage() 353 SkRect dstRect = in DrawPixelMap() local 357 skCanvas->drawImageRect(image, srcRect, dstRect, &imagePaint_); in DrawPixelMap()
|