summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/screenshot/TiledImageDrawable.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix ImageTileSet support for multiple drawablesMark Renouf2021-03-041-1/+2
| | | | Change-Id: Ic850eff616140e5b0158f1d340ce8cfe02cc6c02
* Long screenshots: Fix/simplify ImageTileSet.toBitmapMark Renouf2021-02-111-3/+3
| | | | | | | | | | | | | | | | Bug: 179378294 Test: manual There were subtle mistakes in the drawing which caused bounds to fail when the image had tiles at negative offsets. toBitmap now delegates to the drawable impl which can already be cropped with setBounds In addition this fixes mistakes in TiledImageDrawable where translation is applied in the wrong direction and cropRect applied in the wrong position. Change-Id: Ica28e47031cb28353a49cdd657666f17115c4f6c
* Adds a model & view layer for long screenshot tilesMark Renouf2021-01-071-0/+117
An ImageTile wraps an Image with an attached HardwareBuffer, as received from an ImageReader as used by scroll capture. ImageTileSet provides a drawable to present the result on-screen, TiledImageDrawable maintains a display list which is updated when notified of a change. This object can also produce a Bitmap as output for export to a compressed image. This change also tightens up the ScrollCaptureClient interface to internally define tile size and limits. Instead of accepted arbitrary rectangles, accept only a single y-coordinate to specify the verical position of the tile to capture. Bug: 174571735 Bug: 148519342 Test: manually, take long screenshot Change-Id: I81032766c33396f51cb117f87a4d65288990f66d