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

Commit 16b35cbe authored by Shai Barack's avatar Shai Barack
Browse files

Clean up launched flag `bitmap_parcel_ashmem_as_immutable`

Bug: 400807118
Fixes: 444172326
Test: BitmapTest
Flag: EXEMPT cleanup of launched flag
Change-Id: Id66fa4bac72ea9fa6ecba32e59969b5831da7cc9
parent 1c1087af
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -176,13 +176,6 @@ flag {
  is_fixed_read_only: true
}

flag {
  name: "bitmap_parcel_ashmem_as_immutable"
  namespace: "system_performance"
  description: "Whether to parcel implicit copies of bitmaps to ashmem as immutable"
  bug: "400807118"
}

flag {
  name: "bitmap_use_memfd"
  namespace: "system_performance"
+0 −4
Original line number Diff line number Diff line
@@ -987,10 +987,6 @@ static bool shouldParcelAsMutable(SkBitmap& bitmap, AParcel* parcel) {
        return false;
    }

    if (!com::android::graphics::hwui::flags::bitmap_parcel_ashmem_as_immutable()) {
        return true;
    }

    // If we're going to copy the bitmap to ashmem and write that to the parcel,
    // then parcel as immutable, since we won't be mutating the bitmap after
    // writing it to the parcel.