Rename "retire" to "present" for consistency
The HWC2 model has no concept of retire fence beyond HWC2to1Adapter
All references to "retire" fence should be called "present"
Change-Id: I26540aad9e65f138a4df60a34eaee030f1c17567
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 2334e47..3b88a6e 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -1751,10 +1751,10 @@
sp<Fence> presentFence = Fence::NO_FENCE;
sp<Fence> presentOrRetireFence = Fence::NO_FENCE;
if (hwc.retireFenceRepresentsStartOfScanout()) {
- presentFence = hwc.getRetireFence(HWC_DISPLAY_PRIMARY);
+ presentFence = hwc.getPresentFence(HWC_DISPLAY_PRIMARY);
presentOrRetireFence = presentFence;
} else {
- retireFence = hwc.getRetireFence(HWC_DISPLAY_PRIMARY);
+ retireFence = hwc.getPresentFence(HWC_DISPLAY_PRIMARY);
presentOrRetireFence = retireFence;
}
bool wasGpuComposited = mHwcLayers.count(HWC_DISPLAY_PRIMARY) ?