summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-02-20 16:14:45 -0800
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-02-20 16:14:45 -0800
commitb0e0a77c19b79e9aec90d055fa2a9be87948ee8a (patch)
treef4e05e04931c9774fde7c7158b2b215377386055 /libs/gui/LayerState.cpp
parent9fc5d99c4996c0230d01840781db8a0a041f4b4f (diff)
parentee4497116b560289f1ad95bae733f707a25a129a (diff)
Snap for 13097162 from ee4497116b560289f1ad95bae733f707a25a129a to 25Q2-release
Change-Id: Iff8ef6cb85edfbfe64bbff67fd27e5c7241d5444
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp6
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);
}