Changeset 124677 in webkit
- Timestamp:
- Aug 3, 2012 5:40:01 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r124675 r124677 1 2012-08-03 Dave Tu <dtu@chromium.org> 2 3 [chromium] Fix Renderer4.CompositorThreadImplDrawDelay histogram. 4 https://bugs.webkit.org/show_bug.cgi?id=93159 5 6 Reviewed by Adrienne Walker. 7 8 The histogram is using the frame number instead of the frame time by mistake. 9 10 * platform/graphics/chromium/cc/CCFrameRateCounter.cpp: 11 (WebCore::CCFrameRateCounter::markBeginningOfFrame): 12 1 13 2012-08-03 David Grogan <dgrogan@chromium.org> 2 14 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCFrameRateCounter.cpp
r123421 r124677 67 67 void CCFrameRateCounter::markBeginningOfFrame(double timestamp) 68 68 { 69 m_timeStampHistory[frameIndex(m_currentFrameNumber)] = timestamp; 70 double frameIntervalSeconds = frameInterval(m_currentFrameNumber); 71 69 72 if (CCProxy::hasImplThread() && m_currentFrameNumber > 0) { 70 double lastFrameTimestamp = frameIndex(m_currentFrameNumber - 1); 71 double drawDelaySeconds = timestamp - lastFrameTimestamp; 72 double drawDelayMs = drawDelaySeconds * 1000.0; 73 73 double drawDelayMs = frameIntervalSeconds * 1000.0; 74 74 WebKit::Platform::current()->histogramCustomCounts("Renderer4.CompositorThreadImplDrawDelay", static_cast<int>(drawDelayMs), 1, 120, 60); 75 75 } 76 76 77 m_timeStampHistory[frameIndex(m_currentFrameNumber)] = timestamp; 78 double delta = frameInterval(m_currentFrameNumber); 79 if (!isBadFrameInterval(delta) && delta > kDroppedFrameTime) 77 if (!isBadFrameInterval(frameIntervalSeconds) && frameIntervalSeconds > kDroppedFrameTime) 80 78 ++m_droppedFrameCount; 81 79 }
Note: See TracChangeset
for help on using the changeset viewer.