Bug 1717685 - Silently handle NOTHING_TO_DO as SUCCESS when replaying a recording, rather than asserting on it. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D119398
This commit is contained in:
Jonathan Kew 2021-07-20 17:43:31 +00:00
Родитель 90ced4b1e3
Коммит e4f80082a0
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1995,6 +1995,8 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t *surface,
} else if (status == CAIRO_INT_STATUS_IMAGE_FALLBACK) {
command->header.region = CAIRO_RECORDING_REGION_IMAGE_FALLBACK;
status = CAIRO_INT_STATUS_SUCCESS;
} else if (status == CAIRO_INT_STATUS_NOTHING_TO_DO) {
status = CAIRO_INT_STATUS_SUCCESS;
} else {
assert (_cairo_int_status_is_error (status));
}