I've made some progress on this, but I think there are two bugs in the 
hardware acceleration:
1) When Canvas.drawPath is called with a path created via the 
Path.transform(Matrix matrix, Path dest) method, nothing is drawn.  A work 
around is using an alternative method Path.addPath(Path path, Matrix 
transform) which works correctly.
2) Some paths are just not displayed depending on the position.  Moving 
them by 1.0 in the x or y direction sometimes make them appear.  
Unfortunately, this is not a suitable workaround because the layout is 
dynamic and will change.  I haven't picked up a pattern yet on why certain 
positions and not others.  It is no where near the edge of the clipping 
rectangle.

On Friday, September 28, 2012 8:14:06 PM UTC, thibault wrote:
>
> I have a Drawable whose draw method make calls to Canvas.drawText and 
> Canvas.drawPath.  When hardware acceleration is enabled, I only see the 
> text displayed, none of the paths are displayed.  Everything is correctly 
> displayed when hardware acceleration is disabled.  Does anyone have ideas 
> about this?
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to