summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Rob Carr <racarr@google.com> 2020-11-03 21:32:19 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-11-03 21:32:19 +0000
commit0705300af311692d5a7dd41a26c54b8b2dcac5ae (patch)
tree788d5ecd8624a67019f7ec69557da0120ba06020 /libs/gui/BLASTBufferQueue.cpp
parent2ab20b098995a7a29903bc750ff30870b2db250c (diff)
parentfbcbb4c0258b0e05b310e35d76310480e4933d63 (diff)
Merge "BLASTBufferQueue: Hold sp in transactionCallbackThunk"
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
-rw-r--r--libs/gui/BLASTBufferQueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp
index ff64d65312..678613b1ff 100644
--- a/libs/gui/BLASTBufferQueue.cpp
+++ b/libs/gui/BLASTBufferQueue.cpp
@@ -159,7 +159,7 @@ static void transactionCallbackThunk(void* context, nsecs_t latchTime,
if (context == nullptr) {
return;
}
- BLASTBufferQueue* bq = static_cast<BLASTBufferQueue*>(context);
+ sp<BLASTBufferQueue> bq = static_cast<BLASTBufferQueue*>(context);
bq->transactionCallback(latchTime, presentFence, stats);
}