Skip to content

Instantly share code, notes, and snippets.

@maks
Last active December 22, 2015 15:09
Show Gist options
  • Select an option

  • Save maks/6490554 to your computer and use it in GitHub Desktop.

Select an option

Save maks/6490554 to your computer and use it in GitHub Desktop.
Poor drawing perf in Fennec on android

Gfx info

the new Azure framework:


Profiling

Using the profiling add-on as described here gave native stack trace.

The native stack trace pointed to bits_image_fetch_bilinear_affine_pad_x8r8g8b8 as a likely culprit. Note that the function is actually generated by the MAKE_FETCHERS macro in gfx/cairo/libpixman/src/pixman-bits-image.c

Further research provided this lead: http://www.mail-archive.com/pixman@lists.freedesktop.org/msg00921.html and then this: http://lists.freedesktop.org/archives/pixman/2011-February/001053.html

Yowsers! according to that email, using neon SIMD makes bilinear scaling 6x faster! I our case we are only doing translation btu still...

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