commit | ea978db1f86b8c6fae3683eafe6621fd958308d7 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Sat Jan 13 11:40:42 2018 -0500 |
committer | Leon Scroggins <scroggo@google.com> | Wed Jan 17 19:40:10 2018 +0000 |
tree | 69dd86836a3fa989c8c1fe9610fd230826b03633 | |
parent | 52aa9801fe1e3a6f8f28fcd2c8431effdf67e230 [diff] |
Switch to SkAndroidCodec::computeSampleSize Bug: 63909536 Test: CtsGraphicsTestCases(ImageDecoderTest) and Skia Depends on https://skia-review.googlesource.com/94620 in Skia. Move the code for determining the actual sample size to Skia. That code includes tests which caught bugs that are hard to test for from the Java API. (Previously, we could end up using the wrong sample size and then scaling unnecessarily.) Change-Id: Ib3a5d70e4845e95b18af77668383d38746cb21fc