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:
parent
bb7272f137
commit
5c876fa6b2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user