Apply transformation matrix to texture coordinates.
SurfaceTexture provides transformation matrix which should be used to transform texture coordinates before sampling to account for possible coordinate differences in the underlying native buffer. This was causing the texture to be flipped when rendered. Also fix the square coordinates which caused stretching. Bug: 301023410 Test: atest virtual_camera_tests Test: atest CtsVirtualCameraTestCases Test: manual with sample app & canvas + video Change-Id: Ib7fd2bb03e6686ada193ea67541f051d981f2bad
Loading
Please register or sign in to comment