Skip to content

SVGAndroidRenderer.processMaskBitmaps is very slow #45

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 mar...@greenrobot.de on 17 Aug 2014 at 8:41

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions