summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2021-05-18 00:34:26 -0400
committer John Reck <jreck@google.com> 2021-06-09 14:45:08 -0400
commit4464e463577263b8e93075cf24158f84487969e2 (patch)
treeb8c6b6a8dc8c74c4cb249301e6b03c612b487d98 /libs/input/SpriteController.cpp
parentf9bf0a696b3385f3d3a3cd620930e3888cdb4e84 (diff)
Fix PixelCopy & BQ crop
Change Surface to return the original crop rect + transform int instead of a matrix in GL's bottom-left origin in 0..1 space. This avoids doing an extreme amount of matrix pulling apart to try and guess at the inputs and map rects around to make it maybe work sometimes along with avoiding the need to convert that matrix into skia's top-left non-unit space. This also opens the door to avoiding the 1 texel crop problem if ASurfaceTexture is similarly adjusted to return the crop+transform instead of a float[16] matrix as we are using a proper srcRect to sample from instead of purely done via matrix manipulation. This CL continues to pass kFast_SrcRectConstraint so we don't actually benefit but it at least COULD. Fixes: 183553027 Test: atest android.view.cts.PixelCopyTest (+new testBufferQueueCrop) Change-Id: I5f638153baed7f67dc43fe9ecb4587f579222b5d Merged-In: I5f638153baed7f67dc43fe9ecb4587f579222b5d
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions