Bug 703821 - Don't squash together draw events if the Java compositor is in use. r=dougt

This commit is contained in:
Patrick Walton 2011-11-18 21:42:17 -08:00
Родитель 8dcbf6d26d
Коммит 34bde38c1e
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -244,6 +244,9 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
int curType = curEvent->Type(); int curType = curEvent->Type();
int nextType = nextEvent->Type(); int nextType = nextEvent->Type();
// Do not skip draw events if the Java compositor is in use, since the Java compositor
// updates only the rect that changed - thus we will lose updates.
#ifndef MOZ_JAVA_COMPOSITOR
while (nextType == AndroidGeckoEvent::DRAW && while (nextType == AndroidGeckoEvent::DRAW &&
mNumDraws > 1) mNumDraws > 1)
{ {
@ -263,6 +266,7 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
nextEvent = PeekNextEvent(); nextEvent = PeekNextEvent();
nextType = nextEvent->Type(); nextType = nextEvent->Type();
} }
#endif
// If the next type of event isn't the same as the current type, // If the next type of event isn't the same as the current type,
// we don't coalesce. // we don't coalesce.