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

Commit 9f61c8ad authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Deprecate local-only CursorWindows."

parents 12aeb08b 3e2fb705
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -80,8 +80,7 @@ public:

    ~CursorWindow();

    static status_t create(const String8& name, size_t size, bool localOnly,
            CursorWindow** outCursorWindow);
    static status_t create(const String8& name, size_t size, CursorWindow** outCursorWindow);
    static status_t createFromParcel(Parcel* parcel, CursorWindow** outCursorWindow);

    status_t writeToParcel(Parcel* parcel);
+1 −3
Original line number Diff line number Diff line
@@ -40,11 +40,9 @@ CursorWindow::~CursorWindow() {
    ::close(mAshmemFd);
}

status_t CursorWindow::create(const String8& name, size_t size, bool localOnly,
        CursorWindow** outCursorWindow) {
status_t CursorWindow::create(const String8& name, size_t size, CursorWindow** outCursorWindow) {
    String8 ashmemName("CursorWindow: ");
    ashmemName.append(name);
    ashmemName.append(localOnly ? " (local)" : " (remote)");

    status_t result;
    int ashmemFd = ashmem_create_region(ashmemName.string(), size);