commit | 75f320c5bda480f4ea1501577247d6a807ed3bff | [log] [tgz] |
---|---|---|
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | Thu Sep 21 15:39:23 2017 +0300 |
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | Fri Sep 22 15:43:38 2017 +0300 |
tree | cad6f3b5a758d45e3da5a0a07b7b7669c9f8be8b | |
parent | 3a01e58858e6068f75356e798fd90c80cccb37d6 [diff] |
lib/igt_fb: Add igt_cairo_image_surface_create_from_png() Raw usage of cairo_image_surface_create_from_png() doesn't work since it doesn't know about IGT_DATADIR and IGT_SRCDIR. Let's extract the helper from igt_paint_image() that uses igt_fopen_data() + cairo_image_surface_create_from_png_stream() and call it igt_cairo_image_surface_create_from_png(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>