summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Saurabh Shah <saurshah@codeaurora.org> 2013-07-12 14:42:40 -0700
committer Jesse Hall <jessehall@google.com> 2013-07-12 16:29:48 -0700
commit5c876fa6b2a75ccfa7efe97b5f660b9c19d280e0 (patch)
tree091080aac9f776041fcd2d74f1853a7c37eef8fe
parentbb7272f137ad3558bba5ee3a31dcfe4f41cc797f (diff)
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>
-rw-r--r--services/surfaceflinger/EventThread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/EventThread.h b/services/surfaceflinger/EventThread.h
index f6bd676b3e..35ac0c82aa 100644
--- a/services/surfaceflinger/EventThread.h
+++ b/services/surfaceflinger/EventThread.h
@@ -104,7 +104,7 @@ private:
// protected by mLock
SortedVector< wp<Connection> > mDisplayEventConnections;
Vector< DisplayEventReceiver::Event > mPendingEvents;
- DisplayEventReceiver::Event mVSyncEvent[HWC_DISPLAY_TYPES_SUPPORTED];
+ DisplayEventReceiver::Event mVSyncEvent[HWC_NUM_DISPLAY_TYPES];
bool mUseSoftwareVSync;
// for debugging