Repository: flutter
Issue: Glitch while drawing circle stroke using path.addOval with large strokeWidth
Labels: framework,dependency: skia,c: rendering,has reproducible steps,P2,team-engine,triaged-engine,found in release: 3.19,found in release: 3.22

### Steps to reproduce

Run the sample shared in the code snippet then you can see the circle shape rendering issue in Custom Painter while resizing the window. 

1. Set PaintingStyle.stroke and a large strokeWidth (e.g., 40) for the stroke paint.
2. Create a Rect using Rect.fromCircle to represent the circle or use final Rect rect = position & markerSize; for alternative approach.
3. Create a Path and add an oval shape using path.addOval(rect).

### Expected results

![image](https://github.com/flutter/flutter/assets/105288098/41375182-a42f-4ae4-8a4e-de87004f55eb)


### Actual results

![image](https://github.com/flutter/flutter/assets/105288098/212b676e-99a6-4e8b-be7a-809885f716fc)


### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  return runApp(Custom_paint());
}

class Custom_paint extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text(
              'Issue with drawing circle stroke using path.addOval with large strokeWidth'),
        ),
        body: Center(
          child: CustomPaint(
            size: Size(100, 100),
            painter: CirclePainter(),
          ),
        ),
      ),
    );
  }
}

class CirclePainter extends CustomPainter {
  @override
  void paint(Canvas canvas, Size size) {
    final Paint fillPaint = Paint()
      ..color = Colors.blue
      ..style = PaintingStyle.fill;

    final Paint strokePaint = Paint()
      ..color = Colors.red
      ..style = PaintingStyle.stroke
      ..strokeWidth = 40;

    final Offset position = Offset(size.width / 2, size.height / 2);
    final Size markerSize = Size(10, 10);

    // final Rect rect = position & markerSize;

    final Rect rect =
        Rect.fromCircle(center: position, radius: markerSize.width / 2);
    final path = Path()..addOval(rect);

    canvas.drawPath(path, strokePaint);
    canvas.drawPath(path, fillPaint);
  }

  @override
  bool shouldRepaint(CustomPainter oldDelegate) {
    return false;
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>


https://github.com/flutter/flutter/assets/105288098/72779f70-8c3b-4c92-bdf8-ac3def466ec6


</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.19045.4291], locale en-US)
    • Flutter version 3.19.5 on channel stable at D:\flutter_windows_2.10.5-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (4 weeks ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\NatrayanRamalingamNa.AzureAD\AppData\Local\Android\sdk
    • Platform android-34, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)        
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.3.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
    • Visual Studio Professional 2022 version 17.3.32825.248
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code, 64-bit edition (version 1.88.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.86.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.4291]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 124.0.6367.61
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 124.0.2478.51

[√] Network resources
    • All expected network resources are available.
```

</details>