Use a DrawInfo for passing per-draw information in SVGImage
The new class DrawInfo packages the various parameters used when drawing an SVGImage - container size, zoom and URL. The intent is to reduce the amount of arguments that needs to be passed around as well as prepare for better (more centralized) handling of the container size to get better control of the various representations used (FloatSize, LayoutSize, IntSize). Also move DrawNeedsLayer() closer to its user and perform minor tweaks to DrawPatternForContainer() (reorder matrix setup; return PaintRecord directly to MakePaintRecord). Change-Id: Id231682c9d85a322a3c585a75b2793a68628c348 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2550915Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#830131}
Showing
This diff is collapsed.
Please register or sign in to comment