Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVGAndroidRenderer.processMaskBitmaps is very slow #45

Open
GoogleCodeExporter opened this issue Apr 29, 2015 · 1 comment
Open

SVGAndroidRenderer.processMaskBitmaps is very slow #45

GoogleCodeExporter opened this issue Apr 29, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Render the attached test.svg using renderToCanvas

What is the expected output? What do you see instead?
For a small file like this, I'd have expected a few ms to render. Instead, it 
took 200ms - 300ms. Using renderToPicture, and rendering the picture it was 
only 15ms.

I profiled it, and processMaskBitmaps was the major bottleneck. Instead of the 
custom processing, I'd guess drawBitmap using a PorterDuffXfermode would work 
here, too. E.g. paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN));


Original issue reported on code.google.com by [email protected] on 17 Aug 2014 at 8:41

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant