diff options
author | Jorim Jaggi <jjaggi@google.com> | 2018-07-18 15:06:29 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-18 15:06:29 -0700 |
commit | c9756c9193bbbec8bc3a22536f6967c56c833135 (patch) | |
tree | a960658374860a4c331e9568a9556b07438b1970 /libs/hwui/renderthread/RenderProxy.cpp | |
parent | 08f22c1e2d2762788f617e2a6c1c3bbd150f5970 (diff) | |
parent | 2f8a3a4bb8ba700321af9e050a95640f6ac60ce3 (diff) |
Merge "Move allocateBuffers to RT" into pi-dev
am: 2f8a3a4bb8
Change-Id: I6c8f84406a40fa324a4486f71fccf01f6acfe60a
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 59048be768e9..020761110ef0 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -87,6 +87,11 @@ void RenderProxy::initialize(const sp<Surface>& surface) { [ this, surf = surface ]() mutable { mContext->setSurface(std::move(surf)); }); } +void RenderProxy::allocateBuffers(const sp<Surface>& surface) { + mRenderThread.queue().post( + [ surf = surface ]() mutable { surf->allocateBuffers(); }); +} + void RenderProxy::updateSurface(const sp<Surface>& surface) { mRenderThread.queue().post( [ this, surf = surface ]() mutable { mContext->setSurface(std::move(surf)); }); |