Bug 78320 - cairo-interpreter fails to replay/capture correctly
Summary: cairo-interpreter fails to replay/capture correctly
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.12.16
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-06 04:39 UTC by janezz55
Modified: 2018-08-25 13:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
original .svg file (2.54 MB, text/plain)
2014-05-06 04:39 UTC, janezz55
Details
librsvg generated .png (972.96 KB, image/png)
2014-05-06 04:42 UTC, janezz55
Details
cairo script capture of librsvg output (2.66 MB, application/x-xz)
2014-05-06 04:55 UTC, janezz55
Details
the cairo-interpreter render of the .cs (1015.13 KB, image/png)
2014-05-06 04:57 UTC, janezz55
Details

Description janezz55 2014-05-06 04:39:35 UTC
Created attachment 98529 [details]
original .svg file

cairo script is a wonderful debugging facility. It can also serve to store cairo drawings. I am using it as a workaround to the lack of .svg decoding support in cairo. The idea is:

- render the .svg with librsvg while capturing the output into a .cs file,
- replay the .cs file with cairo-interpreter.

By and large the approach works, if only the capture/replay process worked correctly. I am providing 3 attachments. The first is a .png generated by librsvg and a corresponding .cs, captured by cairo and a .png, generated by replaying the .cs. The .cs generates a blue "halo", where a shadow should be.
Comment 1 janezz55 2014-05-06 04:42:34 UTC
Created attachment 98530 [details]
librsvg generated .png
Comment 2 janezz55 2014-05-06 04:55:48 UTC
Created attachment 98531 [details]
cairo script capture of librsvg output
Comment 3 janezz55 2014-05-06 04:57:59 UTC
Created attachment 98532 [details]
the cairo-interpreter render of the .cs

Note the blue "halo" where a shadow should be. It is missing from the the .png generated by librsvg.
Comment 4 GitLab Migration User 2018-08-25 13:45:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/176.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.