diff options
author | Mihai Popa <popam@google.com> | 2018-02-23 16:10:11 +0000 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-02-26 11:23:27 -0800 |
commit | 9568800d90e917e28ae2bc4ae1ca5dcaaf60675b (patch) | |
tree | 43cc506388f3c094741838b830964c35d48f0777 /libs/hwui/renderthread/RenderProxy.cpp | |
parent | 99ef04f7173677ac52bf952979085e97e25f858c (diff) |
[Magnifier-26] Wire up frame callback for realsies
Test: none yet
Bug: 73810478
Bug: 72041926
Change-Id: I7154ed4b3d2cd820dc8c8ff55eed130be87d1606
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 79e46ed9e65f..4be7a57daedf 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -270,6 +270,10 @@ void RenderProxy::setContentDrawBounds(int left, int top, int right, int bottom) mDrawFrameTask.setContentDrawBounds(left, top, right, bottom); } +void RenderProxy::setFrameCallback(std::function<void(int64_t)>&& callback) { + mDrawFrameTask.setFrameCallback(std::move(callback)); +} + void RenderProxy::serializeDisplayListTree() { mRenderThread.queue().post([=]() { mContext->serializeDisplayListTree(); }); } |