diff options
| author | 2012-09-05 20:09:05 -0700 | |
|---|---|---|
| committer | 2012-09-06 17:54:53 -0700 | |
| commit | b27254154642575dfb4bbfa79fbedde7d7ee23dd (patch) | |
| tree | 20f11812c640baf475d46d04f6c3ac88e47d1829 /libs/gui/CpuConsumer.cpp | |
| parent | 331841b96b92646c93c87627c03f77b892f711cd (diff) | |
libgui: move fence handling into ConsumerBase
This change moves some common fence handling code into the base class for
BufferQueue consumer classes.  It also makes the ConsumerBase class initialize
a buffer slot's fence with the acquire fence every time a buffer is acquired.
Change-Id: I0bd88bc269e919653b659bfb3ebfb04dd61692a0
Diffstat (limited to 'libs/gui/CpuConsumer.cpp')
| -rw-r--r-- | libs/gui/CpuConsumer.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp index fc4a85493c..e1a28381d5 100644 --- a/libs/gui/CpuConsumer.cpp +++ b/libs/gui/CpuConsumer.cpp @@ -134,7 +134,7 @@ status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) {          CC_LOGE("%s: Unable to unlock graphic buffer %d", __FUNCTION__, slotIndex);          return err;      } -    releaseBufferLocked(slotIndex, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, Fence::NO_FENCE); +    releaseBufferLocked(slotIndex, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR);      mCurrentLockedBuffers--;  |