mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 05:20:22 +01:00
record: Only reduce fill+stroke if the clip doesn't change between the commands
Pointed out by Adrian Johnson. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6ec24760b3
commit
c1b0e73578
1 changed files with 3 additions and 1 deletions
|
|
@ -1323,7 +1323,9 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t *surface,
|
|||
if (stroke_command != NULL &&
|
||||
stroke_command->header.type == CAIRO_COMMAND_STROKE &&
|
||||
_cairo_path_fixed_equal (&command->fill.path,
|
||||
&stroke_command->stroke.path))
|
||||
&stroke_command->stroke.path) &&
|
||||
_cairo_clip_equal (command->header.clip,
|
||||
stroke_command->header.clip))
|
||||
{
|
||||
status = _cairo_surface_wrapper_fill_stroke (&wrapper,
|
||||
command->header.op,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue