Loading services/surfaceflinger/MessageQueue.cpp +0 −14 Original line number Diff line number Diff line Loading @@ -61,12 +61,6 @@ void MessageQueue::Handler::dispatchInvalidate() { } } void MessageQueue::Handler::dispatchTransaction() { if ((android_atomic_or(eventMaskTransaction, &mEventMask) & eventMaskTransaction) == 0) { mQueue.mLooper->sendMessage(this, Message(MessageQueue::TRANSACTION)); } } void MessageQueue::Handler::handleMessage(const Message& message) { switch (message.what) { case INVALIDATE: Loading @@ -77,10 +71,6 @@ void MessageQueue::Handler::handleMessage(const Message& message) { android_atomic_and(~eventMaskRefresh, &mEventMask); mQueue.mFlinger->onMessageReceived(message.what); break; case TRANSACTION: android_atomic_and(~eventMaskTransaction, &mEventMask); mQueue.mFlinger->onMessageReceived(message.what); break; } } Loading Loading @@ -155,10 +145,6 @@ status_t MessageQueue::postMessage( */ #define INVALIDATE_ON_VSYNC 1 void MessageQueue::invalidateTransactionNow() { mHandler->dispatchTransaction(); } void MessageQueue::invalidate() { #if INVALIDATE_ON_VSYNC mEvents->requestNextVsync(); Loading services/surfaceflinger/MessageQueue.h +0 −4 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ class MessageQueue { virtual void handleMessage(const Message& message); void dispatchRefresh(); void dispatchInvalidate(); void dispatchTransaction(); }; friend class Handler; Loading @@ -93,7 +92,6 @@ public: enum { INVALIDATE = 0, REFRESH = 1, TRANSACTION = 2 }; MessageQueue(); Loading @@ -108,8 +106,6 @@ public: void invalidate(); // sends REFRESH message at next VSYNC void refresh(); // sends TRANSACTION message immediately void invalidateTransactionNow(); }; // --------------------------------------------------------------------------- Loading services/surfaceflinger/SurfaceFlinger.cpp +0 −11 Original line number Diff line number Diff line Loading @@ -903,10 +903,6 @@ void SurfaceFlinger::setVsyncEnabled(int disp, int enabled) { void SurfaceFlinger::onMessageReceived(int32_t what) { ATRACE_CALL(); switch (what) { case MessageQueue::TRANSACTION: { handleMessageTransaction(); break; } case MessageQueue::INVALIDATE: { bool refreshNeeded = handleMessageTransaction(); refreshNeeded |= handleMessageInvalidate(); Loading Loading @@ -3283,13 +3279,6 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, } }; // make sure to process transactions before screenshots -- a transaction // might already be pending but scheduled for VSYNC; this guarantees we // will handle it before the screenshot. When VSYNC finally arrives // the scheduled transaction will be a no-op. If no transactions are // scheduled at this time, this will end-up being a no-op as well. mEventQueue.invalidateTransactionNow(); // this creates a "fake" BBinder which will serve as a "fake" remote // binder to receive the marshaled calls and forward them to the // real remote (a BpGraphicBufferProducer) Loading services/surfaceflinger/SurfaceFlinger_hwc1.cpp +0 −11 Original line number Diff line number Diff line Loading @@ -907,10 +907,6 @@ void SurfaceFlinger::eventControl(int disp, int event, int enabled) { void SurfaceFlinger::onMessageReceived(int32_t what) { ATRACE_CALL(); switch (what) { case MessageQueue::TRANSACTION: { handleMessageTransaction(); break; } case MessageQueue::INVALIDATE: { bool refreshNeeded = handleMessageTransaction(); refreshNeeded |= handleMessageInvalidate(); Loading Loading @@ -3297,13 +3293,6 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, } }; // make sure to process transactions before screenshots -- a transaction // might already be pending but scheduled for VSYNC; this guarantees we // will handle it before the screenshot. When VSYNC finally arrives // the scheduled transaction will be a no-op. If no transactions are // scheduled at this time, this will end-up being a no-op as well. mEventQueue.invalidateTransactionNow(); // this creates a "fake" BBinder which will serve as a "fake" remote // binder to receive the marshaled calls and forward them to the // real remote (a BpGraphicBufferProducer) Loading Loading
services/surfaceflinger/MessageQueue.cpp +0 −14 Original line number Diff line number Diff line Loading @@ -61,12 +61,6 @@ void MessageQueue::Handler::dispatchInvalidate() { } } void MessageQueue::Handler::dispatchTransaction() { if ((android_atomic_or(eventMaskTransaction, &mEventMask) & eventMaskTransaction) == 0) { mQueue.mLooper->sendMessage(this, Message(MessageQueue::TRANSACTION)); } } void MessageQueue::Handler::handleMessage(const Message& message) { switch (message.what) { case INVALIDATE: Loading @@ -77,10 +71,6 @@ void MessageQueue::Handler::handleMessage(const Message& message) { android_atomic_and(~eventMaskRefresh, &mEventMask); mQueue.mFlinger->onMessageReceived(message.what); break; case TRANSACTION: android_atomic_and(~eventMaskTransaction, &mEventMask); mQueue.mFlinger->onMessageReceived(message.what); break; } } Loading Loading @@ -155,10 +145,6 @@ status_t MessageQueue::postMessage( */ #define INVALIDATE_ON_VSYNC 1 void MessageQueue::invalidateTransactionNow() { mHandler->dispatchTransaction(); } void MessageQueue::invalidate() { #if INVALIDATE_ON_VSYNC mEvents->requestNextVsync(); Loading
services/surfaceflinger/MessageQueue.h +0 −4 Original line number Diff line number Diff line Loading @@ -73,7 +73,6 @@ class MessageQueue { virtual void handleMessage(const Message& message); void dispatchRefresh(); void dispatchInvalidate(); void dispatchTransaction(); }; friend class Handler; Loading @@ -93,7 +92,6 @@ public: enum { INVALIDATE = 0, REFRESH = 1, TRANSACTION = 2 }; MessageQueue(); Loading @@ -108,8 +106,6 @@ public: void invalidate(); // sends REFRESH message at next VSYNC void refresh(); // sends TRANSACTION message immediately void invalidateTransactionNow(); }; // --------------------------------------------------------------------------- Loading
services/surfaceflinger/SurfaceFlinger.cpp +0 −11 Original line number Diff line number Diff line Loading @@ -903,10 +903,6 @@ void SurfaceFlinger::setVsyncEnabled(int disp, int enabled) { void SurfaceFlinger::onMessageReceived(int32_t what) { ATRACE_CALL(); switch (what) { case MessageQueue::TRANSACTION: { handleMessageTransaction(); break; } case MessageQueue::INVALIDATE: { bool refreshNeeded = handleMessageTransaction(); refreshNeeded |= handleMessageInvalidate(); Loading Loading @@ -3283,13 +3279,6 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, } }; // make sure to process transactions before screenshots -- a transaction // might already be pending but scheduled for VSYNC; this guarantees we // will handle it before the screenshot. When VSYNC finally arrives // the scheduled transaction will be a no-op. If no transactions are // scheduled at this time, this will end-up being a no-op as well. mEventQueue.invalidateTransactionNow(); // this creates a "fake" BBinder which will serve as a "fake" remote // binder to receive the marshaled calls and forward them to the // real remote (a BpGraphicBufferProducer) Loading
services/surfaceflinger/SurfaceFlinger_hwc1.cpp +0 −11 Original line number Diff line number Diff line Loading @@ -907,10 +907,6 @@ void SurfaceFlinger::eventControl(int disp, int event, int enabled) { void SurfaceFlinger::onMessageReceived(int32_t what) { ATRACE_CALL(); switch (what) { case MessageQueue::TRANSACTION: { handleMessageTransaction(); break; } case MessageQueue::INVALIDATE: { bool refreshNeeded = handleMessageTransaction(); refreshNeeded |= handleMessageInvalidate(); Loading Loading @@ -3297,13 +3293,6 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, } }; // make sure to process transactions before screenshots -- a transaction // might already be pending but scheduled for VSYNC; this guarantees we // will handle it before the screenshot. When VSYNC finally arrives // the scheduled transaction will be a no-op. If no transactions are // scheduled at this time, this will end-up being a no-op as well. mEventQueue.invalidateTransactionNow(); // this creates a "fake" BBinder which will serve as a "fake" remote // binder to receive the marshaled calls and forward them to the // real remote (a BpGraphicBufferProducer) Loading