<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Am 25.01.2011 09:15, schrieb Carlos Garcia Campos:
    <blockquote cite="mid:1295943248-sup-8154@charizard" type="cite">
      <pre wrap="">Excerpts from Albert Astals Cid's message of lun ene 24 19:53:50 +0100 2011:
</pre>
      <blockquote type="cite">
        <pre wrap="">A Dilluns, 24 de gener de 2011, Thomas Freitag va escriure:
</pre>
        <blockquote type="cite">
          <pre wrap="">Am 24.01.2011 14:17, schrieb Carlos Garcia Campos:
</pre>
          <blockquote type="cite">
            <pre wrap="">Cairo 1.11.2 has a new mesh pattern that can be used to implement 6/7
type gradients. Adrian has an updated poppler branch that implements
mesh gradients in cairo backend:

<a class="moz-txt-link-freetext" href="http://cgit.freedesktop.org/~ajohnson/poppler/log/?h=mesh">http://cgit.freedesktop.org/~ajohnson/poppler/log/?h=mesh</a>

I've tried it and it works great, it fixes bugs #28836 and #32791 (and
maybe others). I haven't pushed the patch yet becuase it contains
minimal changes in Gfx.cc. If nobody objects I'll push it to master
branch only.
</pre>
          </blockquote>
          <pre wrap="">
I had a quick look at what Adrian has done in Gfc.cc, and think, that is
a little bit misusing of out-&gt;gouraudTriangleShadedFill( state, shading)
and out-&gt;patchMeshShadedFill( state, shading):

When these functions returns gTrue, this indicates that all work has
already be done in the output device. How Adrian implements it is very
special to Cairo. But it is quite ease to change it:
Just move the lines
</pre>
        </blockquote>
        <pre wrap="">
Agreed with Thomas.
</pre>
      </blockquote>
      <pre wrap="">
contentIsHidden() is private to Gfx, and all other patterns do the
clip and fill in Gfx
</pre>
    </blockquote>
    Yeah, unfortunately contentIsHidden is private to Gfx, so probably
    there should be a return if contentIsHidden() before calling the
    shading routines in the output devices. But You're not true, that
    clip and fill is done in Gfx, this is special to cairo which is the
    only device that supports useFillColorStop() and can therefore use
    the clip and fill from Gfx. At least in SplashOutputDev the done
    work (implemented by Christian Feuersänger) in
    gouraudTriangleShadedFill would be overwritten and probably causes
    wrong results.<br>
    <br>
    Thomas
    <blockquote cite="mid:1295943248-sup-8154@charizard" type="cite">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">Albert
</pre>
        <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
poppler mailing list
<a class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>