Changeset 154706 in webkit
- Timestamp:
- Aug 27, 2013 1:47:27 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r154683 r154706 1 2013-08-27 Arunprasad Rajkumar <arurajku@cisco.com> 2 3 Replace currentTime() with monotonicallyIncreasingTime() in WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=119958 5 6 Reviewed by Alexey Proskuryakov. 7 8 WTF::currentTime() is prone to NTP and manual adjustments, so use 9 WTF::monotonicallyIncreasingTime() to measure elapsed time. 10 11 It is a continuation of r154201. 12 13 * wtf/CurrentTime.h: Edited comment. 14 1 15 2013-08-27 Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk> 2 16 -
trunk/Source/WTF/wtf/CurrentTime.h
r154201 r154706 53 53 // On unsupported platforms, this function only guarantees the result will be non-decreasing. 54 54 // Result of this function increases monotonically even when clock time goes back due to 55 // DST changes or NTP adjustments, so it better suitsfor elapsed time measurement.55 // NTP or manual adjustments, so it is better suited for elapsed time measurement. 56 56 WTF_EXPORT_PRIVATE double monotonicallyIncreasingTime(); 57 57 -
trunk/Source/WebCore/ChangeLog
r154702 r154706 1 2013-08-27 Arunprasad Rajkumar <arurajku@cisco.com> 2 3 Replace currentTime() with monotonicallyIncreasingTime() in WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=119958 5 6 Reviewed by Alexey Proskuryakov. 7 8 WTF::currentTime() is prone to NTP and manual adjustments, so use 9 WTF::monotonicallyIncreasingTime() to measure elapsed time. 10 11 It is a continuation of r154201. 12 13 * history/CachedPage.cpp: 14 (WebCore::CachedPage::CachedPage): 15 (WebCore::CachedPage::hasExpired): 16 * html/parser/HTMLParserScheduler.h: 17 (WebCore::HTMLParserScheduler::checkForYieldBeforeToken): 18 * loader/CrossOriginPreflightResultCache.cpp: 19 (WebCore::CrossOriginPreflightResultCacheItem::parse): 20 (WebCore::CrossOriginPreflightResultCacheItem::allowsRequest): 21 * loader/FrameLoader.cpp: 22 (WebCore::FrameLoader::setState): 23 * loader/ProgressTracker.cpp: 24 (WebCore::ProgressTracker::incrementProgress): 25 * loader/cache/CachedCSSStyleSheet.cpp: 26 (WebCore::CachedCSSStyleSheet::restoreParsedStyleSheet): 27 * loader/cache/CachedImage.cpp: 28 (WebCore::CachedImage::didDraw): 29 * loader/cache/MemoryCache.cpp: 30 (WebCore::MemoryCache::pruneLiveResourcesToSize): 31 * loader/icon/IconDatabase.cpp: 32 (WebCore::IconDatabase::iconDatabaseSyncThread): 33 (WebCore::IconDatabase::syncThreadMainLoop): 34 (WebCore::IconDatabase::readFromDatabase): 35 (WebCore::IconDatabase::writeToDatabase): 36 (WebCore::IconDatabase::cleanupSyncThread): 37 * page/animation/AnimationBase.cpp: 38 (WebCore::AnimationBase::freezeAtTime): 39 * page/animation/AnimationController.cpp: 40 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime): 41 * platform/graphics/GraphicsLayerAnimation.cpp: 42 (WebCore::GraphicsLayerAnimation::computeTotalRunningTime): 43 (WebCore::GraphicsLayerAnimation::resume): 44 * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: 45 (WebCore::AVFWrapper::createImageForTimeInRect): 46 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 47 (WebCore::MediaPlayerPrivateAVFoundationObjC::createImageForTimeInRect): 48 (WebCore::MediaPlayerPrivateAVFoundationObjC::createPixelBuffer): 49 * platform/graphics/ca/GraphicsLayerCA.cpp: 50 (WebCore::GraphicsLayerCA::suspendAnimations): 51 * platform/graphics/ca/PlatformCALayer.h: 52 (WebCore::PlatformCALayer::currentTimeToMediaTime): 53 * platform/graphics/ca/mac/LayerPool.mm: 54 (WebCore::LayerPool::addLayer): 55 (WebCore::LayerPool::decayedCapacity): 56 (WebCore::LayerPool::pruneTimerFired): 57 * platform/graphics/ca/mac/PlatformCALayerMac.mm: 58 (mediaTimeToCurrentTime): 59 * platform/graphics/ca/win/CACFLayerTreeHost.cpp: 60 (WebCore::CACFLayerTreeHost::notifyAnimationsStarted): 61 * platform/graphics/ca/win/PlatformCALayerWin.cpp: 62 (PlatformCALayer::printTree): 63 * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: 64 (WebCore::GraphicsLayerTextureMapper::addAnimation): 65 * platform/graphics/texmap/TextureMapperFPSCounter.cpp: 66 (WebCore::TextureMapperFPSCounter::TextureMapperFPSCounter): 67 (WebCore::TextureMapperFPSCounter::updateFPSAndDisplay): 68 * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: 69 (WebCore::CoordinatedGraphicsLayer::addAnimation): 70 * platform/network/DNSResolveQueue.cpp: 71 (WebCore::DNSResolveQueue::isUsingProxy): 72 * plugins/win/PluginMessageThrottlerWin.cpp: 73 (WebCore::PluginMessageThrottlerWin::appendMessage): 74 * rendering/RenderLayerCompositor.cpp: 75 (WebCore::RenderLayerCompositor::didPaintBacking): 76 (WebCore::RenderLayerCompositor::updateCompositingLayers): 77 * rendering/RenderProgress.cpp: 78 (WebCore::RenderProgress::animationProgress): 79 (WebCore::RenderProgress::updateAnimationState): 80 * svg/animation/SMILTimeContainer.cpp: 81 (WebCore::SMILTimeContainer::elapsed): 82 (WebCore::SMILTimeContainer::begin): 83 (WebCore::SMILTimeContainer::pause): 84 (WebCore::SMILTimeContainer::resume): 85 (WebCore::SMILTimeContainer::setElapsed): 86 1 87 2013-08-27 Robert Hogan <robert@webkit.org> 2 88 -
trunk/Source/WebCore/history/CachedPage.cpp
r154678 r154706 52 52 53 53 CachedPage::CachedPage(Page* page) 54 : m_timeStamp( currentTime())54 : m_timeStamp(monotonicallyIncreasingTime()) 55 55 , m_expirationTime(m_timeStamp + page->settings().backForwardCacheExpirationInterval()) 56 56 , m_cachedMainFrame(CachedFrame::create(&page->mainFrame())) … … 130 130 bool CachedPage::hasExpired() const 131 131 { 132 return currentTime() > m_expirationTime;132 return monotonicallyIncreasingTime() > m_expirationTime; 133 133 } 134 134 -
trunk/Source/WebCore/html/parser/HTMLParserScheduler.h
r154201 r154706 71 71 { 72 72 if (session.processedTokens > m_parserChunkSize || session.didSeeScript) { 73 // currentTime() can be expensive.By delaying, we avoided calling74 // currentTime() when constructing non-yielding PumpSessions.73 // monotonicallyIncreasingTime() can be expensive. By delaying, we avoided calling 74 // monotonicallyIncreasingTime() when constructing non-yielding PumpSessions. 75 75 if (!session.startTime) 76 76 session.startTime = monotonicallyIncreasingTime(); -
trunk/Source/WebCore/loader/CrossOriginPreflightResultCache.cpp
r130612 r154706 109 109 expiryDelta = defaultPreflightCacheTimeoutSeconds; 110 110 111 m_absoluteExpiryTime = currentTime() + expiryDelta;111 m_absoluteExpiryTime = monotonicallyIncreasingTime() + expiryDelta; 112 112 return true; 113 113 } … … 137 137 { 138 138 String ignoredExplanation; 139 if (m_absoluteExpiryTime < currentTime())139 if (m_absoluteExpiryTime < monotonicallyIncreasingTime()) 140 140 return false; 141 141 if (includeCredentials == AllowStoredCredentials && m_credentials == DoNotAllowStoredCredentials) -
trunk/Source/WebCore/loader/FrameLoader.cpp
r154658 r154706 1684 1684 else if (newState == FrameStateComplete) { 1685 1685 frameLoadCompleted(); 1686 storedTimeOfLastCompletedLoad = currentTime();1686 storedTimeOfLastCompletedLoad = monotonicallyIncreasingTime(); 1687 1687 if (m_documentLoader) 1688 1688 m_documentLoader->stopRecordingResponses(); -
trunk/Source/WebCore/loader/ProgressTracker.cpp
r154558 r154706 242 242 m_totalBytesReceived += bytesReceived; 243 243 244 double now = currentTime();244 double now = monotonicallyIncreasingTime(); 245 245 double notifiedProgressTimeDelta = now - m_lastNotifiedProgressTime; 246 246 -
trunk/Source/WebCore/loader/cache/CachedCSSStyleSheet.cpp
r151586 r154706 174 174 return 0; 175 175 176 didAccessDecodedData( currentTime());176 didAccessDecodedData(monotonicallyIncreasingTime()); 177 177 178 178 return m_parsedStyleSheetCache; -
trunk/Source/WebCore/loader/cache/CachedImage.cpp
r154449 r154706 469 469 double timeStamp = FrameView::currentPaintTimeStamp(); 470 470 if (!timeStamp) // If didDraw is called outside of a Frame paint. 471 timeStamp = currentTime();471 timeStamp = monotonicallyIncreasingTime(); 472 472 473 473 CachedResource::didAccessDecodedData(timeStamp); -
trunk/Source/WebCore/loader/cache/MemoryCache.cpp
r152080 r154706 244 244 double currentTime = FrameView::currentPaintTimeStamp(); 245 245 if (!currentTime) // In case prune is called directly, outside of a Frame paint. 246 currentTime = WTF::currentTime();246 currentTime = monotonicallyIncreasingTime(); 247 247 248 248 // Destroy any decoded data in live objects that we can. -
trunk/Source/WebCore/loader/icon/IconDatabase.cpp
r154023 r154706 990 990 991 991 #if !LOG_DISABLED 992 double startTime = currentTime();992 double startTime = monotonicallyIncreasingTime(); 993 993 #endif 994 994 … … 1018 1018 1019 1019 #if !LOG_DISABLED 1020 double timeStamp = currentTime();1020 double timeStamp = monotonicallyIncreasingTime(); 1021 1021 LOG(IconDatabase, "(THREAD) Open took %.4f seconds", timeStamp - startTime); 1022 1022 #endif … … 1029 1029 1030 1030 #if !LOG_DISABLED 1031 double newStamp = currentTime();1031 double newStamp = monotonicallyIncreasingTime(); 1032 1032 LOG(IconDatabase, "(THREAD) performOpenInitialization() took %.4f seconds, now %.4f seconds from thread start", newStamp - timeStamp, newStamp - startTime); 1033 1033 timeStamp = newStamp; … … 1035 1035 1036 1036 // Uncomment the following line to simulate a long lasting URL import (*HUGE* icon databases, or network home directories) 1037 // while ( currentTime() - timeStamp < 10);1037 // while (monotonicallyIncreasingTime() - timeStamp < 10); 1038 1038 1039 1039 // Read in URL mappings from the database … … 1047 1047 1048 1048 #if !LOG_DISABLED 1049 newStamp = currentTime();1049 newStamp = monotonicallyIncreasingTime(); 1050 1050 LOG(IconDatabase, "(THREAD) performURLImport() took %.4f seconds. Entering main loop %.4f seconds from thread start", newStamp - timeStamp, newStamp - startTime); 1051 1051 #endif … … 1375 1375 1376 1376 #if !LOG_DISABLED 1377 double timeStamp = currentTime();1377 double timeStamp = monotonicallyIncreasingTime(); 1378 1378 #endif 1379 1379 LOG(IconDatabase, "(THREAD) Main work loop starting"); … … 1413 1413 if (didWrite && !m_privateBrowsingEnabled && !prunedUnretainedIcons && !databaseCleanupCounter) { 1414 1414 #if !LOG_DISABLED 1415 double time = currentTime();1415 double time = monotonicallyIncreasingTime(); 1416 1416 #endif 1417 1417 LOG(IconDatabase, "(THREAD) Starting pruneUnretainedIcons()"); … … 1419 1419 pruneUnretainedIcons(); 1420 1420 1421 LOG(IconDatabase, "(THREAD) pruneUnretainedIcons() took %.4f seconds", currentTime() - time);1421 LOG(IconDatabase, "(THREAD) pruneUnretainedIcons() took %.4f seconds", monotonicallyIncreasingTime() - time); 1422 1422 1423 1423 // If pruneUnretainedIcons() returned early due to requested thread termination, its still okay … … 1432 1432 1433 1433 #if !LOG_DISABLED 1434 double newstamp = currentTime();1434 double newstamp = monotonicallyIncreasingTime(); 1435 1435 LOG(IconDatabase, "(THREAD) Main work loop ran for %.4f seconds, %s requested to terminate", newstamp - timeStamp, shouldStopThreadActivity() ? "was" : "was not"); 1436 1436 #endif … … 1514 1514 1515 1515 #if !LOG_DISABLED 1516 double timeStamp = currentTime();1516 double timeStamp = monotonicallyIncreasingTime(); 1517 1517 #endif 1518 1518 … … 1608 1608 } 1609 1609 1610 LOG(IconDatabase, "Reading from database took %.4f seconds", currentTime() - timeStamp);1610 LOG(IconDatabase, "Reading from database took %.4f seconds", monotonicallyIncreasingTime() - timeStamp); 1611 1611 1612 1612 return didAnyWork; … … 1618 1618 1619 1619 #if !LOG_DISABLED 1620 double timeStamp = currentTime();1620 double timeStamp = monotonicallyIncreasingTime(); 1621 1621 #endif 1622 1622 … … 1668 1668 checkForDanglingPageURLs(false); 1669 1669 1670 LOG(IconDatabase, "Updating the database took %.4f seconds", currentTime() - timeStamp);1670 LOG(IconDatabase, "Updating the database took %.4f seconds", monotonicallyIncreasingTime() - timeStamp); 1671 1671 1672 1672 return didAnyWork; … … 1823 1823 1824 1824 #if !LOG_DISABLED 1825 double timeStamp = currentTime();1825 double timeStamp = monotonicallyIncreasingTime(); 1826 1826 #endif 1827 1827 … … 1843 1843 1844 1844 #if !LOG_DISABLED 1845 LOG(IconDatabase, "(THREAD) Final closure took %.4f seconds", currentTime() - timeStamp);1845 LOG(IconDatabase, "(THREAD) Final closure took %.4f seconds", monotonicallyIncreasingTime() - timeStamp); 1846 1846 #endif 1847 1847 -
trunk/Source/WebCore/page/animation/AnimationBase.cpp
r149576 r154706 651 651 LOG(Animations, "%p AnimationState %s -> StartWaitResponse", this, nameForState(m_animState)); 652 652 m_animState = AnimationStateStartWaitResponse; 653 onAnimationStartResponse( currentTime());653 onAnimationStartResponse(monotonicallyIncreasingTime()); 654 654 } 655 655 -
trunk/Source/WebCore/page/animation/AnimationController.cpp
r154580 r154706 366 366 { 367 367 if (m_beginAnimationUpdateTime == cBeginAnimationUpdateTimeNotSet) 368 m_beginAnimationUpdateTime = currentTime();368 m_beginAnimationUpdateTime = monotonicallyIncreasingTime(); 369 369 return m_beginAnimationUpdateTime; 370 370 } -
trunk/Source/WebCore/platform/graphics/GraphicsLayerAnimation.cpp
r149694 r154706 324 324 325 325 double oldLastRefreshedTime = m_lastRefreshedTime; 326 m_lastRefreshedTime = WTF::currentTime();326 m_lastRefreshedTime = monotonicallyIncreasingTime(); 327 327 m_totalRunningTime += m_lastRefreshedTime - oldLastRefreshedTime; 328 328 return m_totalRunningTime; … … 339 339 setState(PlayingState); 340 340 m_totalRunningTime = m_pauseTime; 341 m_lastRefreshedTime = WTF::currentTime();341 m_lastRefreshedTime = monotonicallyIncreasingTime(); 342 342 } 343 343 -
trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp
r154694 r154706 1633 1633 1634 1634 #if !LOG_DISABLED 1635 double start = WTF::currentTime();1635 double start = monotonicallyIncreasingTime(); 1636 1636 #endif 1637 1637 … … 1640 1640 1641 1641 #if !LOG_DISABLED 1642 double duration = WTF::currentTime() - start;1642 double duration = monotonicallyIncreasingTime() - start; 1643 1643 LOG(Media, "AVFWrapper::createImageForTimeInRect(%p) - creating image took %.4f", this, narrowPrecisionToFloat(duration)); 1644 1644 #endif -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r154647 r154706 851 851 852 852 #if !LOG_DISABLED 853 double start = WTF::currentTime();853 double start = monotonicallyIncreasingTime(); 854 854 #endif 855 855 … … 858 858 859 859 #if !LOG_DISABLED 860 double duration = WTF::currentTime() - start;860 double duration = monotonicallyIncreasingTime() - start; 861 861 LOG(Media, "MediaPlayerPrivateAVFoundationObjC::createImageForTimeInRect(%p) - creating image took %.4f", this, narrowPrecisionToFloat(duration)); 862 862 #endif … … 1140 1140 1141 1141 #if !LOG_DISABLED 1142 double start = WTF::currentTime();1142 double start = monotonicallyIncreasingTime(); 1143 1143 #endif 1144 1144 … … 1167 1167 1168 1168 #if !LOG_DISABLED 1169 double duration = WTF::currentTime() - start;1169 double duration = monotonicallyIncreasingTime() - start; 1170 1170 LOG(Media, "MediaPlayerPrivateAVFoundationObjC::createPixelBuffer() - creating buffer took %.4f", this, narrowPrecisionToFloat(duration)); 1171 1171 #endif -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r154470 r154706 2532 2532 void GraphicsLayerCA::suspendAnimations(double time) 2533 2533 { 2534 double t = PlatformCALayer::currentTimeToMediaTime(time ? time : currentTime());2534 double t = PlatformCALayer::currentTimeToMediaTime(time ? time : monotonicallyIncreasingTime()); 2535 2535 primaryLayer()->setSpeed(0); 2536 2536 primaryLayer()->setTimeOffset(t); -
trunk/Source/WebCore/platform/graphics/ca/PlatformCALayer.h
r154314 r154706 52 52 class PlatformCALayer : public RefCounted<PlatformCALayer> { 53 53 public: 54 static CFTimeInterval currentTimeToMediaTime(double t) { return CACurrentMediaTime() + t - WTF::currentTime(); }54 static CFTimeInterval currentTimeToMediaTime(double t) { return CACurrentMediaTime() + t - monotonicallyIncreasingTime(); } 55 55 56 56 // LayerTypeRootLayer is used on some platforms. It has no backing store, so setNeedsDisplay -
trunk/Source/WebCore/platform/graphics/ca/mac/LayerPool.mm
r136298 r154706 76 76 m_totalBytes += backingStoreBytesForSize(layerSize); 77 77 78 m_lastAddTime = currentTime();78 m_lastAddTime = monotonicallyIncreasingTime(); 79 79 schedulePrune(); 80 80 } … … 94 94 { 95 95 // Decay to one quarter over capacityDecayTime 96 double timeSinceLastAdd = currentTime() - m_lastAddTime;96 double timeSinceLastAdd = monotonicallyIncreasingTime() - m_lastAddTime; 97 97 if (timeSinceLastAdd > capacityDecayTime) 98 98 return m_maxBytesForPool / 4; … … 126 126 oldestReuseList.remove(--oldestReuseList.end()); 127 127 } 128 if ( currentTime() - m_lastAddTime <= capacityDecayTime)128 if (monotonicallyIncreasingTime() - m_lastAddTime <= capacityDecayTime) 129 129 schedulePrune(); 130 130 } -
trunk/Source/WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm
r154314 r154706 62 62 static double mediaTimeToCurrentTime(CFTimeInterval t) 63 63 { 64 return WTF::currentTime() + t - CACurrentMediaTime();64 return monotonicallyIncreasingTime() + t - CACurrentMediaTime(); 65 65 } 66 66 -
trunk/Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp
r107603 r154706 310 310 // which occurs after the drawInContext calls. So currentTime is very close to the time 311 311 // the animations actually start 312 double currentTime = WTF::currentTime();312 double currentTime = monotonicallyIncreasingTime(); 313 313 314 314 HashSet<RefPtr<PlatformCALayer> >::iterator end = m_pendingAnimatedLayers.end(); -
trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp
r154180 r154706 772 772 CGRect rootBounds = bounds(); 773 773 fprintf(stderr, "\n\n** Render tree at time %g (bounds %g, %g %gx%g) **\n\n", 774 currentTime(), rootBounds.origin.x, rootBounds.origin.y, rootBounds.size.width, rootBounds.size.height);774 monotonicallyIncreasingTime(), rootBounds.origin.x, rootBounds.origin.y, rootBounds.size.width, rootBounds.size.height); 775 775 776 776 // Print layer tree from the root -
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
r153408 r154706 639 639 listsMatch = validateTransformOperations(valueList, hasBigRotation) >= 0; 640 640 641 const double currentTime = WTF::currentTime();641 const double currentTime = monotonicallyIncreasingTime(); 642 642 m_animations.add(GraphicsLayerAnimation(keyframesName, valueList, boxSize, anim, currentTime - timeOffset, listsMatch)); 643 643 // m_animationStartTime is the time of the first real frame of animation, now or delayed by a negative offset. -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperFPSCounter.cpp
r149813 r154706 43 43 if (ok && m_fpsInterval) { 44 44 m_isShowingFPS = true; 45 m_fpsTimestamp = WTF::currentTime();45 m_fpsTimestamp = monotonicallyIncreasingTime(); 46 46 } 47 47 } … … 53 53 54 54 m_frameCount++; 55 double delta = WTF::currentTime() - m_fpsTimestamp;55 double delta = monotonicallyIncreasingTime() - m_fpsTimestamp; 56 56 if (delta >= m_fpsInterval) { 57 57 m_lastFPS = int(m_frameCount / delta); -
trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
r152390 r154706 1217 1217 listsMatch = validateTransformOperations(valueList, ignoredHasBigRotation) >= 0; 1218 1218 1219 m_lastAnimationStartTime = WTF::currentTime() - delayAsNegativeTimeOffset;1219 m_lastAnimationStartTime = monotonicallyIncreasingTime() - delayAsNegativeTimeOffset; 1220 1220 m_animations.add(GraphicsLayerAnimation(keyframesName, valueList, boxSize, anim, m_lastAnimationStartTime, listsMatch)); 1221 1221 m_animationStartedTimer.startOneShot(0); -
trunk/Source/WebCore/platform/network/DNSResolveQueue.cpp
r132664 r154706 59 59 bool DNSResolveQueue::isUsingProxy() 60 60 { 61 double time = currentTime();61 double time = monotonicallyIncreasingTime(); 62 62 static const double minimumProxyCheckDelay = 5; 63 63 if (time - m_lastProxyEnabledStatusCheckTime > minimumProxyCheckDelay) { -
trunk/Source/WebCore/plugins/win/PluginMessageThrottlerWin.cpp
r95901 r154706 87 87 // If it has been more than MessageDirectProcessingInterval between throttled messages, 88 88 // go ahead and process a message directly. 89 double currentTime = WTF::currentTime();89 double currentTime = monotonicallyIncreasingTime(); 90 90 if (currentTime - m_lastMessageTime > MessageDirectProcessingInterval) { 91 91 processQueuedMessage(); -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r154686 r154706 416 416 { 417 417 FrameView& frameView = m_renderView.frameView(); 418 frameView.setLastPaintTime( currentTime());418 frameView.setLastPaintTime(monotonicallyIncreasingTime()); 419 419 if (frameView.milestonesPendingPaint() && !m_paintRelatedMilestonesTimer.isActive()) 420 420 m_paintRelatedMilestonesTimer.startOneShot(0); … … 547 547 if (compositingLogEnabled()) { 548 548 ++m_rootLayerUpdateCount; 549 startTime = currentTime();549 startTime = monotonicallyIncreasingTime(); 550 550 } 551 551 #endif … … 599 599 #if !LOG_DISABLED 600 600 if (compositingLogEnabled() && isFullUpdate && (needHierarchyUpdate || needGeometryUpdate)) { 601 double endTime = currentTime();601 double endTime = monotonicallyIncreasingTime(); 602 602 LOG(Compositing, "Total layers primary secondary obligatory backing (KB) secondary backing(KB) total backing (KB) update time (ms)\n"); 603 603 -
trunk/Source/WebCore/rendering/RenderProgress.cpp
r142248 r154706 68 68 double RenderProgress::animationProgress() const 69 69 { 70 return m_animating ? (fmod(( currentTime() - m_animationStartTime), m_animationDuration) / m_animationDuration) : 0;70 return m_animating ? (fmod((monotonicallyIncreasingTime() - m_animationStartTime), m_animationDuration) / m_animationDuration) : 0; 71 71 } 72 72 … … 95 95 m_animating = animating; 96 96 if (m_animating) { 97 m_animationStartTime = currentTime();97 m_animationStartTime = monotonicallyIncreasingTime(); 98 98 m_animationTimer.startOneShot(m_animationRepeatInterval); 99 99 } else -
trunk/Source/WebCore/svg/animation/SMILTimeContainer.cpp
r154679 r154706 111 111 if (!m_beginTime) 112 112 return 0; 113 return currentTime() - m_beginTime - m_accumulatedPauseTime;113 return monotonicallyIncreasingTime() - m_beginTime - m_accumulatedPauseTime; 114 114 } 115 115 … … 132 132 { 133 133 ASSERT(!m_beginTime); 134 double now = currentTime();134 double now = monotonicallyIncreasingTime(); 135 135 136 136 // If 'm_presetStartTime' is set, the timeline was modified via setElapsed() before the document began. … … 149 149 { 150 150 ASSERT(!isPaused()); 151 m_pauseTime = currentTime();151 m_pauseTime = monotonicallyIncreasingTime(); 152 152 153 153 if (m_beginTime) … … 160 160 161 161 if (m_beginTime) 162 m_accumulatedPauseTime += currentTime() - m_pauseTime;162 m_accumulatedPauseTime += monotonicallyIncreasingTime() - m_pauseTime; 163 163 164 164 m_pauseTime = 0; … … 177 177 m_timer.stop(); 178 178 179 double now = currentTime();179 double now = monotonicallyIncreasingTime(); 180 180 m_beginTime = now - time.value(); 181 181
Note: See TracChangeset
for help on using the changeset viewer.