diff options
| author | 2020-12-02 16:50:43 -0800 | |
|---|---|---|
| committer | 2020-12-10 10:27:17 -0800 | |
| commit | 7e72caf3ba230c8877194f8b84e5f3346bdbb67d (patch) | |
| tree | 29475344df961ae4fdefaaa3a7773664af954988 /libs/gui/QueueBufferInputOutput.cpp | |
| parent | 16abdd2aba373757470ebbb6f8bb46861a6a3d10 (diff) | |
Use empty frame for input when layer bounds is invalid
Fixed a few issues:
1. Return INVALID_RECT for size if there's no buffer for BLAST. This was
already done in BufferQueueLayer. This ensures we don't assume the layer
has a valid size when there's no buffer
2. Don't transform invalid layer bounds in fillInputInfo since it could
result in sending a valid frame when the layer actually has no bounds.
Instead just set input frame to empty, reset the transform, and return
early.
Test: Window with no width or height doesn't get untrusted touch
Test: InputSurfacesTest
Fixes: 173297887
Change-Id: I191d411b0f83ce57b6fdc20a1def8070110d418b
Diffstat (limited to 'libs/gui/QueueBufferInputOutput.cpp')
0 files changed, 0 insertions, 0 deletions