Disable Bitmap density scaling to Picture

Bug: 76144110
Test: I95165583649a1df86782d3684f7bf9bcd8dab7bd

This matches the behavior of DisplayListCanvas. Not scaling means that
we can draw a Bitmap to a Picture, and then play that back in HW mode
and see the same result.

Change-Id: I7421431bad0531112e06ab5c14814b6b6f1591d9
This commit is contained in:
Leon Scroggins III
2018-03-22 12:36:22 -04:00
parent f344b3ead5
commit 5388f79a45

View File

@@ -209,6 +209,8 @@ public class Picture {
public PictureCanvas(Picture pict, long nativeCanvas) {
super(nativeCanvas);
mPicture = pict;
// Disable bitmap density scaling. This matches DisplayListCanvas.
mDensity = 0;
}
@Override