• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dunst-project / dunst / 1093
48%
master: 49%

Build:
Build:
LAST BUILD BRANCH: extmatch
DEFAULT BRANCH: master
Ran 06 Jan 2019 11:48PM UTC
Jobs 1
Files 47
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1093

Pull #585

travis-ci

web-flow
Manually convert GdkPixbuf to cairo surfaces

As already noted in the code comment, we all knew that the in memory
conversion to a PNG stream is a cumbersome technique. But it was worth
to remove the GTK dependency.

After finding out, that gdk_pixbuf_new_from_data can actually use a
GVariant and share its memory without allocating new memory, I poked
the cairo docs for a similar technique.

There is cairo_image_surface_create_for_data, which would achieve the
same, but cairo uses another color byte order. So we have to manually
copy and reassemble the bytes.

It may look like a big rise in complexity, but actually, it's straight
forward copying pixel by pixel and changing the byte's order.

And the gdk_pixbuf_to_cairo_surface is 33x faster.
Pull Request #585: Manually convert GdkPixbuf to cairo surfaces

37 of 37 new or added lines in 1 file covered. (100.0%)

1463 of 3072 relevant lines covered (47.62%)

53.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1093.1 06 Jan 2019 11:48PM UTC 0
47.62
Travis Job 1093.1
Source Files on build 1093
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1093
  • Pull Request #585
  • PR Base - master (#1091)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc