Implement a security constrained serialization that can be used for cross process transport of cc::PaintFilters on CompositorFrames. This needs to have parity with the current approach that serializes the SkImageFilter backing of the PaintFilter and support the same constraints that skia does, which are as follows:
1) PaintRecords will be disabled until complete PaintRecord serialization is ready and approved by security, similar to SkPictures.
2) Images will be decoded in the renderer.
3) SkDrawLooper (which includes an SkPaint) and SkTypeface (which has font data) on PaintFlags will not be serialized.
The aim is simply to remove quirks in skia to support these constraints (https://chromium-review.googlesource.com/c/chromium/src/+/759129). We'll temporarily add an option to apply these constraints during PaintFilter serialization and remove them once OOP raster is ready.
Comment 1 by khushals...@chromium.org
, Jan 10 2018