summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-04-11 23:06:44 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-04-11 23:06:44 +0000
commitbd33c1d7942f5aad3e313cbd447056b720d1149b (patch)
treec15000b5ed150231e7633f422a89a613d6584961 /libs/hwui/renderthread/RenderProxy.cpp
parent2946f76a85ed162fe5f401f5b2b47a79e8e79e5c (diff)
parent66915840539c1e0f82f440ef74cdf78cfeba00ec (diff)
Snap for 7274915 from 66915840539c1e0f82f440ef74cdf78cfeba00ec to sc-release
Change-Id: I20cdf6357254e01f42dc75a1cfb4fe74ad144cb4
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index 423cc08189ca..9361abd20852 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -76,6 +76,12 @@ void RenderProxy::setName(const char* name) {
mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); });
}
+void RenderProxy::setHintSessionCallbacks(std::function<void(int64_t)> updateTargetWorkDuration,
+ std::function<void(int64_t)> reportActualWorkDuration) {
+ mDrawFrameTask.setHintSessionCallbacks(std::move(updateTargetWorkDuration),
+ std::move(reportActualWorkDuration));
+}
+
void RenderProxy::setSurface(ANativeWindow* window, bool enableTimeout) {
if (window) { ANativeWindow_acquire(window); }
mRenderThread.queue().post([this, win = window, enableTimeout]() mutable {