Home
last modified time | relevance | path

Searched refs:pixelStretch (Results 1 - 10 of 10) sorted by relevance

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_property_drawable_utils.cpp790 void RSPropertyDrawableUtils::DrawPixelStretch(Drawing::Canvas* canvas, const std::optional<Vector4f>& pixelStretch, in DrawPixelStretch() argument
793 if (!pixelStretch.has_value()) { in DrawPixelStretch()
794 ROSEN_LOGE("RSPropertyDrawableUtils::DrawPixelStretch pixelStretch has no value"); in DrawPixelStretch()
797 if (std::isinf(pixelStretch->x_) || std::isinf(pixelStretch->y_) || in DrawPixelStretch()
798 std::isinf(pixelStretch->z_) || std::isinf(pixelStretch->w_)) { in DrawPixelStretch()
799 ROSEN_LOGD("RSPropertyDrawableUtils::DrawPixelStretch skip original pixelStretch"); in DrawPixelStretch()
841 auto scaledBounds = Drawing::Rect(bounds.GetLeft() - pixelStretch->x_, bounds.GetTop() - pixelStretch in DrawPixelStretch()
1288 auto& pixelStretch = property.GetPixelStretch(); RSFilterSetPixelStretch() local
[all...]
H A Drs_property_drawable_foreground.cpp329 auto& pixelStretch = node.GetRenderProperties().GetPixelStretch();
330 if (!pixelStretch.has_value()) {
334 stagingPixelStretch_ = pixelStretch;
342 void RSPixelStretchDrawable::SetPixelStretch(const std::optional<Vector4f>& pixelStretch)
344 stagingPixelStretch_ = pixelStretch;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_properties_painter.cpp897 auto& pixelStretch = properties.GetPixelStretch(); in GetPixelStretchDirtyRect() local
898 if (!pixelStretch.has_value()) { in GetPixelStretchDirtyRect()
902 auto scaledBounds = RectF(boundsRect.left_ - pixelStretch->x_, boundsRect.top_ - pixelStretch->y_, in GetPixelStretchDirtyRect()
903 boundsRect.width_ + pixelStretch->x_ + pixelStretch->z_, in GetPixelStretchDirtyRect()
904 boundsRect.height_ + pixelStretch->y_ + pixelStretch->w_); in GetPixelStretchDirtyRect()
954 auto& pixelStretch = properties.GetPixelStretch(); in DrawPixelStretch() local
955 if (!pixelStretch in DrawPixelStretch()
968 ProcessPixelStretch(RSPaintFilterCanvas& canvas, Drawing::Rect& bounds, const std::optional<Vector4f>& pixelStretch, Drawing::Rect& fClipBounds, Drawing::Rect& scaledBounds) ProcessPixelStretch() argument
1041 DrawPixelStretchImage(const RSProperties& properties, RSPaintFilterCanvas& canvas, Drawing::Rect& bounds, const std::optional<Vector4f>& pixelStretch, Drawing::Surface* surface) DrawPixelStretchImage() argument
[all...]
H A Drs_property_drawable_bounds_geometry.cpp905 auto& pixelStretch = properties.GetPixelStretch(); in Generate() local
906 if (!pixelStretch.has_value()) { in Generate()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_dump.cpp377 auto& pixelStretch = out["PixelStretch"]; in DumpNodePropertiesDecoration() local
378 pixelStretch.PushObject(); in DumpNodePropertiesDecoration()
379 pixelStretch["left"] = properties.pixelStretch_->z_; in DumpNodePropertiesDecoration()
380 pixelStretch["top"] = properties.pixelStretch_->y_; in DumpNodePropertiesDecoration()
381 pixelStretch["right"] = properties.pixelStretch_->z_; in DumpNodePropertiesDecoration()
382 pixelStretch["bottom"] = properties.pixelStretch_->w_; in DumpNodePropertiesDecoration()
383 pixelStretch.PopObject(); in DumpNodePropertiesDecoration()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties_painter.h145 const std::optional<Vector4f>& pixelStretch, Drawing::Rect& fClipBounds, Drawing::Rect& scaledBounds);
149 Drawing::Rect& bounds, const std::optional<Vector4f>& pixelStretch, Drawing::Surface* surface);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/
H A Drs_property_drawable_utils_test.cpp375 std::optional<Vector4f> pixelStretch = std::nullopt; in HWTEST_F() local
377 &paintFilterCanvasTest, pixelStretch, boundsRect, true, Drawing::TileMode::CLAMP); in HWTEST_F()
378 pixelStretch = 1.0f; in HWTEST_F()
381 &paintFilterCanvasTest, pixelStretch, boundsRect, true, Drawing::TileMode::CLAMP); in HWTEST_F()
385 &paintFilterCanvasTest, pixelStretch, boundsRect, true, Drawing::TileMode::CLAMP); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render/render_base/unittest/draw/
H A Drs_property_drawable_utils_test.cpp375 std::optional<Vector4f> pixelStretch = std::nullopt; in HWTEST_F() local
377 &paintFilterCanvasTest, pixelStretch, boundsRect, true, Drawing::TileMode::CLAMP); in HWTEST_F()
378 pixelStretch = 1.0f; in HWTEST_F()
381 &paintFilterCanvasTest, pixelStretch, boundsRect, true, Drawing::TileMode::CLAMP); in HWTEST_F()
385 &paintFilterCanvasTest, pixelStretch, boundsRect, true, Drawing::TileMode::CLAMP); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/drawable/
H A Drs_property_drawable_utils.h60 static void DrawPixelStretch(Drawing::Canvas* canvas, const std::optional<Vector4f>& pixelStretch,
H A Drs_property_drawable_foreground.h233 void SetPixelStretch(const std::optional<Vector4f>& pixelStretch);

Completed in 16 milliseconds