~ubuntu-branches/ubuntu/raring/cairo/raring

« back to all changes in this revision

Viewing changes to src/cairo-recording-surface.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-01-23 21:19:34 UTC
  • mfrom: (1.3.11) (28.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130123211934-q9qb538ujcmkliic
Tags: 1.12.10-1ubuntu1
* Merge from Debian, remaining changes:
* debian/patches/server_side_gradients.patch:
  - Don't use server side gradients, most drivers don't handle those and
    are really slow
* debian/control: Add missing libxext-dev dependency to libcairo2-dev.
  Spotted by autopkgtest.
* debian/patches/git_evince_rendering_fix.patch:
  Backport GIT commit to fix a rendering bug in evince
* debian/control, debian/libcairo2.symbols, debian/rules:
  - Disable GL backend due to LP: #725434

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
    if (box->p1.x == bbt->extents.p1.x && box->p1.y == bbt->extents.p1.y &&
211
211
        box->p2.x == bbt->extents.p2.x && box->p2.y == bbt->extents.p2.y)
212
212
    {
213
 
        header->chain = bbt->chain;
 
213
        cairo_command_header_t *last = header;
 
214
        while (last->chain) /* expected to be infrequent */
 
215
            last = last->chain;
 
216
        last->chain = bbt->chain;
214
217
        bbt->chain = header;
215
218
        return CAIRO_STATUS_SUCCESS;
216
219
    }
1536
1539
            _cairo_traps_init (&traps);
1537
1540
 
1538
1541
            /* XXX call cairo_stroke_to_path() when that is implemented */
1539
 
            status = _cairo_path_fixed_stroke_to_traps (&command->stroke.path,
1540
 
                                                        &command->stroke.style,
1541
 
                                                        &command->stroke.ctm,
1542
 
                                                        &command->stroke.ctm_inverse,
1543
 
                                                        command->stroke.tolerance,
1544
 
                                                        &traps);
 
1542
            status = _cairo_path_fixed_stroke_polygon_to_traps (&command->stroke.path,
 
1543
                                                                &command->stroke.style,
 
1544
                                                                &command->stroke.ctm,
 
1545
                                                                &command->stroke.ctm_inverse,
 
1546
                                                                command->stroke.tolerance,
 
1547
                                                                &traps);
1545
1548
 
1546
1549
            if (status == CAIRO_INT_STATUS_SUCCESS)
1547
1550
                status = _cairo_traps_path (&traps, path);