diff options
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 9361abd20852..1b4b4b999f68 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -295,6 +295,12 @@ void RenderProxy::setPictureCapturedCallback( [this, cb = callback]() { mContext->setPictureCapturedCallback(cb); }); } +void RenderProxy::setASurfaceTransactionCallback( + const std::function<void(int64_t, int64_t, int64_t)>& callback) { + mRenderThread.queue().post( + [this, cb = callback]() { mContext->setASurfaceTransactionCallback(cb); }); +} + void RenderProxy::setFrameCallback(std::function<void(int64_t)>&& callback) { mDrawFrameTask.setFrameCallback(std::move(callback)); } |