Bug 739096 - Cherry-pick https://gitlab.freedesktop.org/cairo/cairo/-/commit/0bf2c140d2dc6521c6f925b1757f2d4809eabf18 draft
authorJonathan Kew <jkew@mozilla.com>
Thu, 28 Jan 2021 16:53:49 +0000
changeset 3667339 15d5a2e21f2d3e386c0e925f495d86aea66464f6
parent 3667338 ee2e59d2423a2b2f4f7c615bc943b9b9b366cede
child 3667340 ebe8d3c356de730d3bd3190c75bb46791cf2e95b
push id683075
push userjkew@mozilla.com
push dateMon, 19 Apr 2021 13:53:47 +0000
treeherdertry@24dbc2b8647b [default view] [failures only]
bugs739096
milestone89.0a1
Bug 739096 - Cherry-pick https://gitlab.freedesktop.org/cairo/cairo/-/commit/0bf2c140d2dc6521c6f925b1757f2d4809eabf18 Fix two uninitialised variables in _cairo_recording_surface_snapshot() Differential Revision: https://phabricator.services.mozilla.com/D112562
gfx/cairo/cairo/src/cairo-recording-surface.c
--- a/gfx/cairo/cairo/src/cairo-recording-surface.c
+++ b/gfx/cairo/cairo/src/cairo-recording-surface.c
@@ -1577,16 +1577,18 @@ static cairo_surface_t *
     surface->base.is_clear = other->base.is_clear;
 
     surface->bbtree.left = surface->bbtree.right = NULL;
     surface->bbtree.chain = INVALID_CHAIN;
 
     surface->indices = NULL;
     surface->num_indices = 0;
     surface->optimize_clears = TRUE;
+    surface->has_bilevel_alpha = other->has_bilevel_alpha;
+    surface->has_only_op_over = other->has_only_op_over;
 
     _cairo_array_init (&surface->commands, sizeof (cairo_command_t *));
     status = _cairo_recording_surface_copy (surface, other);
     if (unlikely (status)) {
 	cairo_surface_destroy (&surface->base);
 	return _cairo_surface_create_in_error (status);
     }