Use mirrored layer's content scale instead of mirror layer's
Render surface textures have the surface content scale already applied to them when they are generated. Because of this, the surface content scale component of the target draw transform needs to be removed. In the case of a mirror layer, a RenderPassDrawQuad (RPDQ) is used that points to the render surface texture of the mirrored layer. Similar to the RPDQ of the mirrored layer, the RPDQ of the mirror layer also has to have its surface content scale component removed from its target draw transform. However, since this RPDQ points to the render surface texture of the mirrored layer, the inverse surface scale content of the mirrored layer must be applied rather than that of the mirror layer. This patch makes this change. Change-Id: I2696d7af8f62872c623ea6516485671a9341484d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1696581Reviewed-by:danakj <danakj@chromium.org> Reviewed-by:
Mohsen Izadi <mohsen@chromium.org> Commit-Queue: Malay Keshav <malaykeshav@chromium.org> Cr-Commit-Position: refs/heads/master@{#676588}
Showing
Please register or sign in to comment