Revert "Test aggressive throttling"

Bug: 7182109
This reverts commit c7c85b34da.

Change-Id: Ibc8837b97450ec6e77a0e9dd509280ff780bb22b
This commit is contained in:
John Reck
2012-09-19 14:26:26 -07:00
parent 5dbeb6a8ff
commit 55bc7efaf9
2 changed files with 0 additions and 9 deletions

View File

@@ -89,7 +89,6 @@ final class JWebCoreJavaBridge extends Handler {
private void fireSharedTimer() {
// clear the flag so that sharedTimerFired() can set a new timer
mHasInstantTimer = false;
removeMessages(TIMER_MESSAGE);
sharedTimerFired();
}

View File

@@ -2198,19 +2198,11 @@ public final class WebViewCore {
mEventHub.sendMessage(Message.obtain(null, EventHub.WEBKIT_DRAW));
}
m_skipDrawFlag = false;
m_skipDrawFlagLock.notify();
}
}
private void webkitDraw() {
synchronized (m_skipDrawFlagLock) {
if (m_skipDrawFlag) {
try {
// Aggressively throttle webkit to give the UI more CPU
// to catch up with
m_skipDrawFlagLock.wait(50);
} catch (InterruptedException e) {}
}
if (m_skipDrawFlag) {
m_drawWasSkipped = true;
return;