Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 058235da authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix creating of RRect in SkiaRE"

parents cbfaa747 8971760f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -738,7 +738,7 @@ inline SkRect SkiaGLRenderEngine::getSkRect(const Rect& rect) {
}

inline SkRRect SkiaGLRenderEngine::getRoundedRect(const LayerSettings* layer) {
    const auto rect = getSkRect(layer->geometry.roundedCornersCrop);
    const auto rect = getSkRect(layer->geometry.boundaries);
    const auto cornerRadius = layer->geometry.roundedCornersRadius;
    return SkRRect::MakeRectXY(rect, cornerRadius, cornerRadius);
}