SurfaceFlinger: EventThread: Fix Vsync array size.

Vsync array size is specified as HWC_DISPLAY_TYPES_SUPPORTED whose
value luckily happens to be 2. That enum is actually used for querying
hwc for the number of displays supported.

The implementation file EventThread.cpp correctly accesses the array
upto HWC_NUM_DISPLAY_TYPES

Change-Id: I36e3f0913e7d6fda7bbf4449c1fb32c7f18bb934
Signed-off-by: Amara Venkata Mastan Manoj Kumar<manojavm@codeaurora.org>
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
This commit is contained in:
Saurabh Shah 2013-07-12 14:42:40 -07:00 committed by Jesse Hall
parent bb7272f137
commit 5c876fa6b2

View File

@ -104,7 +104,7 @@ private:
// protected by mLock // protected by mLock
SortedVector< wp<Connection> > mDisplayEventConnections; SortedVector< wp<Connection> > mDisplayEventConnections;
Vector< DisplayEventReceiver::Event > mPendingEvents; Vector< DisplayEventReceiver::Event > mPendingEvents;
DisplayEventReceiver::Event mVSyncEvent[HWC_DISPLAY_TYPES_SUPPORTED]; DisplayEventReceiver::Event mVSyncEvent[HWC_NUM_DISPLAY_TYPES];
bool mUseSoftwareVSync; bool mUseSoftwareVSync;
// for debugging // for debugging