Only create SVGFilterRecordingContext when actually recording
Even if we don't need to record (new) content for the filter, we still create a SVGFilterRecordingContext. Make this conditional on actually needing to record content instead. This makes it possible to simplify the setup and interface of said helper class. Also move the filter-content PaintInfo to SVGFilterRecordingContext since they are pretty tightly coupled anyway and now have the same lifetime. Bug: 109224 Change-Id: I6507d6666e270499e19b7ed279f95546c99594f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2106192Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#751750}
Showing
Please register or sign in to comment