/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/ |
H A D | rs_property_drawable_utils.cpp | 790 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 D | rs_property_drawable_foreground.cpp | 329 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 D | rs_properties_painter.cpp | 897 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 D | rs_property_drawable_bounds_geometry.cpp | 905 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 D | rs_profiler_dump.cpp | 377 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 D | rs_properties_painter.h | 145 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 D | rs_property_drawable_utils_test.cpp | 375 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 D | rs_property_drawable_utils_test.cpp | 375 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 D | rs_property_drawable_utils.h | 60 static void DrawPixelStretch(Drawing::Canvas* canvas, const std::optional<Vector4f>& pixelStretch,
|
H A D | rs_property_drawable_foreground.h | 233 void SetPixelStretch(const std::optional<Vector4f>& pixelStretch);
|