Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5388f79a authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

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
parent f344b3ea
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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