summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/DisplayDevice.cpp
diff options
context:
space:
mode:
author Jesse Hall <jessehall@google.com> 2013-03-20 11:37:21 -0700
committer Jesse Hall <jessehall@google.com> 2013-03-22 09:56:58 -0700
commit13f01cbdbd34779a234bc674df79e23672fd5c0b (patch)
tree9b1c9334f276ff039a2621fe0e639ff06249473c /services/surfaceflinger/DisplayDevice.cpp
parent8d8c75976171d194ca8f94727b22e3bf7676b9dd (diff)
Pass sp<Fence>s around instead of file descriptors
Change-Id: Iac70584a2207940730e8f803a543e4e9a4000c47
Diffstat (limited to 'services/surfaceflinger/DisplayDevice.cpp')
-rw-r--r--services/surfaceflinger/DisplayDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/DisplayDevice.cpp b/services/surfaceflinger/DisplayDevice.cpp
index 5493e7d432..e16abef3d7 100644
--- a/services/surfaceflinger/DisplayDevice.cpp
+++ b/services/surfaceflinger/DisplayDevice.cpp
@@ -235,8 +235,8 @@ void DisplayDevice::swapBuffers(HWComposer& hwc) const {
void DisplayDevice::onSwapBuffersCompleted(HWComposer& hwc) const {
if (hwc.initCheck() == NO_ERROR) {
- int fd = hwc.getAndResetReleaseFenceFd(mType);
- mDisplaySurface->onFrameCommitted(fd);
+ sp<Fence> fence = hwc.getAndResetReleaseFence(mType);
+ mDisplaySurface->onFrameCommitted(fence);
}
}