title: Canvas.drawArc() artefacts
body: <p>I draw an arc on canvas in a custom view as shown below. <code>Paint</code> and <code>rectangle</code> are defined outside of <code>onDraw()</code> and added in there for simplicity purpose.</p>
  
  <pre><code>protected void onDraw(Canvas canvas) {
      super.onDraw(canvas);
  
      RectF rectangle = new RectF(60f, 60f, 480f, 480f);
  
      Paint paint = new Paint();
      paint.setAntiAlias(true);
      paint.setColor(0x40000000);
      paint.setStyle(Paint.Style.STROKE);
      paint.setStrokeWidth(120);
  
      canvas.drawArc(rectangle, 225f, 315f, false, paint);
  }
  </code></pre>
  
  <p>When I run this code on Galaxy Nexus with 4.3, there are following artefacts.
  <img src="https://i.stack.imgur.com/rrscC.png" alt="enter image description here"></p>
  
  <p>There is no such artefacts when running on Nexus 5 with 4.4.4 though.
  <img src="https://i.stack.imgur.com/Xiqjm.png" alt="enter image description here"></p>
  
  <p>I observed such artefacts by angles like (225f, 315f) and some other angles only. Most of the time the arc has a correct shape.</p>
  
  <p>Is there a way to avoid those artefacts?</p>
  
  <p><strong>Update:</strong> I tried to use software, hardware and none layers using <code>setLayerType()</code>. Artefacts changed their form, but were still present.</p>