Bug 777264: Remove timer-based repaint throttling r=cjones

This commit is contained in:
Doug Sherk 2012-07-27 00:33:57 -07:00
parent c1d2060973
commit a178e53bd6
2 changed files with 1 additions and 7 deletions

View File

@ -455,7 +455,6 @@ void AsyncPanZoomController::StartPanning(const MultiTouchInput& aEvent) {
mX.StartTouch(touch.mScreenPoint.x);
mY.StartTouch(touch.mScreenPoint.y);
mState = PANNING;
mLastRepaint = aEvent.mTime;
if (angle < AXIS_LOCK_ANGLE || angle > (M_PI - AXIS_LOCK_ANGLE)) {
mY.LockPanning();
@ -505,10 +504,7 @@ void AsyncPanZoomController::TrackTouch(const MultiTouchInput& aEvent) {
ScrollBy(nsIntPoint(xDisplacement, yDisplacement));
ScheduleComposite();
if (aEvent.mTime - mLastRepaint >= PAN_REPAINT_INTERVAL) {
RequestContentRepaint();
mLastRepaint = aEvent.mTime;
}
RequestContentRepaint();
}
}

View File

@ -381,8 +381,6 @@ private:
TimeStamp mLastSampleTime;
// The last time a touch event came through on the UI thread.
PRInt32 mLastEventTime;
// The last time a repaint has been requested from Gecko.
PRInt32 mLastRepaint;
// Stores the previous focus point if there is a pinch gesture happening. Used
// to allow panning by moving multiple fingers (thus moving the focus point).