diff options
author | Xin Li <delphij@google.com> | 2020-01-15 16:15:41 -0800 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2020-01-15 16:15:41 -0800 |
commit | e13851556bcfecff6de4b3a1a99be4dcaa5853a1 (patch) | |
tree | ee8f1d8a409d0426f6230f8288a97b495c85bc93 /libs/hwui/renderthread/RenderProxy.cpp | |
parent | 51c6389d7233566324630b98d9d37e53917a7612 (diff) | |
parent | 5f8f08ef52678f86a25f3025c149be01202f4353 (diff) |
DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: Ifeb003ec9b3bf824f04d31a117aea65d517241fb
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 1a1b9dac37f6..edb82f4db16d 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -82,9 +82,10 @@ void RenderProxy::setName(const char* name) { mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); } -void RenderProxy::setSurface(const sp<Surface>& surface) { - mRenderThread.queue().post( - [this, surf = surface]() mutable { mContext->setSurface(std::move(surf)); }); +void RenderProxy::setSurface(const sp<Surface>& surface, bool enableTimeout) { + mRenderThread.queue().post([this, surf = surface, enableTimeout]() mutable { + mContext->setSurface(std::move(surf), enableTimeout); + }); } void RenderProxy::allocateBuffers() { |