All pastes #2071327 Raw Edit

Someone

public cpp v1 · immutable
#2071327 ·published 2011-05-28 20:00 UTC
rendered paste body
void TiledDrawingArea::tileUpdateTimerFired(){    ASSERT(!m_pendingUpdates.isEmpty());    static const float gUpdateTimeCapMS = 1000;    float currentTime = WTF::currentTimeMS();    float endTime = currentTime + gUpdateTimeCapMS;    while (!m_pendingUpdates.isEmpty() && WTF::currentTimeMS() < endTime) {        UpdateMap::iterator it = m_pendingUpdates.begin();        TileUpdate update = it->second;        m_pendingUpdates.remove(it);        updateTile(update.tileID, update.dirtyRect, update.scale);    }    if (m_pendingUpdates.isEmpty())        WebProcess::shared().connection()->deprecatedSend(DrawingAreaProxyLegacyMessage::AllTileUpdatesProcessed, m_webPage->pageID(), CoreIPC::In());    else        m_tileUpdateTimer.startOneShot(0.001);}