summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2016-08-09 12:09:03 -0700
committerJohn Reck <jreck@google.com>2016-08-09 12:11:13 -0700
commitcd68212f0821e75081375a5af5ef5fce6e45e167 (patch)
tree6613bd6e1c4077530c40ed63742c31b02dc4b987 /libs
parent0b26adbb8b42168d4fc5ef240b1e2730fcfd5c61 (diff)
downloadandroid-frameworks-base-cd68212f0821e75081375a5af5ef5fce6e45e167.tar.gz
android-frameworks-base-cd68212f0821e75081375a5af5ef5fce6e45e167.tar.xz
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')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index fb1c896..a734401 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) {