diff options
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index a27c487822..d85e843d83 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -2640,6 +2640,17 @@ bool Layer::setDropInputMode(gui::DropInputMode mode) { return true; } +bool Layer::setTransactionCompletedListeners( + const std::vector<ListenerCallbacks>& listenerCallbacks, const sp<IBinder>&) { + if (listenerCallbacks.empty()) { + return false; + } + for (auto& listener : listenerCallbacks) { + mFlinger->getTransactionCallbackInvoker().addEmptyCallback(listener); + } + return false; +} + // --------------------------------------------------------------------------- std::ostream& operator<<(std::ostream& stream, const Layer::FrameRate& rate) { |