OSDN Git Service

SurfaceFlinger: track the HWC retire fences
authorJamie Gennis <jgennis@google.com>
Mon, 12 Nov 2012 00:24:33 +0000 (16:24 -0800)
committerJamie Gennis <jgennis@google.com>
Mon, 19 Nov 2012 21:46:40 +0000 (13:46 -0800)
commit2ec3e0748bff8d75baade2ddda9fbfa21a3b7d3f
treee56cf3442cf8df3913e3b685b7b50b2834815324
parent1493a3974a725d6873f317b774be333ca035a64c
SurfaceFlinger: track the HWC retire fences

This change adds functionality to the HWComposer class to track the retire
fences returned by each hwc set call.  It adds the HWComposer::getDisplayFence
method to allow other parts of SurfaceFlinger to get a fence that will signal
when the most recent flip takes effect on a display.

Change-Id: I676e0f98440fc58ed70908aa1a1e2ee3e7bf9eb2
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/DisplayHardware/HWComposer.h