summaryrefslogtreecommitdiff
path: root/libs/gui/ISurfaceComposer.cpp
diff options
context:
space:
mode:
author Jorim Jaggi <jjaggi@google.com> 2017-06-09 04:15:20 +0000
committer android-build-merger <android-build-merger@google.com> 2017-06-09 04:15:20 +0000
commit5d37ae59e040fdca43a92084c96d89db4be33fec (patch)
treebc63508cdc8aed10d61896780503a9ef08048797 /libs/gui/ISurfaceComposer.cpp
parentc11cc1d365c27dd888fcf01e5706c4df16816f48 (diff)
parentb1e2f8deb38353e4bcc9d3ef06bc15bd5e417425 (diff)
Properly run window animations at vsync-sf (2/2)
am: b1e2f8deb3 Change-Id: I7fbd22c681688edce1eda7f2786c68e6cbe32a22
Diffstat (limited to 'libs/gui/ISurfaceComposer.cpp')
-rw-r--r--libs/gui/ISurfaceComposer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp
index 2516fb8a2d..0a0d112af6 100644
--- a/libs/gui/ISurfaceComposer.cpp
+++ b/libs/gui/ISurfaceComposer.cpp
@@ -201,7 +201,7 @@ public:
return NO_ERROR;
}
- virtual sp<IDisplayEventConnection> createDisplayEventConnection()
+ virtual sp<IDisplayEventConnection> createDisplayEventConnection(VsyncSource vsyncSource)
{
Parcel data, reply;
sp<IDisplayEventConnection> result;
@@ -210,6 +210,7 @@ public:
if (err != NO_ERROR) {
return result;
}
+ data.writeInt32(static_cast<int32_t>(vsyncSource));
err = remote()->transact(
BnSurfaceComposer::CREATE_DISPLAY_EVENT_CONNECTION,
data, &reply);
@@ -586,7 +587,8 @@ status_t BnSurfaceComposer::onTransact(
}
case CREATE_DISPLAY_EVENT_CONNECTION: {
CHECK_INTERFACE(ISurfaceComposer, data, reply);
- sp<IDisplayEventConnection> connection(createDisplayEventConnection());
+ sp<IDisplayEventConnection> connection(createDisplayEventConnection(
+ static_cast<ISurfaceComposer::VsyncSource>(data.readInt32())));
reply->writeStrongBinder(IInterface::asBinder(connection));
return NO_ERROR;
}