Fix SkiaRenderer WebGL content not show problem
The WebGL content is a flipped TextureQuad. SkiaRenderer only flips the Y coordinate for drawImageRect(with canvas->scale(1, -1)). It will draw the image outside of the Window (y < 0). To fix this problem, we use canvas->translate(0, quad_rect.bottom()) to move it back into the window. Bug: 901822 Change-Id: I6b98f82fba896021e1c2878632b26a3bd8029845 Reviewed-on: https://chromium-review.googlesource.com/c/1324137 Commit-Queue: Peng Huang <penghuang@chromium.org> Reviewed-by:danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#606892}
Showing
This diff is collapsed.
1.45 KB