[RBS] Set the correct pixel size on RecordPaintCanvas for CanvasImageSource
When initializing a RecordPaintCanvas, the size set should be in pixels. Right now we are setting the DIP size which is resulting in PaintOps that are outside the clip bounds to be rejected all together. This patch also adds a DCHECK to ensure that the clip bounds set on the canvas matches the expected pixel size of the rasterized image. Bug: 896203 Change-Id: I10cf95bc656950c217d3ae464f277a0cb7140063 Component: CanvasImageSource Reviewed-on: https://chromium-review.googlesource.com/c/1296687 Commit-Queue: Malay Keshav <malaykeshav@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#602477}
Showing
Please register or sign in to comment