<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:andrej.mitrovich@gmail.com" title="Andrej Mitrovic <andrej.mitrovich@gmail.com>"> <span class="fn">Andrej Mitrovic</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Cairo context should provide cairo_set_target"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57289">bug 57289</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>andrej.mitrovich@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Cairo context should provide cairo_set_target"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57289#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Cairo context should provide cairo_set_target"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57289">bug 57289</a>
from <span class="vcard"><a class="email" href="mailto:andrej.mitrovich@gmail.com" title="Andrej Mitrovic <andrej.mitrovich@gmail.com>"> <span class="fn">Andrej Mitrovic</span></a>
</span></b>
<pre>There was a proposal for cairo_/save/restore/_state[1] back in 2006, but it
seems it never got implemented.
[1] : <a href="http://lists.freedesktop.org/archives/cairo/2006-January/006196.html">http://lists.freedesktop.org/archives/cairo/2006-January/006196.html</a>
My needs are to be able to replace the target surface without losing internal
state (such as the line width settings). For example I could have a widget with
a backing store which a user paints on using a cairo_t context. If the widget
size changes (e.g. becomes larger), the backing store might have to be
reallocated, but then a new cairo_t context has to be created for the new
surface.
Currently that means losing all internal stack state (e.g. the user's line
width, etc).
Either the ability to store and load the internal state externally or the
ability to replace the internal surface would work for me.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>