From 5c876fa6b2a75ccfa7efe97b5f660b9c19d280e0 Mon Sep 17 00:00:00 2001 From: Saurabh Shah Date: Fri, 12 Jul 2013 14:42:40 -0700 Subject: 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 Signed-off-by: Saurabh Shah --- services/surfaceflinger/EventThread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services') diff --git a/services/surfaceflinger/EventThread.h b/services/surfaceflinger/EventThread.h index f6bd676..35ac0c8 100644 --- a/services/surfaceflinger/EventThread.h +++ b/services/surfaceflinger/EventThread.h @@ -104,7 +104,7 @@ private: // protected by mLock SortedVector< wp > mDisplayEventConnections; Vector< DisplayEventReceiver::Event > mPendingEvents; - DisplayEventReceiver::Event mVSyncEvent[HWC_DISPLAY_TYPES_SUPPORTED]; + DisplayEventReceiver::Event mVSyncEvent[HWC_NUM_DISPLAY_TYPES]; bool mUseSoftwareVSync; // for debugging -- cgit v1.1