summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-04-11 20:43:19 -0700
committerMathias Agopian <mathias@google.com>2012-04-11 20:43:40 -0700
commit69a655caef30663403802281210363f643ceb946 (patch)
treeaf60c9b681d569124565a2ad921390c9b1ec4998 /services
parent562f4b2c1e555b853997113bb54b21303d642bc6 (diff)
downloadframeworks_native-69a655caef30663403802281210363f643ceb946.tar.gz
frameworks_native-69a655caef30663403802281210363f643ceb946.tar.bz2
frameworks_native-69a655caef30663403802281210363f643ceb946.zip
Revert "handle surfaces posts independently from composition"
This reverts commit 562f4b2c1e555b853997113bb54b21303d642bc6. Change-Id: I96efe11c2f0494ed2d57fc580e49c598d913830e
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/MessageQueue.cpp3
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp17
2 files changed, 13 insertions, 7 deletions
diff --git a/services/surfaceflinger/MessageQueue.cpp b/services/surfaceflinger/MessageQueue.cpp
index 1ff3567f4..290fff469 100644
--- a/services/surfaceflinger/MessageQueue.cpp
+++ b/services/surfaceflinger/MessageQueue.cpp
@@ -133,7 +133,8 @@ status_t MessageQueue::postMessage(
}
void MessageQueue::invalidate() {
- mHandler->signalInvalidate();
+// mHandler->signalInvalidate();
+ mEvents->requestNextVsync();
}
void MessageQueue::refresh() {
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index c68f5c163..ce6c4a060 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -407,7 +407,8 @@ void SurfaceFlinger::onMessageReceived(int32_t what)
{
ATRACE_CALL();
switch (what) {
- case MessageQueue::INVALIDATE: {
+ case MessageQueue::REFRESH: {
+// case MessageQueue::INVALIDATE: {
// if we're in a global transaction, don't do anything.
const uint32_t mask = eTransactionNeeded | eTraversalNeeded;
uint32_t transactionFlags = peekTransactionFlags(mask);
@@ -418,16 +419,20 @@ void SurfaceFlinger::onMessageReceived(int32_t what)
// post surfaces (if needed)
handlePageFlip();
- signalRefresh();
-
- } break;
-
- case MessageQueue::REFRESH: {
+// signalRefresh();
+//
+// } break;
+//
+// case MessageQueue::REFRESH: {
handleRefresh();
const DisplayHardware& hw(graphicPlane(0).displayHardware());
+// if (mDirtyRegion.isEmpty()) {
+// return;
+// }
+
if (CC_UNLIKELY(mHwWorkListDirty)) {
// build the h/w work list
handleWorkList();