Retain pp::ImageData while there are pending paints against it.
The ImageData might get destroyed while the paints are still pending. Typically, the paints are then cancelled thereafter so no harm comes from the dangling references, but this patch avoids creating them in the first place. The remaining changes are consequences of ProgressivePaint becoming non-POD, and converting to protected members. Also use scoped FPDF classes while we're at it. Bug: 838886 Change-Id: Ic933350ac9e981da58f1f841968dc89fb8518974 Reviewed-on: https://chromium-review.googlesource.com/1054502Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org> Cr-Commit-Position: refs/heads/master@{#557724}
Showing
This diff is collapsed.
Please register or sign in to comment