commit | 1a12ab26d419bad8e5c3c121d98114199e05f47c | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Mon Mar 26 15:00:49 2018 -0400 |
committer | Stan Iliev <stani@google.com> | Thu Mar 29 19:30:28 2018 +0000 |
tree | 44ae7781ac684a360d9e85d482b336036e89ec3e | |
parent | 407932ebc0fab40dccd7298f179639b8b9f93460 [diff] |
Fix Skia's impl for TextureView.getBitmap Bug: 73392905 Test: New test added with I2d4ef440f943a50b9367976ba1444f4350071bfd When providing a width and height, getBitmap should scale to the destination. Add a parameter to LayerDrawable::DrawLayer for a destination rectangle to scale to. Pass the size of the bitmap in SkiaOpenGLPipeline::copyLayerInto down to DrawLayer. The only other caller of DrawLayer is unaffected. Change-Id: I7aa192181c2d15bc8fd4de2fb15c4d276b05d2ac