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

Commit 3ea468e3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clean up launched flag `bitmap_parcel_ashmem_as_immutable`" into main

parents 9b9d5f5e 16b35cbe
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.