commit | 74518a7f1756109b8f0f5862ae4b4bb3eee44526 | [log] [tgz] |
---|---|---|
author | Jonathan Backer <backer@chromium.org> | Fri Feb 15 02:27:20 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 15 02:27:20 2019 |
tree | 3d48236ed5595246d6af79cd78e065f1fe953c59 | |
parent | 90aa3c4bf3ace6fde0e17511b232020d50f9f173 [diff] |
Handle vertical flipping on display Skia typically handles the flipping of the display by the appropriate choice of SkSurface origin: kTopLeft_GrSurfaceOrigin or kBottomLeft_GrSurfaceOrigin. GLRendererCopier does not use Skia and needs to know if the SkSurface that it is reading from is flipped. SkiaOutputSurfaceImplTest.SubmitPaint reads from the root render pass. If using GL, we tell GLRendererCopier to flip based on the properties of the root. If using Vulkan, we don't change co-ordinates because Skia handles it on the current software readback pathway. I also made the SurfaceCharacterization consistent with the actual surface, but I don't believe this is necessary. Bug: 929790 Change-Id: Ie5b515e986b1d84ab77b1d600d219501df9860ed Reviewed-on: https://chromium-review.googlesource.com/c/1464924 Commit-Queue: Jonathan Backer <backer@chromium.org> Reviewed-by: Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#632465}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .