diff options
author | 2025-02-19 19:11:17 -0800 | |
---|---|---|
committer | 2025-02-19 19:11:17 -0800 | |
commit | bb0c493501a5e71438faf15cef1b7e9af64e8a59 (patch) | |
tree | ebd647afba8b281b1f2a9ff53637d5fdd5c09efe /libs/gui/LayerState.cpp | |
parent | 50098249722276f23cdf810459a158ad7b31a52c (diff) | |
parent | f73db7a6242e297ead71df0d0d1fb3a8515245d3 (diff) |
Merge "Revert "Harden construction sites of android::StrongPointer."" into main
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 43855dadcd..ebfc62f33f 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -684,7 +684,7 @@ void layer_state_t::merge(const layer_state_t& other) { } if (other.what & eInputInfoChanged) { what |= eInputInfoChanged; - windowInfoHandle = sp<WindowInfoHandle>::make(*other.windowInfoHandle); + windowInfoHandle = new WindowInfoHandle(*other.windowInfoHandle); } if (other.what & eBackgroundColorChanged) { what |= eBackgroundColorChanged; @@ -1001,13 +1001,13 @@ status_t BufferData::readFromParcel(const Parcel* input) { bool tmpBool = false; SAFE_PARCEL(input->readBool, &tmpBool); if (tmpBool) { - buffer = sp<GraphicBuffer>::make(); + buffer = new GraphicBuffer(); SAFE_PARCEL(input->read, *buffer); } SAFE_PARCEL(input->readBool, &tmpBool); if (tmpBool) { - acquireFence = sp<Fence>::make(); + acquireFence = new Fence(); SAFE_PARCEL(input->read, *acquireFence); } |