summaryrefslogtreecommitdiff
path: root/drmdisplaycomposition.cpp
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2017-02-28 13:25:26 -0500
committerRobert Foss <robert.foss@collabora.com>2017-02-28 13:53:06 -0500
commit8600e347e14b42872b1c2762d51b27102ddc40f9 (patch)
tree02f5c6b8fcdd780863e56945b169cb15f28b5630 /drmdisplaycomposition.cpp
parent15d6a22ad6b0d7ea3a6ffbb48bcb6035c4321be3 (diff)
downloaddrm_hwcomposer-8600e347e14b42872b1c2762d51b27102ddc40f9.tar.gz
drm_hwcomposer-8600e347e14b42872b1c2762d51b27102ddc40f9.tar.xz
drm_hwcomposer: Clean up error conditions
Clean up error checking for some failure cases. BUG=None TEST=Tested on Qemu+drm_hwcomposer Change-Id: I98bca1aef09060b5a023375dce564252a6073b96 Signed-off-by: Robert Foss <robert.foss@collabora.com>
Diffstat (limited to 'drmdisplaycomposition.cpp')
-rw-r--r--drmdisplaycomposition.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp
index 949f4a3..293160b 100644
--- a/drmdisplaycomposition.cpp
+++ b/drmdisplaycomposition.cpp
@@ -258,8 +258,10 @@ int DrmDisplayComposition::CreateAndAssignReleaseFences() {
if (!layer->release_fence)
continue;
int ret = layer->release_fence.Set(CreateNextTimelineFence());
- if (ret < 0)
+ if (ret < 0) {
+ ALOGE("Failed to set the release fence (squash) %d", ret);
return ret;
+ }
}
timeline_squash_done_ = timeline_;
@@ -276,8 +278,10 @@ int DrmDisplayComposition::CreateAndAssignReleaseFences() {
if (!layer->release_fence)
continue;
int ret = layer->release_fence.Set(CreateNextTimelineFence());
- if (ret < 0)
+ if (ret < 0) {
+ ALOGE("Failed to set the release fence (comp) %d", ret);
return ret;
+ }
}
return 0;