SkiaRenderer: Fix RGBA_TEXTURE copy scaling
This CL fixes a bug where SkiaRenderer was improperly interpreting the scaling from CopyOutputRequests. For example, if we want to scale from 2 -> 1, we should shrink the SkCanvas by invoking canvas->scale(0.5, 0.5). Currently, SkiaRenderer inverts the operands so we actually end up zooming with a scale factor of 2. Also, this CL removes an extraneous `makeImageSnapshot` that I used for debugging but forgot to remove. Oops... Bug: 1098435 Change-Id: Ibb5f55721a243f10230b8840a5ce8836ee789ad5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385930 Commit-Queue: Brian Ho <hob@chromium.org> Reviewed-by:Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#803909}
Showing
Please register or sign in to comment