diff options
author | John Reck <jreck@google.com> | 2016-08-09 12:09:03 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-08-09 12:11:13 -0700 |
commit | cd68212f0821e75081375a5af5ef5fce6e45e167 (patch) | |
tree | 6613bd6e1c4077530c40ed63742c31b02dc4b987 /libs/hwui/renderthread/RenderProxy.cpp | |
parent | 0b26adbb8b42168d4fc5ef240b1e2730fcfd5c61 (diff) |
Make updateSurface non-blocking
Bug: 30442298
We already do this for initialize(), fix
it so that update() is parallel with the
UI thread as well.
Shaves ~7ms off of the 99th percentile on
NotificationShade open & close
Change-Id: I1791df495453fb9e1e12362c68e3d20e837e62be
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index fb1c8962328b..a734401a2be6 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -158,7 +158,7 @@ void RenderProxy::updateSurface(const sp<Surface>& surface) { SETUP_TASK(updateSurface); args->context = mContext; args->surface = surface.get(); - postAndWait(task); + post(task); } CREATE_BRIDGE2(pauseSurface, CanvasContext* context, Surface* surface) { |