diff options
author | 2016-12-06 15:07:48 -0800 | |
---|---|---|
committer | 2016-12-06 15:07:48 -0800 | |
commit | ecea1bfeae1211f9a363925c172c0f23062107fb (patch) | |
tree | 99d7fc7c78f261a3ffde997e8354f8134c60bfbe /services/surfaceflinger/MessageQueue.cpp | |
parent | f5c3b20f062ca646572ee6c07713eba691971c95 (diff) | |
parent | 6079aa6a8a845d8312435fe3e991bbe14588d018 (diff) |
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Diffstat (limited to 'services/surfaceflinger/MessageQueue.cpp')
-rw-r--r-- | services/surfaceflinger/MessageQueue.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/services/surfaceflinger/MessageQueue.cpp b/services/surfaceflinger/MessageQueue.cpp index 34dc24b1f3..974c7a340e 100644 --- a/services/surfaceflinger/MessageQueue.cpp +++ b/services/surfaceflinger/MessageQueue.cpp @@ -134,31 +134,12 @@ status_t MessageQueue::postMessage( } -/* when INVALIDATE_ON_VSYNC is set SF only processes - * buffer updates on VSYNC and performs a refresh immediately - * after. - * - * when INVALIDATE_ON_VSYNC is set to false, SF will instead - * perform the buffer updates immediately, but the refresh only - * at the next VSYNC. - * THIS MODE IS BUGGY ON GALAXY NEXUS AND WILL CAUSE HANGS - */ -#define INVALIDATE_ON_VSYNC 1 - void MessageQueue::invalidate() { -#if INVALIDATE_ON_VSYNC mEvents->requestNextVsync(); -#else - mHandler->dispatchInvalidate(); -#endif } void MessageQueue::refresh() { -#if INVALIDATE_ON_VSYNC mHandler->dispatchRefresh(); -#else - mEvents->requestNextVsync(); -#endif } int MessageQueue::cb_eventReceiver(int fd, int events, void* data) { @@ -172,11 +153,7 @@ int MessageQueue::eventReceiver(int /*fd*/, int /*events*/) { while ((n = DisplayEventReceiver::getEvents(mEventTube, buffer, 8)) > 0) { for (int i=0 ; i<n ; i++) { if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { -#if INVALIDATE_ON_VSYNC mHandler->dispatchInvalidate(); -#else - mHandler->dispatchRefresh(); -#endif break; } } |