<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - cairo_region cannot be used with CLIP, as NO public API is exposed to use it in cairo_context/surface"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=55836">55836</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>cworth@cworth.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cairo_region cannot be used with CLIP, as NO public API is exposed to use it in cairo_context/surface
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>adhir.garg@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.12.2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In Cairo release 1.10.0, cairo_region_t data type was added.
However pixman was removed.
Now there is no way to use cairo_region_t in cairo_context. So cairo_region is
just a reflection of rectangles.

Setting the CLIP region to the cairo_region is not possible. So if we have a
cairo_region_t created after union, subtract, we cannot use it for clipping
purposes.

Currently cairo_clip(_preserve) can use ONLY path, but cannot make use all
rectangles (obtained from cairo_region_t).

By some or other way, we need to create/expose a function 
cairo_clip_intersect_to_region (cairo_region_t      *region), which would clip
according to PATH and INTERSECT with region</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>