commit | ae7c8354ab5e3c590e0b92c7809f2a50b3fe67e3 | [log] [tgz] |
---|---|---|
author | Daniel Dilan <danieldilan@google.com> | Mon Oct 14 19:46:40 2024 +0000 |
committer | Daniel Dilan <danieldilan@google.com> | Wed Oct 30 19:56:50 2024 +0000 |
tree | c4cb87e887f0e76e828f39a80dba0bc80fad1b4e | |
parent | 6b37ca81979168bf46421ba437ac4a5dab2cf1c1 [diff] |
Override the SetFilterBitmap and IsFilterBitmap functions for AnimatedImageDrawable API This change in Skia (https://skia-review.googlesource.com/c/skia/+/909816) makes it so that the default sampling method for animated image drawables is linear sampling. This CL implements these drawable API's (https://developer.android.com/reference/android/graphics/drawable/Drawable#setFilterBitmap(boolean)) so that the user can choose to use nearest neighbor sampling if they want pixel perfect scaling. Bug: 370523334 Bug: 355264141 Change-Id: I36b7154016e40f3c1f34fd98e347de9a980d0ad9 Test: atest CtsGraphicsTestCases:android.graphics.drawable.cts.AnimatedImageDrawableTest#testSetFilterBitmap -- --template:map preparers=template/preparers/feature-flags --flag-value core_graphics/com.android.graphics.hwui.flags.animated_image_drawable_filter_bitmap=true Flag: com.android.graphics.hwui.flags.animated_image_drawable_filter_bitmap