summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2019-04-30 18:24:05 -0700
committer Alec Mouri <alecmouri@google.com> 2019-05-06 17:55:25 -0700
commit485e4c358b26f09ec0634e63c311131c9507779a (patch)
tree08a623a6f2942a359a5a785290b7f7c4a7e00e70 /libs/gui/ConsumerBase.cpp
parente6f6a7c4d74c967c4ea38f2f6b7c68f9260c952c (diff)
Clean-up egl image preallocation
Allocate EGL images in onFrameAvailable, instead of a custom onBuffersAllocated callback. This way we reduce traffic over binder while still performing GL work ahead of time in queueBuffer(). Bug: 130567928 Test: systrace Change-Id: I4070e9ddbd379dac3d809d0e7edb2855fc8b7a80
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
-rw-r--r--libs/gui/ConsumerBase.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp
index 1e94cc13cd..abd9921fa9 100644
--- a/libs/gui/ConsumerBase.cpp
+++ b/libs/gui/ConsumerBase.cpp
@@ -131,8 +131,6 @@ void ConsumerBase::onFrameReplaced(const BufferItem &item) {
}
}
-void ConsumerBase::onBufferAllocated(const BufferItem& /*item*/) {}
-
void ConsumerBase::onBuffersReleased() {
Mutex::Autolock lock(mMutex);