summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-12-04 00:08:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-04 00:08:16 +0000
commitbd15e4f59c0ac4386ad11ba1555e41cb32d3a52c (patch)
tree627f6aac5b149cc44fa61bc0f39e5222173fba70 /libs/hwui/renderthread/RenderProxy.cpp
parentba1307b2b42b60893c88622f41f99efa2356350d (diff)
parent01a5ea35fbba4c5bb1d7790ae1677a2fa752e042 (diff)
Merge "Resume RT-animations after a pauseSurface" into lmp-mr1-dev
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index 5d55ea62af1f..6d063a4b0ce0 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -156,15 +156,14 @@ void RenderProxy::updateSurface(const sp<ANativeWindow>& window) {
}
CREATE_BRIDGE2(pauseSurface, CanvasContext* context, ANativeWindow* window) {
- args->context->pauseSurface(args->window);
- return NULL;
+ return (void*) args->context->pauseSurface(args->window);
}
-void RenderProxy::pauseSurface(const sp<ANativeWindow>& window) {
+bool RenderProxy::pauseSurface(const sp<ANativeWindow>& window) {
SETUP_TASK(pauseSurface);
args->context = mContext;
args->window = window.get();
- postAndWait(task);
+ return (bool) postAndWait(task);
}
CREATE_BRIDGE7(setup, CanvasContext* context, int width, int height,