diff options
| author | 2025-02-05 09:18:03 -0800 | |
|---|---|---|
| committer | 2025-02-05 09:18:03 -0800 | |
| commit | ea332b76641fcba3bdf457c255235f8c6746b623 (patch) | |
| tree | 6ab2cd88245e300252500eeca91d1f7a1f9888a3 | |
| parent | 3f11c43ff58e1447a29ee07990eca9d699885dd0 (diff) | |
| parent | 4f8ce35334b11668e0d399c0c3f91b3c75c46183 (diff) | |
Merge changes from topic "refbase-lar" into main
* changes:
opengl stubs: update for no implicit sp
libgui InputTransferToken: avoid implicit sp<>
| -rw-r--r-- | libs/gui/include/gui/InputTransferToken.h | 4 | ||||
| -rw-r--r-- | opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/include/gui/InputTransferToken.h b/libs/gui/include/gui/InputTransferToken.h index 6530b5069a..fb4aaa73ae 100644 --- a/libs/gui/include/gui/InputTransferToken.h +++ b/libs/gui/include/gui/InputTransferToken.h @@ -25,7 +25,7 @@ namespace android { struct InputTransferToken : public RefBase, Parcelable { public: - InputTransferToken() { mToken = new BBinder(); } + InputTransferToken() { mToken = sp<BBinder>::make(); } InputTransferToken(const sp<IBinder>& token) { mToken = token; } @@ -50,4 +50,4 @@ static inline bool operator==(const sp<InputTransferToken>& token1, return token1->mToken == token2->mToken; } -} // namespace android
\ No newline at end of file +} // namespace android diff --git a/opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp b/opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp index 7c255ed106..5ba72affc0 100644 --- a/opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp +++ b/opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.cpp @@ -113,7 +113,7 @@ not_valid_surface: if (producer == NULL) goto not_valid_surface; - window = new android::Surface(producer, true); + window = android::sp<android::Surface>::make(producer, true); if (window == NULL) goto not_valid_surface; |