Rename "commit" to use "present" nomenclature
We use "present" down the HWC2, commit is a confusing name.
Change-Id: I7b23edaf4aeab807bc523e31dfcb8e716166d849
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.h b/services/surfaceflinger/DisplayHardware/HWComposer.h
index 41671f6..1ca61d2 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.h
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.h
@@ -97,8 +97,8 @@
status_t setClientTarget(int32_t displayId, const sp<Fence>& acquireFence,
const sp<GraphicBuffer>& target, android_dataspace_t dataspace);
- // Finalize the layers and present them
- status_t commit(int32_t displayId);
+ // Present layers to the display and read releaseFences.
+ status_t presentAndGetReleaseFences(int32_t displayId);
// set power mode
status_t setPowerMode(int32_t displayId, int mode);