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

Bug: 901822
Change-Id: I6b98f82fba896021e1c2878632b26a3bd8029845
Commit-Queue: Peng Huang <>
Reviewed-by: danakj <>
Cr-Commit-Position: refs/heads/master@{#606892}
5 files changed